linux-mips-fnet
[Top] [All Lists]

Re: "opcode not supp'd" while crosscompiling kernel

To: linux-mips@fnet.fr
Subject: Re: "opcode not supp'd" while crosscompiling kernel
From: Systemkennung Linux <linux@informatik.uni-koblenz.de>
Date: Sun, 6 Jul 1997 00:22:53 +0200 (MET DST)
In-reply-to: <Pine.LNX.3.91.970705234526.26891A-100000@web.aec.at> from "Oliver Frommel" at Jul 5, 97 11:50:12 pm
> now i am having some troubles compiling your latest glibc-2.0.4-970701 .. 
> 
> after problems concerning linux kernel version which i fixed by fooling 
> the configure script i get the following errors/warnings followed by a 
> segfault:

This file should be built by the native compiler.  You somehow told
configure to use mips-linux-gcc for $CC.  But configure also defaults
$BUILD_CC to $(CC), so you also need to pass name of the native compiler
in the BUILD_CC variable when configuring.  Something like

CC=mips-linux-gcc BUILD_CC=gcc ../configure --prefix=/usr --enable-shared ...

> mips-linux-gcc -fPIC -I$cwd/. -I$cwd/libio <some stuff del'd> 
> $cwd/sysdeps/posix/mk-stdiolim.c -o mk-stdiolim
> /usr/local/mips-linux/bin/ld: /var/tmp/cca005j01.o: needs all files compiled 
> with -fPIC
> /usr/local/mips-linux/bin/ld: __main.o: needs all files compiled with -fPIC
> /usr/local/mips-linux/bin/ld: _ctors.o: needs all files compiled with -fPIC
> /usr/local/mips-linux/bin/ld: _ctors.o: uses different e_flags (0x0) fields 
> than previous modules (0x1)
> /usr/local/mips-linux/bin/ld: _exit.o: needs all files compiled with -fPIC
> /usr/local/mips-linux/bin/ld: _exit.o: uses different e_flags (0x0) fields 
> than previous modules (0x1)
> sysdeps/../mk-stdiolim > sysdeps/../stdio_lim.h-t
> make: *** [sysdeps/../stdio_lim.h] Segmentation fault (core dumped)

  Ralf

<Prev in Thread] Current Thread [Next in Thread>