This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem building crosscompiler target=i486 host,build=ppc
- To: law at cygnus dot com, winmute <winmute-mailinglist-egcs-bugs at kotnet dot org>
- Subject: Re: problem building crosscompiler target=i486 host,build=ppc
- From: winmute <winmute-mailinglist-egcs-bugs at kotnet dot org>
- Date: Sun, 6 Sep 1998 13:23:11 +0200
- Cc: egcs-bugs at cygnus dot com
- References: <19980905214557.A19796@kotnet.org> <24560.905062499@hurl.cygnus.com>
On Sun, Sep 06, 1998 at 12:14:59AM -0600, Jeffrey A Law wrote:
> In message <19980905214557.A19796@kotnet.org>you write:
> > checking whether the C compiler (/usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egc
> > s-1.1b/gcc/ -g -O2 ) works... no
> > configure: error: installation or configuration problem: C compiler cannot
> > create executables.
> Find the <target-alias>/libiberty/config.log file and see what
> messages are in it. That should give you a clue about what went
> wrong.
See below the results of /usr/src/egcs-1.1b/i486-pc-linux-gnu/libiberty/config.log
My crosscompiler gcc version egcs-2.90.29 980515 (egcs-1.0.3 release), I
built the same way IIRC, can't compile this conftest.c either, because I don't
have a crt1.o there.
So indeed, the egcspackage compiled now can't crosscompile a normal C program
that needs the c-library or so but it can compile the kernel I guess, and the
old egcspackage I compiled can't do that either but surely can compile a kernel.
The old one just didn't complain at compilation time.
1. Why can't I compile my crosscompiler for i486 to build my kernel any more as
I used to be able to? Is it a bug now or is it a bug then that the compile
of the crosscompiler succeeded then.
2. How do I get this compile to a succesfull end. I would rather think not to
need binary code from my i486, those are part of glibc, what if I first want
to build my full compiler and then maybe think about crosscompiling glibc ?
Does the build of my crosscompiler now really depend on the i486-glibc ?
Okay, this gives me :
configure:1598: /usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/ -o conftest -g -O2 conftest.c 1>&5
/usr/local/i486-pc-linux-gnu/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1594 "configure"
#include "confdefs.h"
main(){return(0);}
when I copy an crt1.o from my i486, it complains next about the following
configure:1598: /usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/ -o conftest -g -O2 conftest.c 1>&5
/usr/local/i486-pc-linux-gnu/bin/ld: cannot open crti.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1594 "configure"
#include "confdefs.h"
main(){return(0);}
when I copy an crti.o from my i486, it complains next about the following
configure:1598: /usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/ -o conftest -g -O2 conftest.c 1>&5
/usr/local/i486-pc-linux-gnu/bin/ld: cannot open -lc: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1594 "configure"
#include "confdefs.h"
main(){return(0);}