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

Re: problems crosscompiling glibc-2.0.4-970701

To: linux-mips@fnet.fr
Subject: Re: problems crosscompiling glibc-2.0.4-970701
From: Systemkennung Linux <linux@informatik.uni-koblenz.de>
Date: Mon, 21 Jul 1997 23:44:31 +0200 (MET DST)
In-reply-to: <Pine.LNX.3.91.970718190013.8286A-100000@web.aec.at> from "Oliver Frommel" at Jul 21, 97 10:25:25 am
> i am still having some problems crosscompiling said glibc on an irix 6.2
> system. after getting through configure (somehow) and copying "gperf" from
> another machine compilation fails with:
> 
> make  -C io subdir_lib
> make[1]: Entering directory 
> `/usr/people/oliver/linux-dir/glibc-2.0.4-970701/io'
> (echo '#include <sysdep.h>'; \
>  echo 'PSEUDO (__flock, flock, 2)'; \
>  echo ' ret'; \
>  echo 'PSEUDO_END(__flock)'; \
>  echo 'weak_alias (__flock, flock)'; \
> ) | mips-linux-gcc -c -I. -I.. -I../libio <lots if includes deleted>
> -D_LIBC_REENTRANT -include ../libc-symbols.h     -DASSEMBLER -O2 -x 
> assembler-with-cpp -o flock.o -
> : Assembler messages:
> :2: Error: absolute expression required `li'
> make[1]: *** [flock.o] Error 1
> 
> what's going wrong this time ? :)

You probably missconfigured the thing.  This is the command to use to
configure libc (assuming you use tcsh):

( setenv CC "mips-linux-gcc -pipe" && setenv BUILD_CC gcc && ../configure 
--prefix=/usr --enable-shared --enable-profile=no --enable-omitfp 
--enable-add-ons=crypt,linuxthreads,localedata --build=mips-mips-irix6.2 
mips-linux )

... or in UNIX everything is a oneliner ;-)

Be warned: don't just type "make install", when the compilation is done.
You would overinstall parts of IRIX with GNU libc which is pretty
unhealthy for your IRIX system ...  You should use something like:

  make install_root=<somewhere> install

where <somewhere> stands for the root of the Linux filesystem.

You will also need GCC-2.7.2-6 to build libc successfull, but this wasn't
your problem.  Oh, there are libc binaries for download :-)

> (btw: is there any good documentation about (cross)compiling glibc ?)

No, not yet.

  Ralf

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