Re: Cross compiling doesn't work anymore (was: Re: GNU libc snapshots work again on the Hurd)
On Sat, Dec 19, 1998 at 07:58:33PM +0100, Mark Kettenis wrote:
>
> The change to the specs file is only necessary to compile statically
> linked programs (i.e. the Hurd bootstrap filesystem). Your specs file
> looks a bit short to me, but I think adding
>
> *startfile:
> %{!shared: %{!static: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} %{static:crt0.o%s}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
>
> should work (I hope those long lines survive the transmission). But
> be careful and remember to backup your old specs file!
If I do this I get, compiling the primitive program "main(){}":
flora:/tmp# i386-gnu-gcc -static def.c
/usr/i386-gnu/lib/crt0.o(.text+0x1): undefined reference to `_hurd_stack_setup'
/usr/i386-gnu/lib/crt0.o(.text+0x21): undefined reference to `main'
/usr/i386-gnu/lib/crt0.o(.text+0x26): undefined reference to `__libc_start_main'
flora:/tmp# i386-gnu-gcc def.c
/usr/i386-gnu/lib/crt1.o(.text+0x18): undefined reference to `main'
/usr/i386-gnu/lib/crt1.o(.text+0x1d): undefined reference to `__libc_start_main'
Gordon, we need some serious changes to our cheap-cross compilation
environment. It doesn't seem to work anymore.
Thanks,
Marcus
--
"Rhubarb is no Egyptian god." Debian GNU/Linux finger brinkmd@
Marcus Brinkmann http://www.debian.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09
Reply to: