Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
build native gcc for arm-unknown-linux-gnu fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
listerkanister
n00b
n00b


Joined: 02 Oct 2006
Posts: 9
Location: Linz, Austria

PostPosted: Fri Mar 21, 2008 9:19 am    Post subject: build native gcc for arm-unknown-linux-gnu fails Reply with quote

Hi all,

I'm desperate. I tried everything to build a native gcc for my ARM Versatile board. The toolchain i use was built with crossdev and is named "arm-unknown-linux-gnu". I also use the xemerge wrapper from [1].

Everytime i try to build gcc:4.1, gcc:4.2 or gcc:3.4 all i get is this error after from configure:

Code:

# ACCEPT_KEYWORDS="~arm" USE="-fortran" xemerge  -av sys-devel/gcc:4.2

These are the packages that would be merged, in order:

Calculating dependencies                     ... done!
[ebuild  N    ] sys-devel/gcc-4.2.3 to /usr/arm-unknown-linux-gnu/ USE="mudflap nls openmp (-altivec) -bootstrap -build -doc -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-devel/gcc-4.2.3 to /usr/arm-unknown-linux-gnu/
 * gcc-4.2.3-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                                    [ ok ]
 * gcc-4.2.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                                                [ ok ]
 * gcc-4.2.3-uclibc-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                                              [ ok ]
 * checking gcc-4.2.3.tar.bz2 ;-) ...                                                                                                                                                                                                                               [ ok ]
 * checking gcc-4.2.3-uclibc-patches-1.0.tar.bz2 ;-) ...                                                                                                                                                                                                            [ ok ]
 * checking gcc-4.2.3-patches-1.0.tar.bz2 ;-) ...                                                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking gcc-4.2.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.2.3/work
>>> Unpacking gcc-4.2.3-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.2.3/work
>>> Unpacking gcc-4.2.3-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.2.3/work
 * Applying Gentoo patches ...
 *   00_all_gcc-4.1-alpha-mieee-default.patch ...                                                                                                                                                                                                                   [ ok ]
 *   00_all_gcc-trampolinewarn.patch ...                                                                                                                                                                                                                            [ ok ]
 *   01_all_gcc4-ice-hack.patch ...                                                                                                                                                                                                                                 [ ok ]
 *   02_all_gcc4-ppc64-m32-m64-multilib-only.patch ...                                                                                                                                                                                                              [ ok ]
 *   03_all_gcc4-java-nomulti.patch ...                                                                                                                                                                                                                             [ ok ]
 *   06_all_gcc4-slow-pthread-self.patch ...                                                                                                                                                                                                                        [ ok ]
 *   08_all_gcc-4.1-cross-compile.patch ...                                                                                                                                                                                                                         [ ok ]
 *   10_all_gcc4-libltdl-multilib.patch ...                                                                                                                                                                                                                         [ ok ]
 *   11_all_gcc-netbsd-symbolic.patch ...                                                                                                                                                                                                                           [ ok ]
 *   14_all_gcc-sparc64-bsd.patch ...                                                                                                                                                                                                                               [ ok ]
 *   18_all_904-flatten-switch-stmt-00.patch ...                                                                                                                                                                                                                    [ ok ]
 *   20_all_cris-dont-force-limits-header.patch ...                                                                                                                                                                                                                 [ ok ]
 *   34_all_arm-bigendian.patch ...                                                                                                                                                                                                                                 [ ok ]
 *   35_all_gcc-arm-pragma-pack.patch ...                                                                                                                                                                                                                           [ ok ]
 *   36_all_gcc-arm-pr30486.patch ...                                                                                                                                                                                                                               [ ok ]
 *   51_all_gcc-3.4-libiberty-pic.patch ...                                                                                                                                                                                                                         [ ok ]
 *   53_all_gcc4-superh-default-multilib.patch ...                                                                                                                                                                                                                  [ ok ]
 *   54_all_300-libstdc++-pic.patch ...                                                                                                                                                                                                                             [ ok ]
 *   59_all_gcc-4-pr32893.patch ...                                                                                                                                                                                                                                 [ ok ]
 *   61_all_gcc4-ia64-noteGNUstack.patch ...                                                                                                                                                                                                                        [ ok ]
 *   62_all_gcc4-noteGNUstack.patch ...                                                                                                                                                                                                                             [ ok ]
 *   74_all_sh-pr24836.patch ...                                                                                                                                                                                                                                    [ ok ]
 *   85_all_gcc-ca-translation-typo.patch ...                                                                                                                                                                                                                       [ ok ]
 *   90_all_mips-add-march-r10k.patch ...                                                                                                                                                                                                                           [ ok ]
 *   91_all_mips-ip28_cache_barriers-v4.patch ...                                                                                                                                                                                                                   [ ok ]
 *   92_all_mips-pthread-with-shared.patch ...                                                                                                                                                                                                                      [ ok ]
 * Done with patching
 * Applying uClibc patches ...
 *   90_all_100-uclibc-conf.patch ...                                                                                                                                                                                                                               [ ok ]
 *   90_all_103-uclibc-conf-noupstream.patch ...                                                                                                                                                                                                                    [ ok ]
 *   90_all_200-uclibc-locale.patch ...                                                                                                                                                                                                                             [ ok ]
 *   90_all_203-uclibc-locale-no__x.patch ...                                                                                                                                                                                                                       [ ok ]
 *   90_all_204-uclibc-locale-wchar_fix.patch ...                                                                                                                                                                                                                   [ ok ]
 *   90_all_205-uclibc-locale-update.patch ...                                                                                                                                                                                                                      [ ok ]
 *   90_all_301-missing-execinfo_h.patch ...                                                                                                                                                                                                                        [ ok ]
 *   90_all_302-c99-snprintf.patch ...                                                                                                                                                                                                                              [ ok ]
 *   90_all_303-c99-complex-ugly-hack.patch ...                                                                                                                                                                                                                     [ ok ]
 *   90_all_304-index_macro.patch ...                                                                                                                                                                                                                               [ ok ]
 *   90_all_305-libmudflap-susv3-legacy.patch ...                                                                                                                                                                                                                   [ ok ]
 *   90_all_306-libstdc++-namespace.patch ...                                                                                                                                                                                                                       [ ok ]
 *   90_all_402-libbackend_dep_gcov-iov.h.patch ...                                                                                                                                                                                                                 [ ok ]
 * Done with patching
 * Replacing obsolete head/tail with POSIX compliant ones
 *  - fixed contrib/test_summary
 *  - fixed boehm-gc/configure
 *  - fixed fixincludes/configure
 *  - fixed gcc/configure
 *  - fixed gnattools/configure
 *  - fixed intl/configure
 *  - fixed libada/configure
 *  - fixed libcpp/configure
 *  - fixed libdecnumber/configure
 *  - fixed libffi/configure
 *  - fixed libgfortran/configure
 *  - fixed libgomp/configure
 *  - fixed libiberty/configure
 *  - fixed libjava/configure
 *  - fixed libmudflap/configure
 *  - fixed libobjc/configure
 *  - fixed libssp/configure
 *  - fixed libstdc++-v3/configure
 *  - fixed zlib/configure
 *  - fixed ltcf-c.sh
 *  - fixed ltcf-cxx.sh
 *  - fixed ltcf-gcj.sh
 *  - fixed ltmain.sh
 *  - fixed boehm-gc/Makefile.in
 *  - fixed fixincludes/Makefile.in
 *  - fixed gcc/Makefile.in
 *  - fixed gnattools/Makefile.in
 *  - fixed intl/Makefile.in
 *  - fixed libada/Makefile.in
 *  - fixed libcpp/Makefile.in
 *  - fixed libdecnumber/Makefile.in
 *  - fixed libffi/Makefile.in
 *  - fixed libgfortran/Makefile.in
 *  - fixed libgomp/Makefile.in
 *  - fixed libiberty/Makefile.in
 *  - fixed libjava/Makefile.in
 *  - fixed libmudflap/Makefile.in
 *  - fixed libobjc/Makefile.in
 *  - fixed libssp/Makefile.in
 *  - fixed libstdc++-v3/Makefile.in
 *  - fixed zlib/Makefile.in
 * patching gcc version: 4.2.3 (Gentoo 4.2.3 p1.0)
 * Running elibtoolize in: gcc-4.2.3
 *   Applying install-sh-1.5.4.patch ...
 *   Applying ltmain-1.5.patch ...
 *   Applying portage-1.5.10.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying test-1.4.1.patch ...
 *   Applying tmp-1.3.5.patch ...
 * Using GNU config files from /usr/share/libtool
 *   Updating libjava/libltdl/config.sub                                                                                                                                                                                                                            [ ok ]
 *   Updating libjava/classpath/config.sub                                                                                                                                                                                                                          [ ok ]
 *   Updating config.sub                                                                                                                                                                                                                                            [ ok ]
 *   Updating libjava/libltdl/config.guess                                                                                                                                                                                                                          [ ok ]
 *   Updating libjava/classpath/config.guess                                                                                                                                                                                                                        [ ok ]
 *   Updating config.guess                                                                                                                                                                                                                                          [ ok ]
 * Fixing misc issues in configure files
 * Applying gcc-configure-texinfo.patch ...                                                                                                                                                                                                                         [ ok ]
 *   Updating configure [LANG] ...                                                                                                                                                                                                                                  [ ok ]
 * Touching generated files
 *   Touching gcc/cstamp-h.in
 *   Touching gcc/config.in
 *   Touching libjava/aclocal.m4
 *   Touching libjava/Makefile.in
 *   Touching libjava/configure
 *   Touching libjava/libltdl/aclocal.m4
 *   Touching libjava/libltdl/Makefile.in
 *   Touching libjava/libltdl/configure
 *   Touching libjava/libltdl/config-h.in
 * Applying gcc-spec-env.patch ...                                                                                                                                                                                                                                  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3 ...
 * CFLAGS="-march=armv5 -O2 -pipe"
 * CXXFLAGS="-march=armv5 -O2 -pipe"
 * Configuring gcc ...
 * running gcc-compiler-configure
 * QA Notice: USE Flag 'objc++' not in IUSE for sys-devel/gcc-4.2.3
 * configuring for GCC_LANG: c,c++,treelang

 * PREFIX:                      /usr
 * BINPATH:                     /usr/arm-unknown-linux-gnu/gcc-bin/4.2.3
 * LIBPATH:                     /usr/lib/gcc/arm-unknown-linux-gnu/4.2.3
 * DATAPATH:            /usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3
 * STDCXX_INCDIR:       /usr/lib/gcc/arm-unknown-linux-gnu/4.2.3/include/g++-v4

 * Configuring GCC with:
        --prefix=/usr
        --bindir=/usr/arm-unknown-linux-gnu/gcc-bin/4.2.3
        --includedir=/usr/lib/gcc/arm-unknown-linux-gnu/4.2.3/include
        --datadir=/usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3
        --mandir=/usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3/man
        --infodir=/usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3/info
        --with-gxx-include-dir=/usr/lib/gcc/arm-unknown-linux-gnu/4.2.3/include/g++-v4
        --host=arm-unknown-linux-gnu
        --target=arm-unknown-linux-gnu
        --build=i686-pc-linux-gnu
        --disable-altivec
        --enable-nls
        --without-included-gettext
        --with-system-zlib
        --disable-checking
        --disable-werror
        --enable-secureplt
        --disable-libunwind-exceptions
        --disable-multilib
        --enable-libmudflap
        --disable-libssp
        --disable-libgcj
        --enable-languages=c,c++,treelang
        --enable-shared
        --enable-threads=posix
        --enable-__cxa_atexit
        --enable-clocale=gnu
        --with-bugurl=http://bugs.gentoo.org/
        --with-pkgversion=Gentoo 4.2.3 p1.0

