1 |
On Mon, Nov 8, 2010 at 12:04 PM, Kfir Lavi <lavi.kfir@×××××.com> wrote: |
2 |
|
3 |
> |
4 |
> |
5 |
> On Wed, Nov 3, 2010 at 8:32 PM, Kfir Lavi <lavi.kfir@×××××.com> wrote: |
6 |
> |
7 |
>> |
8 |
>> |
9 |
>> On Wed, Nov 3, 2010 at 7:50 PM, Kfir Lavi <lavi.kfir@×××××.com> wrote: |
10 |
>> |
11 |
>>> |
12 |
>>> |
13 |
>>> On Wed, Nov 3, 2010 at 12:33 PM, Kfir Lavi <lavi.kfir@×××××.com> wrote: |
14 |
>>> |
15 |
>>>> |
16 |
>>>> |
17 |
>>>> On Tue, Nov 2, 2010 at 2:49 PM, Manuel Lauss < |
18 |
>>>> manuel.lauss@××××××××××.com> wrote: |
19 |
>>>> |
20 |
>>>>> On Sun, Oct 31, 2010 at 9:08 AM, Kfir Lavi <lavi.kfir@×××××.com> |
21 |
>>>>> wrote: |
22 |
>>>>> > Hi, |
23 |
>>>>> > I have a cross compilation environment inside a chroot. |
24 |
>>>>> > I run: |
25 |
>>>>> > i686-unknown-linux-gnu-emerge dev-libs/ace |
26 |
>>>>> > ... |
27 |
>>>>> > checking for i686-unknown-linux-gnu-g++... i686-unknown-linux-gnu-g++ |
28 |
>>>>> > checking for C++ compiler default output file name... configure: |
29 |
>>>>> > error: C++ compiler cannot create executables |
30 |
>>>>> |
31 |
>>>>> Have a look at config.log. It tells exactly what went wrong, including |
32 |
>>>>> gcc |
33 |
>>>>> error output. |
34 |
>>>>> |
35 |
>>>>> Manuel |
36 |
>>>>> |
37 |
>>>>> It seems that one of the steps that I do, is deleting the tools. I need |
38 |
>>>> then to install again from package from the mother system (I'm running here |
39 |
>>>> as chroot, and its very good that I did so). |
40 |
>>>> So I install gcc and binutils, then compile them again in the chroot |
41 |
>>>> environment. |
42 |
>>>> Using i686-unknown-linux-gnu-emerge and everything happens again. |
43 |
>>>> I didn't find the culprit yet. |
44 |
>>>> |
45 |
>>>> Kfir |
46 |
>>>> |
47 |
>>> |
48 |
>>> It seems that installing dev-libs/ace is causing the problem. |
49 |
>>> emerge dev-libs/ace [works] |
50 |
>>> i686-gentoo-linux-gnu-g++ [works] |
51 |
>>> i686-gentoo-linux-gnu-gcc [works] |
52 |
>>> gcc [works] |
53 |
>>> g++ [works] |
54 |
>>> i686-gentoo-linux-gnu-emerge dev-libs/ace [DONT WORK] |
55 |
>>> |
56 |
>>> Other packages emerging ok with i686-gentoo-linux-gnu-emerge. |
57 |
>>> Can someone give me a hint? or something to check? |
58 |
>>> |
59 |
>>> Thanks, |
60 |
>>> Kfir |
61 |
>>> |
62 |
>> |
63 |
>> Some diagnostics: |
64 |
>> $ cd /usr/__CHOST__/tmp/portage/dev-libs/ace-5.7.2/work/ACE_wrappers/build |
65 |
>> $ ../configure |
66 |
>> checking build system type... i686-pc-linux-gnu |
67 |
>> checking host system type... i686-pc-linux-gnu |
68 |
>> checking target system type... i686-pc-linux-gnu |
69 |
>> checking for a BSD-compatible install... /usr/bin/install -c |
70 |
>> checking whether build environment is sane... yes |
71 |
>> checking for gawk... gawk |
72 |
>> checking whether make sets $(MAKE)... yes |
73 |
>> checking for egrep... grep -E |
74 |
>> checking whether #! works in shell scripts... yes |
75 |
>> checking for g++... g++ |
76 |
>> checking for C++ compiler default output file name... a.out |
77 |
>> checking whether the C++ compiler works... yes |
78 |
>> checking whether we are cross compiling... no |
79 |
>> checking for suffix of executables... |
80 |
>> checking for suffix of object files... o |
81 |
>> checking whether we are using the GNU C++ compiler... yes |
82 |
>> checking whether g++ accepts -g... yes |
83 |
>> checking for style of include used by make... GNU |
84 |
>> checking dependency style of g++... gcc3 |
85 |
>> checking how to run the C++ preprocessor... g++ -E |
86 |
>> |
87 |
>> Here we see that configure passes the test it failed with emerge. |
88 |
>> One line did grab my attention: checking whether we are cross compiling... |
89 |
>> no |
90 |
>> |
91 |
>> Maybe the environment that i686-gentoo-linux-gnu-emerge creates is not |
92 |
>> working for ACE. |
93 |
>> |
94 |
>> What do you think? |
95 |
>> |
96 |
>> Regards, |
97 |
>> Kfir |
98 |
>> |
99 |
> |
100 |
> I did again a cross compilation, really the same way I did before, but with |
101 |
> a different name. |
102 |
> crossdev -P -vt i686-gentoo1-linux-gnu |
103 |
> But without the -S, so it compiled all the latest and greatest. |
104 |
> |
105 |
> Now the problem is solved, but still ACE will stuck on another line: |
106 |
> checking for epoll_create... configure: error: cannot run test program |
107 |
> while cross compiling |
108 |
> See `config.log' for more details. |
109 |
> |
110 |
> But this is for different thread. |
111 |
> |
112 |
> Regards, |
113 |
> Kfir |
114 |
> |
115 |
I have created an ebuild that deletes the epoll test from configure. |
116 |
I have posted it here: http://bugs.gentoo.org/show_bug.cgi?id=348521 |
117 |
After eliminating the epoll test, the compilation passes. |
118 |
|
119 |
Regards, |
120 |
Kfir |