This is the mail archive of the crossgcc@sources.redhat.com 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] |
Jan I had a similar problem with my most recent buld attempt. I was previously using egcs 1.2 and have been trying to rebuild the m68k-coff over the past 3 years - unsuccessfully. Using GCC 3.0 I followed the same faq and built binutils and the core gcc successfully. I had trouble building newlib (see notes below) but eventually got through it. After getting the same error as you with the full gcc build I went and drank some good wine and started the GCC build from scratch in a new directory tree later on. The solution was either the wine or a new build directory. I recommend trying both! i.e. initial gcc build to use for building newlib was /build/build-gcc whereas the final build was done in /build/build-gcc-full. The other problem I had was that m68k-coff-gcc built kept crashing for certain library files in newlib, fortran libraries and others. I worked around this problem by performing a "make -i all" and then manually compiling the ones that failed without the -O2. Hence optimisation was causing a problem. Excerpts of errors below. m68k-coff-gcc -B/build/build-newlib/m68k-coff/newlib/ -isystem /build/build-newlib/m68k-coff/newlib/targ-include -isystem /build/newlib-1.9.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.9 .0\" -I. -I../../../../../newlib-1.9.0/newlib/libc/stdlib -O2 -DMISSING_SY SCALL_NAMES -I../../targ-include -I../../../../../newlib-1.9.0/newlib/libc/. ./libc/include -fno-builtin -g -O2 -c ../../../../../newlib-1.9.0/newlib/libc/stdlib/dtoa.c ../../../../../newlib-1.9.0/newlib/libc/stdlib/dtoa.c: In function `_dtoa_r': ../../../../../newlib-1.9.0/newlib/libc/stdlib/dtoa.c:853: Internal compiler error in update_equiv_regs, at local-alloc.c:1097 ----- Original Message ----- From: "Vermeulen Jan" <Jan.Vermeulen@siemens.atea.be> To: "'CrossGCC'" <crossgcc@sources.redhat.com> Sent: Tuesday, August 28, 2001 9:48 PM Subject: Problems with GCC 3.0.1 for m68k-coff > Hi, > > Hoping that the m68k-coff build would be fixed in 3.0.1, i downloaded it and > installed it as the native compiler on my linuxbox, together with binutils > 2.11.2 & newlib-1.9.0 > > Then I started making the cross compiler for the m68k-coff, following Bill's > pre-alpha-crossgcc faq. > (the shell script) > > binutils: OK > core-gcc: OK > newlib : OK > > full gcc (c, c++) : error. > > Configuring in m68k-coff/libiberty > loading cache ../config.cache > checking host system type... m68k-unknown-coff > checking build system type... i686-pc-linux-gnu > checking for m68k-coff-ar... (cached) m68k-coff-ar > checking for m68k-coff-ranlib... (cached) m68k-coff-ranlib > checking for gcc... (cached) /home/jan/build/gcc/xgcc -B/home/jan/build/gcc/ > -B/usr/local/m68k-coff/bin/ -B/usr/local/m68k-coff/lib/ -isystem > /usr/local/m68k-coff/include > checking whether we are using GNU C... (cached) yes > checking whether /home/jan/build/gcc/xgcc -B/home/jan/build/gcc/ > -B/usr/local/m68k-coff/bin/ -B/usr/local/m68k-coff/lib/ -isystem > /usr/local/m68k-coff/include accepts -g... (cached) yes > checking for POSIXized ISC... no > checking for working const... yes > checking for inline... inline > checking for a BSD compatible install... (cached) /usr/bin/install -c > checking how to run the C preprocessor... (cached) /home/jan/build/gcc/xgcc > -B/home/jan/build/gcc/ -B/usr/local/m68k-coff/bin/ > -B/usr/local/m68k-coff/lib/ -isystem /usr/local/m68k-coff/include -E > checking for sys/file.h... yes > checking for sys/param.h... yes > checking for limits.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for unistd.h... yes > checking for strings.h... no > checking for sys/time.h... yes > checking for time.h... yes > checking for sys/resource.h... yes > checking for sys/stat.h... yes > checking for sys/mman.h... no > checking for fcntl.h... yes > checking for sys/wait.h that is POSIX.1 compatible... yes > checking whether time.h and sys/time.h may both be included... yes > checking whether errno must be declared... no > checking whether the C compiler (/home/jan/build/gcc/xgcc > -B/home/jan/build/gcc/ -B/usr/local/m68k-coff/bin/ > -B/usr/local/m68k-coff/lib/ -isystem /usr/local/m68k-coff/include -g -O2 ) > works... no > configure: error: installation or configuration problem: C compiler cannot > create executables. > make: *** [configure-target-libiberty] Error 1 > > If anyone can help, please feel free to do so. I might have missed > something. > Or else... i'll wait for GCC 3.1 ;-) > > Grz, > Jan > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |