Subject: kern.ldscript error
To: NetBSD-current <current-users@NetBSD.org>
From: oliver gould <ogould@cs.stevens.edu>
List: current-users
Date: 06/05/2006 22:06:47
--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello.

I'm having trouble compiling a kernel with -current, with the following
error during the linking stage:

  =3D=3D=3D> build.sh command: ./build.sh -u -U -O obj/ -T
  obj/tooldir.NetBSD-3.99.17-i386/ kernel=3DENCANTA
  =3D=3D=3D> build.sh started: Mon Jun  5 21:57:33 EDT 2006
  =3D=3D=3D> MACHINE:          i386
  =3D=3D=3D> MACHINE_ARCH:     i386
  =3D=3D=3D> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-3.99.17-i386
  =3D=3D=3D> DESTDIR path:     /usr/src/obj/destdir.i386
  =3D=3D=3D> RELEASEDIR path:  /usr/src/obj/releasedir
  =3D=3D=3D> makewrapper:
  /usr/src/obj/tooldir.NetBSD-3.99.17-i386/bin/nbmake-i386
  =3D=3D=3D> Updated /usr/src/obj/tooldir.NetBSD-3.99.17-i386/bin/nbmake-i3=
86
  =3D=3D=3D> Building kernel without building new tools
  =3D=3D=3D> Building kernel:  ENCANTA
  =3D=3D=3D> Build directory:  /usr/src/obj/sys/arch/i386/compile/ENCANTA
  [...]
  #      link  ENCANTA/netbsd
  /usr/src/obj/tooldir.NetBSD-3.99.17-i386/bin/i386--netbsdelf-ld -T
  /usr/src/sys/arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X
  -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
  /usr/src/sys/arch/i386/conf/kern.ldscript:45 non constant expression
  for load base

Note:
  $ wc -l /usr/src/sys/arch/i386/conf/kern.ldscript
  	44 /usr/src/sys/arch/i386/conf/kern.ldscript

Has anyone else seen this or know what exactly is going on?

Thanks.

--=20
  .oliver

--rwEMma7ioTxnRzrJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)

iD8DBQFEhOM3NtBooygWxWcRAoZTAKDoYPU8U4HPicFmji/txhXuyXvtGgCgrmbJ
WFe5owAHWHwjrhXqOTXuDEo=
=4efS
-----END PGP SIGNATURE-----

--rwEMma7ioTxnRzrJ--