pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47460: (NetBSD 5.2) lang/gcc47 gets undefined reference to `__sync_bool_compare_and_swap_4'

>Number:         47460
>Category:       pkg
>Synopsis:       lang/gcc47 gets undefined reference to 
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 17 10:30:00 +0000 2013
>Originator:     Makoto Fujiwara
>Release:        NetBSD 5.2
KINU Corporation
System: NetBSD 5.2 NetBSD 5.2 (XEN3PAE_DOMU) #0: Wed Nov 28 
09:34:42 UTC 2012
Architecture: i386
Machine: i386
./.libs/ undefined reference to `__sync_bool_compare_and_swap_4'

The log around of the error was:
libtool: link:
-B/usr/pkg/gcc47/i386--netbsdelf/lib/ -isystem
/usr/pkg/gcc47/i386--netbsdelf/include -isystem
/usr/pkg/gcc47/i386--netbsdelf/sys-include -ffloat-store
-fomit-frame-pointer -Usun -g -O2 -Wl,-R/usr/pkg/lib
-o .libs/jv-convert --main=gnu.gcj.convert.Convert
-lpthread -lrt -lz -Wl,-rpath -Wl,/usr/pkg/gcc47/lib

./.libs/ undefined reference to `__sync_bool_compare_and_swap_4'
collect2: error: ld returned 1 exit status
gmake[3]: *** [jv-convert] Error 1
gmake[3]: Leaving directory 
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build'
gmake: *** [all] Error 2
*** Error code 2

make: stopped in /export/CHROOT/usr/pkgsrc/lang/gcc47
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package 
*** Error code 1

make: stopped in /export/CHROOT/usr/pkgsrc/lang/gcc47
        On NetBSD/i386 5.2
        (cd pkgsrc/lang/gcc47; make package) 
        This is just a work around, probably:
        (Is it 5.2 specific or not, I didn't checked yet, sorry)

Index: Makefile
RCS file: /e/cvsync/cvsync/pkgsrc/lang/gcc47/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile    1 Dec 2012 02:29:32 -0000       1.12
+++ Makefile    17 Jan 2013 00:36:53 -0000
@@ -68,6 +68,9 @@
 .if ${OPSYS} == "DragonFly"
 CONFIGURE_ARGS+=       --disable-bootstrap
+.if !empty(LOWER_ARCH:Mi386)
+CFLAGS += -march=i486
 .include ""


Home | Main Index | Thread Index | Old Index