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 1PVobZ-0003eY-KK for garchives@archives.gentoo.org; Thu, 23 Dec 2010 17:05:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4199DE06C3 for ; Thu, 23 Dec 2010 17:05:28 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 85C17E01C5 for ; Thu, 23 Dec 2010 16:43:34 +0000 (UTC) Received: by yxd39 with SMTP id 39so4265400yxd.40 for ; Thu, 23 Dec 2010 08:43:34 -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=1RcyEIwgwzoWp4EP8CEP6QZZu0/w0+PwtbkEEbfRRpY=; b=lBFxoF9OCJusKTxwf0TmsakJjfjWzy5pyJ0ulweg5UrWktmICuIBZRcCCMtbj08Igv A3RK5YTDgbQGTHdZzHpnvcnnd9oRZv4XFgltJBXkMnKNc0FrBA/UOwt9WuDcoPfcAOXE y6TBOVLebnuBoTMQxgN3NVkWncJkm13ZnjQt8= 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=LQiewYlKhRg+PGBmuQx9TQU9JxPRytgmloKCrhnQFBLImEJtq/Rjz2QwsLQSB+qN2h v5eEd7IKHnEiJ5UbBJ/fT2xxA9o7OsfOZo3L9nh1iSnEo/AFPw9OVumSzR0id3WjwDKq ayP53r3HBJoWHjse7aXP1lk8Ciyk3BqcjHdng= 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.236.95.36 with SMTP id o24mr2063664yhf.97.1293122613947; Thu, 23 Dec 2010 08:43:33 -0800 (PST) Received: by 10.236.110.38 with HTTP; Thu, 23 Dec 2010 08:43:33 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Dec 2010 18:43:33 +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=00235448f2ff0e2fdb04981692e0 X-Archives-Salt: 812e2545-95b1-4451-b59d-77dbb03f56b5 X-Archives-Hash: c6b17ffc1dfd1e571ecffd84206e7bbc --00235448f2ff0e2fdb04981692e0 Content-Type: text/plain; charset=UTF-8 On Mon, Nov 8, 2010 at 12:04 PM, Kfir Lavi wrote: > > > 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 > I have created an ebuild that deletes the epoll test from configure. I have posted it here: http://bugs.gentoo.org/show_bug.cgi?id=348521 After eliminating the epoll test, the compilation passes. Regards, Kfir --00235448f2ff0e2fdb04981692e0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mon, Nov 8, 2010 at = 12:04 PM, Kfir Lavi <lavi.kfir@gmail.com> wrote:


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


On= Wed, Nov 3, 2010 at 7:50 PM, Kfir Lavi <lavi.kfir@gmail.com> 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 i= 686-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
I have created an ebuild that deletes the epoll test fro= m configure.
I have posted it here: http://bugs.gentoo.org/show_bug.cgi?id=3D348521
After eliminating the epoll test, the compilation passes.

Regards,<= br>Kfir
--00235448f2ff0e2fdb04981692e0--