Subject: Re: gcc3/mozilla pthread link error under current
To: Frederick Bruckman <fredb@immanent.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 06/24/2003 09:47:44
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-1870837415-1056444464=:198
Content-Type: TEXT/PLAIN; charset=US-ASCII
I'm trying a gcc3 on 1.6U with a very slight variation on the
--host=i386--netbsdelf2.0 patch in PR pkg/21848 (attached),
and am not having a lot of luck. For example graphics/png
fails to build pngtest:
(extract from scripts/makefile.std: '-v' added to give more output)
pngtest: pngtest.o libpng.la
${LIBTOOL} --mode=link $(REALCC) -o pngtest -v $(CFLAGS) pngtest.o ${LDFLAGS} libpng.la -lz -lm
(make log)
# make
===> Checking for vulnerabilities in png-1.2.5nb2
===> Building for png-1.2.5nb2
[...some happy building of object code, then...]
/var/obj/pkg/graphics/png/work/.buildlink/bin/libtool --mode=link /usr/pkg/gcc-3.3/bin/gcc -o pngtest -v -O2 -march=pentium3 -O3 -ffast-math -fomit-frame-pointer -pipe -I/usr/pkg/include pngtest.o -Wl,-R/usr/pkg/lib -L/usr/pkg/lib libpng.la -lz -lm
/usr/pkg/gcc-3.3/bin/gcc -o .libs/pngtest -v -O2 -march=pentium3 -O3 -ffast-math -fomit-frame-pointer -pipe -I/var/obj/pkg/graphics/png/work/.buildlink/include pngtest.o -Wl,-R/usr/pkg/lib -L/var/obj/pkg/graphics/png/work/.buildlink/lib ./.libs/libpng.so /usr/lib/libz.so -lm -Wl,--rpath -Wl,/usr/pkg/lib
Reading specs from /usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf2.0/3.3/specs
Configured with: ./configure --infodir=/usr/pkg/info --prefix=/usr/pkg/gcc-3.3 --host=i386--netbsdelf2.0 --enable-shared
Thread model: posix
gcc version 3.3
/usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf2.0/3.3/collect2 -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so -o .libs/pngtest /usr/lib/crt0.o /usr/lib/crti.o /usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf2.0/3.3/crtbegin.o -L/var/obj/pkg/graphics/png/work/.buildlink/lib -L/usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf2.0/3.3 -L/usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf2.0/3.3/../../.. -R/usr/pkg/gcc-3.3/lib pngtest.o -R/usr/pkg/lib ./.libs/libpng.so /usr/lib/libz.so -lm --rpath /usr/pkg/lib -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf2.0/3.3/crtend.o /usr/lib/crtn.o
/usr/bin/ld: cannot find -lgcc_eh
Of course the commands all work on the command line.
This is with gcc3/buildlink2.mk included in the Makefile - the
failure mode is the same without.
.if defined(USE_GCC3)
.include "../../lang/gcc3/buildlink2.mk"
.endif
--
David/absolute -- www.netbsd.org: No hype required --
--0-1870837415-1056444464=:198
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.53.0306240947440.198@forsaken.i.purplei.com>
Content-Description:
Content-Disposition: attachment; filename=diff
SW5kZXg6IE1ha2VmaWxlDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg
ZmlsZTogL2N2c3Jvb3QvcGtnc3JjL2xhbmcvZ2NjMy9NYWtlZmlsZSx2DQpy
ZXRyaWV2aW5nIHJldmlzaW9uIDEuMjINCmRpZmYgLXUgLXIxLjIyIE1ha2Vm
aWxlDQotLS0gTWFrZWZpbGUJMjAwMy8wNi8xNyAwNjoxODoyOAkxLjIyDQor
KysgTWFrZWZpbGUJMjAwMy8wNi8yNCAwODozODoxMw0KQEAgLTIsNyArMiw3
IEBADQogIw0KIA0KIERJU1ROQU1FP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