/var/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/configure --prefix=/usr --bindir=/usr/arm-unknown-linux-gnu/gcc-bin/4.2.3 --includedir=/usr/lib/gcc/arm-unknown-linux-gnu/4.2.3/include --datadir=/usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3 --mandir=/usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3/man --infodir=/usr/share/gcc-data/arm-unknown-linux-gnu/4.2.3/info --with-gxx-include-dir=/usr/lib/gcc/arm-unknown-linux-gnu/4.2.3/include/g++-v4 --host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 4.2.3 p1.0
creating cache ./config.cache
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for arm-unknown-linux-gnu-gnatbind... no
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... buggy version of MPFR detected
checking for any version of mpfr.h... no
*** This configuration is not supported in the following subdirectories:
     target-libffi target-zlib target-libjava target-libada gnattools target-libgfortran zlib target-libobjc target-libssp target-boehm-gc
    (Any other directories should still work fine.)
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for arm-unknown-linux-gnu-ar... arm-unknown-linux-gnu-ar
checking for arm-unknown-linux-gnu-as... arm-unknown-linux-gnu-as
checking for arm-unknown-linux-gnu-dlltool... no
checking for arm-unknown-linux-gnu-ld... arm-unknown-linux-gnu-ld
checking for arm-unknown-linux-gnu-lipo... no
checking for arm-unknown-linux-gnu-nm... arm-unknown-linux-gnu-nm
checking for arm-unknown-linux-gnu-ranlib... arm-unknown-linux-gnu-ranlib
checking for arm-unknown-linux-gnu-strip... arm-unknown-linux-gnu-strip
checking for arm-unknown-linux-gnu-windres... no
checking for arm-unknown-linux-gnu-objcopy... arm-unknown-linux-gnu-objcopy
checking for arm-unknown-linux-gnu-objdump... arm-unknown-linux-gnu-objdump
checking for arm-unknown-linux-gnu-cc... no
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for arm-unknown-linux-gnu-c++... arm-unknown-linux-gnu-c++
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for arm-unknown-linux-gnu-gcj... no
checking for arm-unknown-linux-gnu-gfortran... arm-unknown-linux-gnu-gfortran
checking for ar... no
checking for arm-unknown-linux-gnu-ar... arm-unknown-linux-gnu-ar
checking for as... no
checking for arm-unknown-linux-gnu-as... arm-unknown-linux-gnu-as
checking for dlltool... no
checking for arm-unknown-linux-gnu-dlltool... no
checking for ld... no
checking for arm-unknown-linux-gnu-ld... arm-unknown-linux-gnu-ld
checking for lipo... no
checking for arm-unknown-linux-gnu-lipo... no
checking for nm... no
checking for arm-unknown-linux-gnu-nm... arm-unknown-linux-gnu-nm
checking for objdump... no
checking for arm-unknown-linux-gnu-objdump... arm-unknown-linux-gnu-objdump
checking for ranlib... no
checking for arm-unknown-linux-gnu-ranlib... arm-unknown-linux-gnu-ranlib
checking for strip... no
checking for arm-unknown-linux-gnu-strip... arm-unknown-linux-gnu-strip
checking for windres... no
checking for arm-unknown-linux-gnu-windres... no
checking where to find the target ar... pre-installed
checking where to find the target as... pre-installed
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
 * Compiling gcc ...
