From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PFPVl-00089N-1m for garchives@archives.gentoo.org; Mon, 08 Nov 2010 11:03:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA21B1C017 for ; Mon, 8 Nov 2010 11:03:40 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 2551DE0B55 for ; Mon, 8 Nov 2010 10:04:38 +0000 (UTC) Received: by wwb31 with SMTP id 31so5317166wwb.10 for ; Mon, 08 Nov 2010 02:04:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=L9FEgXW3Cby5mmJx116vDOWkrtd6Ub49PWnvH3O4APg=; b=C9yzfHV95qs3l9bX6pGLJDgv4uMkg+6oBFfKKviO4+uCGNuvYOki1zoiw7EWdbhehy Joc3Ds5r0CjDSwU5HVUtqkbHhGbYG75strceflV4tXEdgqXY3jKD/QgOtDjnEm3ynLTX 83ixJVul0LyttT4bHyBmsdT2J+miMp+2pG3Q4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WJOUiD/WTGKv5dme9YlEGFfrC+5dIlfBV+HrSaYvMCbb8yz+VViaW9gfgBVMUeTlwK d1w5eoiBo4J3VIk/qA6xRdfVTUoDQWoXnojCpXhROq/l1Wf6LjGKHU487skA/i1oTzYU mCvTuioYhJ/zxreN0q3X6LGrNJXF9L7GFb1QQ= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Received: by 10.216.166.80 with SMTP id f58mr4107238wel.65.1289210677492; Mon, 08 Nov 2010 02:04:37 -0800 (PST) Received: by 10.216.28.213 with HTTP; Mon, 8 Nov 2010 02:04:37 -0800 (PST) In-Reply-To: References: Date: Mon, 8 Nov 2010 12:04:37 +0200 Message-ID: Subject: Re: [gentoo-embedded] configure: error: C++ compiler cannot create executables From: Kfir Lavi To: gentoo-embedded@lists.gentoo.org Content-Type: multipart/alternative; boundary=0016364273dd78fd06049487c0df X-Archives-Salt: d59d00af-2876-4207-a083-57cbebabb76d X-Archives-Hash: 756782ebfae8bcd002aa203016f421e3 --0016364273dd78fd06049487c0df Content-Type: text/plain; charset=UTF-8 On Wed, Nov 3, 2010 at 8:32 PM, Kfir Lavi wrote: > > > On Wed, Nov 3, 2010 at 7:50 PM, Kfir Lavi wrote: > >> >> >> On Wed, Nov 3, 2010 at 12:33 PM, Kfir Lavi wrote: >> >>> >>> >>> On Tue, Nov 2, 2010 at 2:49 PM, Manuel Lauss < >>> manuel.lauss@googlemail.com> wrote: >>> >>>> On Sun, Oct 31, 2010 at 9:08 AM, Kfir Lavi wrote: >>>> > Hi, >>>> > I have a cross compilation environment inside a chroot. >>>> > I run: >>>> > i686-unknown-linux-gnu-emerge dev-libs/ace >>>> > ... >>>> > checking for i686-unknown-linux-gnu-g++... i686-unknown-linux-gnu-g++ >>>> > checking for C++ compiler default output file name... configure: >>>> > error: C++ compiler cannot create executables >>>> >>>> Have a look at config.log. It tells exactly what went wrong, including >>>> gcc >>>> error output. >>>> >>>> Manuel >>>> >>>> It seems that one of the steps that I do, is deleting the tools. I need >>> then to install again from package from the mother system (I'm running here >>> as chroot, and its very good that I did so). >>> So I install gcc and binutils, then compile them again in the chroot >>> environment. >>> Using i686-unknown-linux-gnu-emerge and everything happens again. >>> I didn't find the culprit yet. >>> >>> Kfir >>> >> >> It seems that installing dev-libs/ace is causing the problem. >> emerge dev-libs/ace [works] >> i686-gentoo-linux-gnu-g++ [works] >> i686-gentoo-linux-gnu-gcc [works] >> gcc [works] >> g++ [works] >> i686-gentoo-linux-gnu-emerge dev-libs/ace [DONT WORK] >> >> Other packages emerging ok with i686-gentoo-linux-gnu-emerge. >> Can someone give me a hint? or something to check? >> >> Thanks, >> Kfir >> > > Some diagnostics: > $ cd /usr/__CHOST__/tmp/portage/dev-libs/ace-5.7.2/work/ACE_wrappers/build > $ ../configure > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking target system type... i686-pc-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for egrep... grep -E > checking whether #! works in shell scripts... yes > checking for g++... g++ > checking for C++ compiler default output file name... a.out > checking whether the C++ compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for style of include used by make... GNU > checking dependency style of g++... gcc3 > checking how to run the C++ preprocessor... g++ -E > > Here we see that configure passes the test it failed with emerge. > One line did grab my attention: checking whether we are cross compiling... > no > > Maybe the environment that i686-gentoo-linux-gnu-emerge creates is not > working for ACE. > > What do you think? > > Regards, > Kfir > I did again a cross compilation, really the same way I did before, but with a different name. crossdev -P -vt i686-gentoo1-linux-gnu But without the -S, so it compiled all the latest and greatest. Now the problem is solved, but still ACE will stuck on another line: checking for epoll_create... configure: error: cannot run test program while cross compiling See `config.log' for more details. But this is for different thread. Regards, Kfir --0016364273dd78fd06049487c0df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Nov 3, 2010 at = 8:32 PM, Kfir Lavi <lavi.kfir@gmail.com> wrote:


On Wed, Nov 3, 2010 at 7:50 PM, Kfir Lavi <= lavi.kfir@gmail.co= m> wrote:


On= Wed, Nov 3, 2010 at 12:33 PM, Kfir Lavi <lavi.kfir@gmail.com> wrote:


On= Tue, Nov 2, 2010 at 2:49 PM, Manuel Lauss <manuel.lauss@googlem= ail.com> wrote:
On Sun, Oct 31, 2010 at 9:08 AM, Kfir Lavi <lavi.kfir@gmail.com> wrote:
> Hi,
> I have a cross compilation environment inside a chroot.
> I run:
> i686-unknown-linux-gnu-emerge dev-libs/ace
> ...
> checking for i686-unknown-linux-gnu-g++... i686-unknown-linux-gnu-g++<= br> > checking for C++ compiler default output file name... configure:
> error: C++ compiler cannot create executables

Have a look at config.log. =C2=A0It tells exactly what went wrong, in= cluding gcc
error output.

Manuel

It seems that one of the steps that I= do, is deleting the tools. I need then to install again from package from = the mother system (I'm running here as chroot, and its very good that I= did so).
So I install gcc and binutils, then compile them again in the chroot enviro= nment.
Using i686-unknown-linux-gnu-emerge and everything happens again.=
I didn't find the culprit yet.

Kfir
=C2=A0
It seems that installing dev-libs/ace is= causing the problem.
emerge dev-libs/ace [works]
i686-gentoo-linux-= gnu-g++ [works]
i686-gentoo-linux-gnu-gcc [works]
gcc [works]
g++ = [works]
i686-gentoo-linux-gnu-emerge=C2=A0 dev-libs/ace [DONT WORK]

Other packages emerging ok with i686-gentoo-linux-gnu-emerge.
Can s= omeone give me a hint? or something to check?

Thanks,
Kfir

Some diagnostics:
$ cd /usr/__CHOST__= /tmp/portage/dev-libs/ace-5.7.2/work/ACE_wrappers/build
$ ../configurechecking build system type... i686-pc-linux-gnu
checking host system t= ype... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-comp= atible install... /usr/bin/install -c
checking whether build environment= is sane... yes
checking for gawk... gawk
checking whether make sets = $(MAKE)... yes
checking for egrep... grep -E
checking whether #! works in shell scripts= ... yes
checking for g++... g++
checking for C++ compiler default out= put file name... a.out
checking whether the C++ compiler works... yes checking whether we are cross compiling... no
checking for suffix of exe= cutables...
checking for suffix of object files... o
checking whethe= r we are using the GNU C++ compiler... yes
checking whether g++ accepts = -g... yes
checking for style of include used by make... GNU
checking dependency st= yle of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
Here we see that configure passes the test it failed with emerge.
One line did grab my attention: checking whether we are cross compiling... = no

Maybe the environment that i686-gentoo-linux-gnu-emerge creates i= s not working for ACE.

What do you think?

Regards,
Kfir

I did again a cross compilation, really the same way= I did before, but with a different name.
crossdev -P -vt i686-gentoo1-= linux-gnu
But without the -S, so it compiled all the latest and greatest= .

Now the problem is solved, but still ACE will stuck on another line:checking for epoll_create... configure: error: cannot run test program whi= le cross compiling
See `config.log' for more details.

But thi= s is for different thread.

Regards,
Kfir
--0016364273dd78fd06049487c0df--