Subject: Re: problem building netbsd-3 distribution
To: =?iso-8859-1?Q?C=E9sar_Catri=E1n_C=2E?= <ccatrian@eml.cc>
From: Rui Paulo <rpaulo@NetBSD.org>
List: netbsd-help
Date: 08/19/2005 14:38:42
--hHWLQfXTYDoKhP50
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2005.08.19 09:29:09 +0000, C=E9sar Catri=E1n C. wrote:
| On Thu, 18 Aug 2005 09:31:15 -0400
| "C=E9sar Catri=E1n C." <ccatrian@eml.cc> wrote:
|=20
| > I had this problem trying to build netbsd-3 with sources of the past 12=
 hours:
| >=20
| >=20
| > $ ./build.sh -U -u -x distribution
| >=20
| > #      link  ld.elf_so
| > /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/bin/i386--netbsdelf-gcc -s=
hared -symbolic -nostartfiles -Wl,-Wl,-rpath-link,/usr/pkg/lib -Wl,-non_sha=
red -Wl,-e -Wl,.rtld_start -o ld.elf_so rtld_start.o mdreloc.o rtld.o reloc=
.o symbol.o malloc.o xmalloc.o xprintf.o debug.o map_object.o load.o search=
.o headers.o paths.o -L/home/cetrox/src/src/lib/libc/obj -L/home/cetrox/src=
/src/destdir.i386/usr/lib -lc_pic
| > /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/lib/gcc-lib/i386--netbsdel=
f/3.3.3/../../../../i386--netbsdelf/bin/ld: unrecognized option '-Wl'
| > /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/lib/gcc-lib/i386--netbsdel=
f/3.3.3/../../../../i386--netbsdelf/bin/ld: use the --help option for usage=
 information
| > collect2: ld returned 1 exit status
| >=20
| > *** Failed target:  ld.elf_so
| > *** Failed command: /home/cetrox/src/src/tooldir.NetBSD-2.0-i386/bin/i3=
86--netbsdelf-gcc -shared -symbolic -nostartfiles -Wl,-Wl,-rpath-link,/usr/=
pkg/lib -Wl,-non_shared -Wl,-e -Wl,.rtld_start -o ld.elf_so rtld_start.o=20
|=20
| I had a setting in my /etc/mk.conf, LDFLAGS+=3D -Wl,-rpath-link,/usr/pkg/=
lib
| My build seems to suck the environment from /etc/mk.conf, isn't?

Yes, that's normal behaviour.

		-- Rui Paulo

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

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

iD8DBQFDBeDiZPqyxs9FH4QRAv2GAKCfaerdZfVUn0PAX8Iw3MFwP9ywwwCeN/eF
9iYcKE5cE9q9osuwyJ2Oh8w=
=mstq
-----END PGP SIGNATURE-----

--hHWLQfXTYDoKhP50--