From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neal Becker To: egcs@cygnus.com Subject: egcs1.0.2 + libg++ cross build failure Date: Tue, 31 Mar 1998 05:29:00 -0000 Message-id: X-SW-Source: 1998-04/msg00013.html I am trying to build egcs-1.0.2 + libg++-2.8.1 patch as cross with host i686-pc-linux-gnu target m68k-unknown-coff. I am building with newlib-1.8.0. Problem 1) Headers aren't found. Yes I've read the FAQ. Headers can't possibly be found, because you have to install the compiler first, then you can install newlib. My solution: I added --with-headers=/newlib/libc/include. *Luckily* the needed headers are all in this directory. Problem 2) Configuring in m68k-unknown-coff/librx creating cache ./config.cache checking for gcc... /usr/local/src/m68k/egcs-1.0.2/gcc/xgcc -B/usr/local/src/m68k/egcs-1.0.2/gcc/ checking whether the C compiler (/usr/local/src/m68k/egcs-1.0.2/gcc/xgcc -B/usr/local/src/m68k/egcs-1.0.2/gcc/ -g -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. My solution: Go ahead and make -k install LANGUAGES="c c++". Then build and install newlib. Then go back and build in egcs+libg++ again (now that crt0 is installed this last error will hopefully go away).