Gentoo Archives: gentoo-embedded

From: Wolfgang Meyerle <procrash@××××××.de>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] crossdev mipsel toolchain compile problems
Date: Sat, 11 Nov 2006 10:36:53
Message-Id: 1162919799.25242.8.camel@localhost
In Reply to: Re: [gentoo-embedded] Can't get /dev/sda to mount by Colin Bell
1 Hello,
2
3 does anybody of you know why gcc fails in emerging gcc stage 2 in mipsel
4 toolchain. I tried to emerge this with the
5
6 crossdev --target mipsel-linux-uclibc
7
8 and I always get the strange error message from gcc, specially from
9 libstdc++ which seems to be included in gcc:
10
11 Checking multilib configuration...
12 /bin/sh /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/gcc-4.1.1/mkinstalldirs mipsel-linux-uclibc/libstdc++-v3 ; \
13 rm -f mipsel-linux-uclibc/libstdc++-v3/Makefile || : ; \
14 cp multilib.out mipsel-linux-uclibc/libstdc++-v3/multilib.out
15 mkdir -p -- mipsel-linux-uclibc/libstdc++-v3
16 Configuring in mipsel-linux-uclibc/libstdc++-v3
17 configure: creating cache ./config.cache
18 checking build system type... x86_64-pc-linux-gnu
19 checking host system type... mipsel-unknown-linux-uclibc
20 checking target system type... mipsel-unknown-linux-uclibc
21 checking for a BSD-compatible install... /bin/install -c
22 checking whether build environment is sane... yes
23 checking for gawk... gawk
24 checking whether make sets $(MAKE)... yes
25 checking for mipsel-linux-uclibc-strip... mipsel-linux-uclibc-strip
26 checking for mipsel-linux-uclibc-gcc... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/ -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include
27 checking for suffix of object files... o
28 checking whether we are using the GNU C compiler... yes
29 checking whether /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/ -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include accepts -g... yes
30 checking for /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/ -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include option to accept ANSI C... none needed
31 checking for mipsel-linux-uclibc-g++... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc -nostdinc++ -L/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/mipsel-linux-uclibc/libstdc++-v3/src -L/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/mipsel-linux-uclibc/libstdc++-v3/src/.libs -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include
32 checking whether we are using the GNU C++ compiler... yes
33 checking whether /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc -nostdinc++ -L/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/mipsel-linux-uclibc/libstdc++-v3/src -L/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/mipsel-linux-uclibc/libstdc++-v3/src/.libs -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include accepts -g... yes
34 checking whether ln -s works... yes
35 checking for mipsel-linux-uclibc-as... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/as
36 checking for mipsel-linux-uclibc-ar... mipsel-linux-uclibc-ar
37 checking for mipsel-linux-uclibc-ranlib... mipsel-linux-uclibc-ranlib
38 checking whether to enable maintainer-specific portions of Makefiles... no
39 configure: CPU config directory is cpu/mips
40 configure: OS config directory is os/uclibc
41 checking for ld used by GCC... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld
42 checking if the linker (/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld) is GNU ld... yes
43 checking for /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld option to reload object files... -r
44 checking for BSD-compatible nm... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/nm
45 checking how to recognise dependant libraries... pass_all
46 checking the maximum length of command line arguments... none
47 checking for mipsel-linux-uclibc-ranlib... (cached) mipsel-linux-uclibc-ranlib
48 checking for mipsel-linux-uclibc-strip... (cached) mipsel-linux-uclibc-strip
49 updating cache ./config.cache
50 loading cache ./config.cache within ltconfig
51 checking for objdir... .libs
52 checking for /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc option to produce PIC... -fPIC -DPIC
53 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc PIC flag -fPIC -DPIC works... yes
54 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc static flag -static works... no
55 finding the maximum length of command line arguments... 49153
56 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -c -o file.o... yes
57 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -fno-rtti -fno-exceptions ... no
58 checking whether the linker (/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld) supports shared libraries... yes
59 checking how to hardcode library paths into programs... immediate
60 checking whether stripping libraries is possible... yes
61 checking dynamic linker characteristics... uClibc ld.so
62 checking command to parse /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/nm output... failed
63 checking if libtool supports shared libraries... yes
64 checking whether to build shared libraries... no
65 checking whether to build static libraries... yes
66 creating libtool
67 updating cache ./config.cache
68 configure: loading cache ./config.cache
69 checking how to run the C++ preprocessor... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc -nostdinc++ -L/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/mipsel-linux-uclibc/libstdc++-v3/src -L/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/mipsel-linux-uclibc/libstdc++-v3/src/.libs -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include -E
70 loading cache ./config.cache within ltconfig
71 checking host system type... mipsel-unknown-linux-uclibc
72 checking build system type... x86_64-pc-linux-gnu
73 checking for objdir... .libs
74 checking for /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc option to produce PIC... -fPIC -DPIC
75 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc PIC flag -fPIC -DPIC works... yes
76 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc static flag -static works... no
77 finding the maximum length of command line arguments... (cached) 49153
78 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -c -o file.o... (cached) yes
79 checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -fno-rtti -fno-exceptions ... yes
80 checking whether the linker (/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld) supports shared libraries...
81 checking how to hardcode library paths into programs... immediate
82 checking whether stripping libraries is possible... yes
83 checking dynamic linker characteristics... uClibc ld.so
84 checking command to parse /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/nm output... failed
85 checking if libtool supports shared libraries... yes
86 checking whether to build shared libraries... no
87 checking whether to build static libraries... yes
88 appending configuration tag "CXX" to libtool
89 checking for exception model to use... call frame
90 checking for compiler with PCH support... yes
91 checking for enabled PCH... yes
92 checking for underlying I/O to use... stdio
93 checking how to run the C preprocessor... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc -B/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/ -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include -E
94 checking for egrep... grep -E
95 checking for ANSI C header files... yes
96 checking for sys/types.h... yes
97 checking for sys/stat.h... yes
98 checking for stdlib.h... yes
99 checking for string.h... yes
100 checking for memory.h... yes
101 checking for strings.h... yes
102 checking for inttypes.h... yes
103 checking for stdint.h... yes
104 checking for unistd.h... yes
105 checking for C locale to use... uclibc
106 checking for msgfmt... yes
107 checking libintl.h usability... no
108 checking libintl.h presence... no
109 checking for libintl.h... no
110 checking for library containing gettext... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
111 make[1]: *** [configure-target-libstdc++-v3] Error 1
112 make[1]: Leaving directory `/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build'
113 make: *** [all] Error 2
114
115 !!! ERROR: cross-mipsel-linux-uclibc/gcc-4.1.1-r1 failed.
116 Call stack:
117 ebuild.sh, line 1546: Called dyn_compile
118 ebuild.sh, line 937: Called src_compile
119 ebuild.sh, line 1255: Called toolchain_src_compile
120 toolchain.eclass, line 24: Called gcc_src_compile
121 toolchain.eclass, line 1535: Called gcc_do_make
122 toolchain.eclass, line 1409: Called die
123
124 !!! emake failed with all
125 !!! If you need support, post the topmost build error, and the call stack if relevant.
126
127 !!! This ebuild is from an overlay: '/usr/local/portage'
128 ... done!
129
130 >>> Emerging (1 of 1) cross-mipsel-linux-uclibc/gcc-4.1.1-r1 to /
131 * gcc-4.1.1.tar.bz2 MD5 ;-) ... [ ok ]
132 * gcc-4.1.1.tar.bz2 RMD160 ;-) ... [ ok ]
133 * gcc-4.1.1.tar.bz2 SHA1 ;-) ... [ ok ]
134 * gcc-4.1.1.tar.bz2 SHA256 ;-) ... [ ok ]
135 * gcc-4.1.1.tar.bz2 size ;-) ... [ ok ]
136 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 MD5 ;-) ... [ ok ]
137 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 RMD160 ;-) ... [ ok ]
138 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 SHA1 ;-) ... [ ok ]
139 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 SHA256 ;-) ... [ ok ]
140 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 size ;-) ... [ ok ]
141 * gcc-4.1.1-patches-1.7.tar.bz2 MD5 ;-) ... [ ok ]
142 * gcc-4.1.1-patches-1.7.tar.bz2 RMD160 ;-) ... [ ok ]
143 * gcc-4.1.1-patches-1.7.tar.bz2 SHA1 ;-) ... [ ok ]
144 * gcc-4.1.1-patches-1.7.tar.bz2 SHA256 ;-) ... [ ok ]
145 * gcc-4.1.1-patches-1.7.tar.bz2 size ;-) ... [ ok ]
146 * checking ebuild checksums ;-) ... [ ok ]
147 * checking auxfile checksums ;-) ... [ ok ]
148 * checking miscfile checksums ;-) ... [ ok ]
149 * checking gcc-4.1.1.tar.bz2 ;-) ... [ ok ]
150 * checking gcc-4.1.1-uclibc-patches-1.1.tar.bz2 ;-) ... [ ok ]
151 * checking gcc-4.1.1-patches-1.7.tar.bz2 ;-) ... [ ok ]
152
153
154
155 I really need this toolchain as I'm currently developing a port knocker
156 daemon which should run on my linksys router. I use libpcap for this
157 purposes.
158
159 How can I include libpcap in this toolchain if it would compile?
160 There must be a way of including software witout too much configuration
161 stuff...
162
163 Thanks for your attention, perhaps you can help me out of this mess
164
165 Wolfgang Meyerle
166
167 --
168 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] crossdev mipsel toolchain compile problems Mike Frysinger <vapier@g.o>