Subject: Re: build problem
To: current-users@netbsd.org, Luke Mewburn <lukem@NetBSD.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: current-users
Date: 04/14/2005 08:46:31
--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 14, 2005 at 12:37:24PM +0200, Jukka Salmi wrote:
> Luke Mewburn --> current-users (2005-04-14 14:23:18 +1000):
> > I think that the assignment of LINKS in libl/Makefile should be
> > conditional on MKSTATICLIB.
>=20
> I've done this, but now ld.elf_so complains about the missing libc.a:

Yes, it will. ld.elf_so is the program that makes shared libraries work.=20
Thus it has to be compiled without using them.

> #   compile  ld.elf_so/paths.o
> /opt/tools/i386/bin/i386--netbsdelf-gcc -O3 -fomit-frame-pointer  -Wall -=
Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -=
Wno-traditional -Wno-uninitialized  -Werror   -fpic -DELFSIZE=3D32 -DLIBDIR=
=3D\"/usr/lib\" -D_PATH_RTLD=3D\"/libexec/ld.elf_so\" -I/usr/src/libexec/ld=
.elf_so -DRTLD_LOADER -D_RTLD_SOURCE  -nostdinc -isystem /opt/dst/i386.embe=
d/usr/include  -c    /usr/src/libexec/ld.elf_so/paths.c
> nbmake: don't know how to make /opt/dst/i386.embed/usr/lib/libc.a. Stop
>=20
> nbmake: stopped in /usr/src/libexec/ld.elf_so
>=20
>=20
> Hmm, not sure what to do now...

What exactly are you trying to do?

I strongly suggest forgetting about all these conditional compile=20
directives. They are not an officially-supported way to compile (last I=20
heard); folks will fix issues you see, but they will not receive the main=
=20
debugging emphasis that other compile issues will.

I note you have "embed" in one of the path names, and so I suspect you may=
=20
be trying to generate a release for an embedded system. I think you will=20
be much more successful to just build a release into a destdir, then copy=
=20
only the files you want from there into a hierarcy for your procuct. The=20
latter method will permit you file-by-file control over exactly what you=20
get. Build options will never be the precise, and you'll probably keep=20
running into ussues like the ones you're seeing.

Take care,

Bill

--x+6KMIRAuhnl3hBn
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFCXpBXWz+3JHUci9cRAiRiAJ4/iM0WLf7TVnKfGaqEBtOMoke6yQCePOpU
BCvugtDO+Xx96qULXnfYCgY=
=dlj5
-----END PGP SIGNATURE-----

--x+6KMIRAuhnl3hBn--