This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Dear all, Hello to all, I am new to this list. I try compiling gcc3.4.3 for powerpc on a i386 machine with the following config files, but got the error below. I did google for long time but most result are not saying compiling the compiler, they get the error when compiling other programs and the methods are not suitable for me, so please help. Thx. eval `cat powerpc-power5.dat gcc-3.4.3-glibc-2.3.4.dat` sh all.sh --notest content of powerpc-power5.dat ################## TARGET=powerpc-unknown-linux-gnu TARGET_CFLAGS="-O -mcpu=powerpc" GCC_EXTRA_CONFIG="--with-cpu=powerpc --enable-cxx-flags=-mcpu=powerpc" GLIBC_EXTRA_CONFIG="--without-fp" KERNELCONFIG=`pwd`/powerpc64.config ################## content of gcc-3.4.3-glibc-2.3.4.dat ################## BINUTILS_DIR=binutils-2.15 GCC_DIR=gcc-3.4.3 GLIBC_DIR=glibc-2.3.4 LINUX_DIR=linux-2.6.8 GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.4 ################## here are the error message ################## + make CFLAGS=-DBOOTSTRAP_GCC sysdeps/gnu/errlist.c make -r PARALLELMFLAGS="" CVSOPTS="" -C /usr/local/src/crosstool-0.38/build/powerpc-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.4/glibc-2.3.4 objdir=`pwd` sysdeps/gnu/errlist.c make[1]: Entering directory `/usr/local/src/crosstool-0.38/build/powerpc-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.4/glibc-2.3.4' running /bin/sh /usr/local/src/crosstool-0.38/build/powerpc-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.4/glibc-2.3.4/configure --prefix=/usr --build=i686-pc-linux-gnu --host=powerpc-unknown-linux-gnu --without-cvs --disable-sanity-checks --with-headers=/opt/gcc/ppc64/gcc-3.4.3-glibc-2.3.4/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include --enable-hacker-mode CC=gcc build_alias=i686-pc-linux-gnu host_alias=powerpc-unknown-linux-gnu --no-create --no-recursion checking build system type... i686-pc-linux-gnu checking host system type... powerpc-unknown-linux-gnu checking sysdep dirs... sysdeps/powerpc/powerpc32/elf sysdeps/powerpc/elf sysdeps/unix/sysv/linux/powerpc/powerpc32 sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/powerpc sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc32/fpu sysdeps/powerpc/powerpc32 sysdeps/wordsize-32 sysdeps/powerpc/soft-fp sysdeps/powerpc/fpu sysdeps/powerpc sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for powerpc-unknown-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. make[1]: *** [/usr/local/src/crosstool-0.38/build/powerpc-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.4/build-glibc-headers/config.status] Error 1 make[1]: Leaving directory `/usr/local/src/crosstool-0.38/build/powerpc-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.4/glibc-2.3.4' make: *** [sysdeps/gnu/errlist.c] Error 2 ##################### and here is the content of config.log under ##################### configure:2637: $? = 0 configure:2639: gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53) configure:2642: $? = 0 configure:2644: gcc -V </dev/null >&5 gcc: argument to `-V' is missing configure:2647: $? = 1 configure:2651: checking for suffix of object files configure:2672: gcc -c -std=gnu99 -DBOOTSTRAP_GCC -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mnew-mnemonics conftest.c >&5 cc1: invalid option `new-mnemonics' configure:2675: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "GNU C Library" | #define PACKAGE_TARNAME "c-library" | #define PACKAGE_VERSION "(see version.h)" | #define PACKAGE_STRING "GNU C Library (see version.h)" | #define PACKAGE_BUGREPORT "glibc" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2689: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. ##################### Regards, Eddie ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |