Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Wolfgang Meyerle <procrash@...>
Subject: crossdev mipsel toolchain compile problems
Date: Tue, 07 Nov 2006 18:16:39 +0100
Hello,

does anybody of you know why gcc fails in emerging gcc stage 2 in mipsel
toolchain. I tried to emerge this with the 

crossdev --target mipsel-linux-uclibc

and I always get the strange error message from gcc, specially from
libstdc++ which seems to be included in gcc:

Checking multilib configuration...
/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 ; \
rm -f mipsel-linux-uclibc/libstdc++-v3/Makefile || : ; \
cp multilib.out mipsel-linux-uclibc/libstdc++-v3/multilib.out
mkdir -p -- mipsel-linux-uclibc/libstdc++-v3
Configuring in mipsel-linux-uclibc/libstdc++-v3
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... mipsel-unknown-linux-uclibc
checking target system type... mipsel-unknown-linux-uclibc
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mipsel-linux-uclibc-strip... mipsel-linux-uclibc-strip
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
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
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
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
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
checking whether we are using the GNU C++ compiler... yes
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
checking whether ln -s works... yes
checking for mipsel-linux-uclibc-as... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/as
checking for mipsel-linux-uclibc-ar... mipsel-linux-uclibc-ar
checking for mipsel-linux-uclibc-ranlib... mipsel-linux-uclibc-ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
configure: CPU config directory is cpu/mips
configure: OS config directory is os/uclibc
checking for ld used by GCC... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld
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
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
checking for BSD-compatible nm... /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/nm
checking how to recognise dependant libraries... pass_all
checking the maximum length of command line arguments... none
checking for mipsel-linux-uclibc-ranlib... (cached) mipsel-linux-uclibc-ranlib
checking for mipsel-linux-uclibc-strip... (cached) mipsel-linux-uclibc-strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for objdir... .libs
checking for /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc option to produce PIC... -fPIC -DPIC
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc PIC flag -fPIC -DPIC works... yes
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc static flag -static works... no
finding the maximum length of command line arguments... 49153
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -c -o file.o... yes
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -fno-rtti -fno-exceptions ... no
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
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... uClibc ld.so
checking command to parse /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
configure: loading cache ./config.cache
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
loading cache ./config.cache within ltconfig
checking host system type... mipsel-unknown-linux-uclibc
checking build system type... x86_64-pc-linux-gnu
checking for objdir... .libs
checking for /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc option to produce PIC... -fPIC -DPIC
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc PIC flag -fPIC -DPIC works... yes
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc static flag -static works... no
finding the maximum length of command line arguments... (cached) 49153
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
checking if /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/xgcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/collect-ld) supports shared libraries... 
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... uClibc ld.so
checking command to parse /var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build/./gcc/nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool
checking for exception model to use... call frame
checking for compiler with PCH support... yes
checking for enabled PCH... yes
checking for underlying I/O to use... stdio
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
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for C locale to use... uclibc
checking for msgfmt... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking for library containing gettext... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/cross/mipsel-linux-uclibc/portage/gcc-4.1.1-r1/work/build'
make: *** [all] Error 2

!!! ERROR: cross-mipsel-linux-uclibc/gcc-4.1.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1535:   Called gcc_do_make
  toolchain.eclass, line 1409:   Called die

!!! emake failed with all
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
... done!

>>> Emerging (1 of 1) cross-mipsel-linux-uclibc/gcc-4.1.1-r1 to /
 * gcc-4.1.1.tar.bz2 MD5 ;-) ...                                          [ ok ]
 * gcc-4.1.1.tar.bz2 RMD160 ;-) ...                                       [ ok ]
 * gcc-4.1.1.tar.bz2 SHA1 ;-) ...                                         [ ok ]
 * gcc-4.1.1.tar.bz2 SHA256 ;-) ...                                       [ ok ]
 * gcc-4.1.1.tar.bz2 size ;-) ...                                         [ ok ]
 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 MD5 ;-) ...                       [ ok ]
 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 RMD160 ;-) ...                    [ ok ]
 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 SHA1 ;-) ...                      [ ok ]
 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 SHA256 ;-) ...                    [ ok ]
 * gcc-4.1.1-uclibc-patches-1.1.tar.bz2 size ;-) ...                      [ ok ]
 * gcc-4.1.1-patches-1.7.tar.bz2 MD5 ;-) ...                              [ ok ]
 * gcc-4.1.1-patches-1.7.tar.bz2 RMD160 ;-) ...                           [ ok ]
 * gcc-4.1.1-patches-1.7.tar.bz2 SHA1 ;-) ...                             [ ok ]
 * gcc-4.1.1-patches-1.7.tar.bz2 SHA256 ;-) ...                           [ ok ]
 * gcc-4.1.1-patches-1.7.tar.bz2 size ;-) ...                             [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking gcc-4.1.1.tar.bz2 ;-) ...                                     [ ok ]
 * checking gcc-4.1.1-uclibc-patches-1.1.tar.bz2 ;-) ...                  [ ok ]
 * checking gcc-4.1.1-patches-1.7.tar.bz2 ;-) ...                         [ ok ]



I really need this toolchain as I'm currently developing a port knocker
daemon which should run on my linksys router. I use libpcap for this
purposes. 

How can I include libpcap in this toolchain if it would compile?
There must be a way of including software witout too much configuration
stuff...

Thanks for your attention, perhaps you can help me out of this mess

Wolfgang Meyerle

-- 
gentoo-embedded@g.o mailing list


Replies:
Re: crossdev mipsel toolchain compile problems
-- Mike Frysinger
References:
Re: Can't get /dev/sda to mount
-- Colin Bell
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: crossdev mipsel toolchain compile problems
Next by thread:
Re: crossdev mipsel toolchain compile problems
Previous by date:
Re: crossdev mipsel toolchain compile problems
Next by date:
Re: crossdev mipsel toolchain compile problems


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.