/var/tmp/portage/sys-devel/gcc-4.2.3/work/build /var/tmp/portage/sys-devel/gcc-4.2.3/work/build /var/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3
 * Running make LDFLAGS="" STAGE1_CFLAGS="-march=armv5 -O2 -pipe" LIBPATH="/usr/lib/gcc/arm-unknown-linux-gnu/4.2.3" BOOT_CFLAGS=" -march=armv5 -O2 -pipe" all
make[1]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.2.3/work/build'
mkdir -p -- ./fixincludes
mkdir -p -- ./libiberty
Configuring in ./fixincludes
Configuring in ./libiberty
configure: creating cache ./config.cache
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000
checking for perl... perl
checking build system type... checking build system type... i686-pc-linux-gnu
i686-pc-linux-gnu
checking host system type... checking host system type... arm-unknown-linux-gnu
checking for arm-unknown-linux-gnu-ar... arm-unknown-linux-gnu-ar
checking for arm-unknown-linux-gnu-ranlib... arm-unknown-linux-gnu-ranlib
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for C compiler default output file name... checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnu-gcc accepts -g... yes
checking whether arm-unknown-linux-gnu-gcc accepts -g... yes
checking for arm-unknown-linux-gnu-gcc option to accept ANSI C... yes
checking for arm-unknown-linux-gnu-gcc option to accept ANSI C... none needed
none needed
checking how to run the C preprocessor... checking whether arm-unknown-linux-gnu-gcc supports -W... yes
checking whether arm-unknown-linux-gnu-gcc supports -Wall... arm-unknown-linux-gnu-gcc -E
yes
checking whether arm-unknown-linux-gnu-gcc supports -Wwrite-strings... checking whether arm-unknown-linux-gnu-gcc accepts -Wc++-compat... yes
checking whether arm-unknown-linux-gnu-gcc supports -Wstrict-prototypes... yes
checking whether arm-unknown-linux-gnu-gcc and cc understand -c and -o together... yes
checking whether arm-unknown-linux-gnu-gcc supports -Wmissing-prototypes... yes
checking whether arm-unknown-linux-gnu-gcc supports -Wold-style-definition... yes
checking whether arm-unknown-linux-gnu-gcc supports -Wmissing-format-attribute... yes
checking whether arm-unknown-linux-gnu-gcc supports -Wno-overlength-strings... yes
checking whether arm-unknown-linux-gnu-gcc supports -pedantic -Wno-long-long... yes
checking how to run the C preprocessor... arm-unknown-linux-gnu-gcc -E
yes
checking for an ANSI C-conforming const... yes
checking for inline... checking for egrep... grep -E
checking for ANSI C header files... inline
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
Appending /var/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/libiberty/../config/mh-armpic to xhost-mkfrag
yes
checking for sys/types.h... checking for sys/file.h... yes
yes
checking for sys/stat.h... checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for stdlib.h... yes
yes
checking for malloc.h... checking for string.h... yes
checking for string.h... yes
yes
checking for memory.h... checking for unistd.h... yes
checking for strings.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
yes
checking for time.h... checking for inttypes.h... yes
checking for sys/resource.h... yes
yes
checking for stdint.h... checking for sys/stat.h... yes
checking for sys/mman.h... yes
yes
checking for unistd.h... checking for fcntl.h... yes
checking for alloca.h... yes
checking stddef.h usability... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... yes
checking stddef.h presence... no
checking for sys/sysinfo.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
yes
checking for strings.h... (cached) yes
checking for machine/hal_sysinfo.h... checking for unistd.h... (cached) yes
no
checking fcntl.h usability... checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking fcntl.h presence... yes
checking for sys/systemcfg.h... yes
checking for fcntl.h... yes
checking sys/file.h usability... no
checking for stdint.h... yes
checking for stdio_ext.h... yes
checking sys/file.h presence... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/file.h... yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... yes
checking whether time.h and sys/time.h may both be included... yes
yes
checking for feof_unlocked... checking whether errno must be declared... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for ferror_unlocked... yes
checking for sys/types.h... yes
checking for fflush_unlocked... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
yes
checking for fgetc_unlocked... checking for strings.h... (cached) yes
checking for inttypes.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
yes
checking for int... checking for fgets_unlocked... yes
checking size of int... yes
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... yes
checking for fputs_unlocked... yes
checking for fread_unlocked... yes
checking for fwrite_unlocked... 4
checking for uintptr_t... yes
checking for a 64-bit type... yes
checking for getchar_unlocked... uint64_t
checking for pid_t... yes
checking for getc_unlocked... yes
checking for library containing strerror... yes
checking for putchar_unlocked... none required
checking for asprintf... yes
checking for putc_unlocked... yes
checking for atexit... yes
checking whether abort is declared... yes
checking for basename... yes
checking whether asprintf is declared... yes
checking for bcmp... no
checking whether basename is declared... yes
no
checking whether errno is declared... checking for bcopy... no
checking whether vasprintf is declared... yes
checking for bsearch... no
checking whether clearerr_unlocked is declared... yes
checking for bzero... yes
checking whether feof_unlocked is declared... yes
checking for calloc... yes
checking whether ferror_unlocked is declared... yes
yes
checking whether fflush_unlocked is declared... checking for clock... yes
checking whether fgetc_unlocked is declared... yes
checking for ffs... yes
checking whether fgets_unlocked is declared... yes
checking for getcwd... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... yes
checking for getpagesize... no
checking whether fputc_unlocked is declared... yes
checking for gettimeofday... yes
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... yes
checking for index... yes
checking whether fwrite_unlocked is declared... yes
checking for insque... yes
checking whether getchar_unlocked is declared... yes
yes
checking whether getc_unlocked is declared... checking for memchr... yes
checking whether putchar_unlocked is declared... yes
checking for memcmp... yes
checking whether putc_unlocked is declared... yes
checking for memcpy... yes
checking for an ANSI C-conforming const... yes
checking sys/mman.h usability... yes
checking for memmove... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for mempcpy... yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for memset... checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
configure: creating ./config.status
yes
checking for mkstemps... no
checking for putenv... config.status: creating Makefile
yes
checking for random... config.status: creating mkheaders.almost
config.status: creating config.h
yes
checking for rename... mkdir -p -- ./intl
Configuring in ./intl
yes
checking for rindex... yes
checking for setenv... yes
checking for snprintf... yes
checking for sigsetmask... configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... yes
checking for stpcpy... yes
/usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... checking for stpncpy... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
yes
checking for C compiler default output file name... checking for strcasecmp... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... yes
checking for strchr...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking for strdup... yes
checking whether arm-unknown-linux-gnu-gcc accepts -g... yes
checking for arm-unknown-linux-gnu-gcc option to accept ANSI C... yes
checking for strncasecmp... none needed
checking build system type... i686-pc-linux-gnu
yes
checking host system type... checking for strndup... arm-unknown-linux-gnu
checking for arm-unknown-linux-gnu-ranlib... arm-unknown-linux-gnu-ranlib
checking for library containing strerror... yes
checking for strrchr... none required
checking how to run the C preprocessor... arm-unknown-linux-gnu-gcc -E
yes
checking for strstr... checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strtod... yes
checking for an ANSI C-conforming const... yes
checking for inline... yes
checking for strtol... inline
checking for sys/types.h... yes
yes
checking for sys/stat.h... checking for strtoul... yes
checking for stdlib.h... yes
checking for strverscmp... yes
checking for string.h... yes
yes
checking for tmpnam... checking for memory.h... yes
checking for strings.h... yes
checking for vasprintf... yes
checking for inttypes.h... yes
checking for vfprintf... yes
checking for stdint.h... yes
checking for vprintf... yes
checking for unistd.h... yes
checking for off_t... yes
checking for vsnprintf... yes
checking for size_t... yes
checking for vsprintf... yes
checking for working alloca.h... yes
checking for waitpid... yes
checking for alloca... yes
yes
checking for stdlib.h... (cached) yes
checking whether alloca needs Cray hooks... checking for unistd.h... (cached) yes
checking for getpagesize... no
checking stack direction for C alloca... 0
checking for unistd.h... (cached) yes
checking for vfork.h... no
checking for fork... yes
checking for working mmap... no
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... guessing no
checking for inttypes.h... yes
yes
checking for stdint.h... checking for vfork... yes
checking for unsigned long long... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for _doprnt... yes
checking for inttypes.h... no
checking for sys_errlist... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... arm-unknown-linux-gnu-ld
checking if the linker (arm-unknown-linux-gnu-ld) is GNU ld... yes
checking for shared library run path origin... done
yes
checking for sys_nerr... checking argz.h usability... yes
checking for sys_siglist... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking for external symbol _system_configuration... yes
checking limits.h presence... no
yes
checking for limits.h... yes
checking for getrusage... checking locale.h usability... yes
checking for on_exit... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking for psignal... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking for strerror... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking for strsignal... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
yes
checking for sysconf... checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking for times... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for sbrk... yes
checking for fgets_unlocked... yes
checking for gettimeofday... (cached) yes
checking for realpath... yes
checking for getc_unlocked... yes
checking for canonicalize_file_name... yes
checking for getcwd... yes
checking for pstat_getstatic... yes
checking for getegid... no
checking for pstat_getdynamic... yes
checking for geteuid... no
checking for sysmp... yes
checking for getgid... no
checking for getsysinfo... yes
checking for getuid... no
checking for table... yes
checking for mempcpy... no
checking for sysctl... yes
checking for munmap... yes
checking for wait3... yes
checking for putenv... yes
checking for wait4... yes
checking for setenv... yes
checking for __fsetlocking... yes
checking for setlocale... yes
checking whether basename is declared... yes
checking for stpcpy... no
checking whether ffs is declared... yes
checking whether asprintf is declared... yes
checking for strcasecmp... no
checking whether vasprintf is declared... yes
checking for strdup... no
checking whether snprintf is declared... yes
checking for strtoul... yes
checking whether vsnprintf is declared... yes
checking whether calloc is declared... yes
checking for tsearch... yes
checking whether getenv is declared... yes
checking for __argz_count... yes
checking whether getopt is declared... yes
checking for __argz_stringify... yes
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking for __argz_next... yes
checking whether sbrk is declared... yes
checking for __fsetlocking... yes
checking whether strverscmp is declared... yes
checking for iconv... no
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) yes
yes
checking for iconv declaration... checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... no

         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... updating cache ./config.cache
configure: creating ./config.status
yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.3, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... config.status: creating Makefile
yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
config.status: creating testsuite/Makefile
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
config.status: creating config.h
updating cache ./config.cache
configure: creating ./config.status
config.status: executing default commands
config.status: creating Makefile
mkdir -p -- build-i686-pc-linux-gnu/libiberty
Configuring in build-i686-pc-linux-gnu/libiberty
config.status: creating config.intl
config.status: creating config.h
config.status: executing default-1 commands
mkdir -p -- build-i686-pc-linux-gnu/fixincludes
Configuring in build-i686-pc-linux-gnu/fixincludes
configure: creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for i686-pc-linux-gnu-gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
configure: loading cache ../config.cache
checking build system type... make[1]: *** [configure-build-libiberty] Error 1
make[1]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-build-fixincludes] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.3/work/build'
make: *** [all] Error 2
 *
 * ERROR: sys-devel/gcc-4.2.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4537:  Called toolchain_src_compile
 *             environment, line 5006:  Called gcc_src_compile
 *             environment, line 2894:  Called gcc_do_make
 *             environment, line 2724:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with all
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.2.3/temp/environment'.
 *

 * Messages for package sys-devel/gcc-4.2.3 merged to /usr/arm-unknown-linux-gnu/:

 *
 * ERROR: sys-devel/gcc-4.2.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4537:  Called toolchain_src_compile
 *             environment, line 5006:  Called gcc_src_compile
 *             environment, line 2894:  Called gcc_do_make
 *             environment, line 2724:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with all
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.2.3/temp/environment'.
 *


