Subject: build failure making miniroot
To: None <current-users@netbsd.org>
From: Chris Jones <chris@cjones.org>
List: current-users
Date: 02/01/2002 14:06:32
--ed/6oDxOLijJh8b0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Trying to cross-build for hpcmips hosting on i386, it fails trying to
link the crunched binary:

/foo/tools/bin/mipsel--netbsd-gcc  -static -o instbin -nostdlib  /foo/hpcbu=
ild/dest/usr/lib/crt0.o /foo/hpcbuild/dest/usr/lib/crtbegin.o instbin.o sys=
inst.cro gzip.cro chroot.cro chflags.cro stty.cro rcp.cro mknod.cro init_s.=
cro vi.cro rm.cro ls.cro tset.cro disklabel.cro shutdown.cro x_route.cro ne=
wfs.cro cp.cro tip.cro slattach.cro mount_ffs.cro mount_cd9660.cro sleep.cr=
o mt.cro kill.cro mount_kernfs.cro mount_nfs.cro mv.cro cat.cro netstat.cro=
 mount_ext2fs.cro sort.cro df.cro x_ping.cro x_ifconfig.cro expr.cro rsh.cr=
o mount_msdos.cro fsck_ext2fs.cro sed.cro chmod.cro fdisk.cro ftp.cro fsck_=
ffs.cro sync.cro pax.cro ln.cro rcmd.cro chown.cro mount.cro sh.cro mkdir.c=
ro hostname.cro x_dd.cro date.cro csh.cro umount.cro reboot.cro test.cro pw=
d.cro x_ed.cro  -lrmt -ledit -lutil -lcurses -ltermcap -lbz2 -lcrypt -lintl=
 -ll -lm -lkvm -L/foo/hpcbuild/dest/usr/lib  -lgcc -lc -lgcc /foo/hpcbuild/=
dest/usr/lib/crtend.o
/foo/tools/mipsel--netbsd/bin/ld: sysinst.cro: CALL16 reloc at 0x1c not aga=
inst global symbol
sysinst.cro: could not read symbols: Bad value
collect2: ld returned 1 exit status

Any suggestions?

Chris

--=20
---------------------------------------------------- chris@cjones.org
Chris Jones                                          Mad scientist at large
  www.netbsd.org www.postgresql.org www.schemers.org www.python.org

--ed/6oDxOLijJh8b0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjxbA1gACgkQDPY2T8RzaD+NFwCfVAyjTxZCsZB+DC1z4zrzdQEA
GlwAnicODU5DZcpabo9A3bjUmkOgwwt5
=XC6+
-----END PGP SIGNATURE-----

--ed/6oDxOLijJh8b0--