[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems cross-compiling gnumach

From: Pablo Baena <pbaena@tercermundo.com.ar>
Subject: Problems cross-compiling gnumach
Date: Sat, 7 Aug 1999 21:24:16 +0000

> i386-gnu-gcc -O -o clib-routines.o -r -nostartfiles -nostdlib -static -x c /dev/
> null \
>       -Wl,-u,memcpy -Wl,-u,memset -Wl,-u,bcopy -Wl,-u,bzero -Wl,-u,htonl -Wl,-u,
> htons -Wl,-u,ntohl -Wl,-u,ntohs \
>             -L`dirname \`i386-gnu-gcc -O --print-file-name=libc.a\`` -lc
>             ld: cannot open -lc: No such file or directory
>             make: *** [clib-routines.o] Error 1

  This says that your cross-compiler cannot find libc.a. To
cross-compile GNU Mach, you have to install libc.a into somewhere. In
my environment, my cross-compiler just looks at my GNU/Hurd partition:

$ mount
/dev/sda1 on /gnu type ext2fs (rw)
$ ls -l /usr/local/i586-gnu/lib
lrwxrwxrwx   1 root	root	8 Sep  3  1998 /usr/local/i586-gnu/lib
-> /gnu/lib/
$ ls /gnu/lib/libc.a

  I haven't used the debian packages for cross-compiler, but nearly
the same way should be possible.
OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>           ^o-o^
http://duff.kuicr.kyoto-u.ac.jp/~okuji (in English)     m /

Reply to: