From: Kfir Lavi <lavi.kfir@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] configure: error: C++ compiler cannot create executables
Date: Thu, 23 Dec 2010 18:43:33 +0200 [thread overview]
Message-ID: <AANLkTinvQ0oUaTBiufU=eD0S8Gv3jfDxcVFO0p5hd_yc@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=L+38=sFDMura29ojwreyvyU9+DQjFvzfAJAnH@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3931 bytes --]
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.com> 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@googlemail.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++
>>>>> > 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
[-- Attachment #2: Type: text/html, Size: 5744 bytes --]
next prev parent reply other threads:[~2010-12-23 17:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 8:08 [gentoo-embedded] configure: error: C++ compiler cannot create executables Kfir Lavi
2010-11-02 12:49 ` Manuel Lauss
2010-11-03 10:33 ` Kfir Lavi
2010-11-03 17:50 ` Kfir Lavi
2010-11-03 18:32 ` Kfir Lavi
2010-11-08 10:04 ` Kfir Lavi
2010-12-05 19:52 ` Enrico Weigelt
2010-12-23 16:43 ` Kfir Lavi [this message]
2010-12-30 6:27 ` Enrico Weigelt
2010-12-30 12:21 ` Kfir Lavi
2010-12-31 1:15 ` Enrico Weigelt
2010-12-31 17:07 ` Kfir Lavi
2011-01-02 22:38 ` Enrico Weigelt
2011-01-03 15:00 ` Peter Stuge
2011-02-05 15:16 ` Enrico Weigelt
2011-02-06 7:21 ` Mike Frysinger
2011-02-13 22:28 ` Enrico Weigelt
2011-02-14 5:30 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTinvQ0oUaTBiufU=eD0S8Gv3jfDxcVFO0p5hd_yc@mail.gmail.com' \
--to=lavi.kfir@gmail.com \
--cc=gentoo-embedded@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox