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 
>`__sync_bool_compare_and_swap_4'
>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
>Organization:
KINU Corporation
>Environment:
        
        
System: NetBSD pinapa.z.ki.nu 5.2 NetBSD 5.2 (XEN3PAE_DOMU) #0: Wed Nov 28 
09:34:42 UTC 2012 
builds%b8.netbsd.org@localhost:/home/builds/ab/netbsd-5-2-RELEASE/i386/201211280503Z-obj/home/builds/ab/netbsd-5-2-RELEASE/src/sys/arch/i386/compile/XEN3PAE_DOMU
 i386
Architecture: i386
Machine: i386
>Description:
Getting
./.libs/libgcj.so: undefined reference to `__sync_bool_compare_and_swap_4'

The log around of the error was:
libtool: link:
/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/./gcc/gcj
-B/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/i386--netbsdelf/libjava/
-B/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/./gcc/
-B/usr/pkg/gcc47/i386--netbsdelf/bin/
-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
-shared-libgcc
-L/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/i386--netbsdelf/libjava/.libs
-L/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/i386--netbsdelf/libjava 
./.libs/libgcj.so
-lpthread -lrt -lz -Wl,-rpath -Wl,/usr/pkg/gcc47/lib

./.libs/libgcj.so: 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 
`/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/i386--netbsdelf/libjava'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/export/CHROOT/usr/pkgsrc/lang/gcc47/work/build/i386--netbsdelf/libjava'
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

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

Stop.
make: stopped in /export/CHROOT/usr/pkgsrc/lang/gcc47
>How-To-Repeat:
        On NetBSD/i386 5.2
        (cd pkgsrc/lang/gcc47; make package) 
>Fix:
        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
 .endif
+.if !empty(LOWER_ARCH:Mi386)
+CFLAGS += -march=i486
+.endif
 
 .include "options.mk"
 

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index