> 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: Entering directory
> (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: *** [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
... 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.