Well i guess that arm-unknown-linux-gcc is not able to create executeables for my build system (i686-pc-linux-gnu). Could anybody give me a hint on how i could manage to compile a native gcc for my ARM?

Here is my "xemerge --info":
Code:

# xemerge --info
Portage 2.1.4.4 (default-linux/arm/2007.0, gcc-4.2.2, glibc-2.5-r4, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Genuine Intel(R) CPU 2140 @ 1.60GHz
Timestamp of tree: Fri, 21 Mar 2008 01:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="arm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=armv5 -O2 -pipe"
CHOST="arm-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CTARGET="arm-unknown-linux-gnu"
CXXFLAGS="-march=armv5 -O2 -pipe"
DISTDIR="/usr/portage/../distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="buildpkg candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/../packages-arm/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl arm berkdb bzip2 cli cracklib crypt cups fortran iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python readline reflection session spl ssl tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="chips dummy fbdevglint mach64 mga nv r128 radeon s3 s3virge savage sisusb tdfx trident v4l vga voodoo"
Unset:  CPPFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


thx, Simon

[1] http://dev.gentoo.org/~vapier/eh/?part=1&chap=5
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Mar 24, 2008 6:40 pm    Post subject: Reply with quote

Posting /var/tmp/portage/sys-devel/gcc-4.2.3/work/build/config.log would probably help. That way we'd be able to see exactly what went wrong. I think I know what it is though. It's your CFLAGS. The -march=armv5 option is probably getting passed to i686-pc-linux-gnu-gcc, which it obviously doesn't understand. For this reason, the CFLAGS are always set to "-O2 -pipe" when building a cross-compiler (see toolchain.eclass) but since you're not building a cross-compiler, it's passing the option through. An additional check for Canadian Crosses should probably be added to the eclass. If you really want to set -march for the ARM compiler, it might be possible through some other variable but I'm not sure.
Back to top
View user's profile Send private message
tharrrk
n00b
n00b


Joined: 20 Apr 2008
Posts: 1

PostPosted: Sun Apr 20, 2008 7:44 pm    Post subject: exactly Reply with quote

Hi!
I got exactly the same problem while trying to create a native compiler for ipaq (i'd like to recompile my crosscompiled stage natively).
After removing "-mtune=xscale" from CFLAGS (only -O2 -pipe left) gcc compiled fine!!!

Thank you very much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum