Subject: Re: Building problems on Solaris
To: None <port-sparc@netbsd.org>
From: Valeriy E. Ushakov <uwe@stderr.spb.ru>
List: port-sparc
Date: 05/30/2007 03:27:47
On Tue, May 29, 2007 at 21:25:19 +0200, Lukasz Klepacki wrote:
> i have a problem with building NetBSD/sparc kernel on Solaris, here is
> the output of build.sh:
>
> # link GENERIC/netbsd
> /export/netbsd-3.1/tools-sparc/bin/sparc--netbsdelf-ld -n -T
> /export/netbsd-3.1/sys/arch/sparc/conf/kern.ldscript -Ttext F0004000
> -e start -X -S -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
> locore.o(.text+0x5adc): In function `sparc_v8_muldiv':
> : undefined reference to `.rem'
> locore.o(.text+0x5ae0): In function `sparc_v8_muldiv':
> : undefined reference to `.rem'
> locore.o(.text+0x5aec): In function `sparc_v8_muldiv':
> : undefined reference to `.rem'
> locore.o(.text+0x5af0): In function `sparc_v8_muldiv':
> : undefined reference to `.rem'
> ip_icmp.o(.text+0x121c): In function `iptime':
> : undefined reference to `.rem'
> ip_id.o(.text+0x3c): more undefined references to `.rem' follow
What do you see (commands belo have sparc--netbsdelf-nm as a shorthand
for your /export/netbsd-3.1/tools-sparc/bin/sparc--netbsdelf-nm) from:
$ sparc--netbsdelf-nm .../GENERIC/lib/kern/rem.o
$ sparc--netbsdelf-nm .../GENERIC/lib/kern/libkern.o | fgrep .rem
SY, Uwe
--
uwe@stderr.spb.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen