NetBSD Problem Report #50762

From oster@cs.usask.ca  Wed Feb  3 14:13:24 2016
Return-Path: <oster@cs.usask.ca>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B06D87ABE7
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  3 Feb 2016 14:13:24 +0000 (UTC)
Message-Id: <20160203141232.42D5D87D3C@mickey.usask.ca>
Date: Wed,  3 Feb 2016 08:12:32 -0600 (CST)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: lang/gcc3-c fails to build after binutils update
X-Send-Pr-Version: 3.95

>Number:         50762
>Category:       pkg
>Synopsis:       lang/gcc3-c fails to build after binutils update
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 03 14:15:00 +0000 2016
>Last-Modified:  Wed Feb 17 15:35:00 +0000 2016
>Originator:     Greg Oster
>Release:        NetBSD 7.0
>Organization:
>Environment:


System: NetBSD mickey 7.0 NetBSD 7.0 (QUAD) #0: Mon Sep 28 11:54:36 CST 2015 oster@quad:/u1/builds/build265/src/obj/amd64/u1/builds/build265/src/sys/arch/amd64/compile/QUAD amd64
Architecture: x86_64
Machine: amd64
>Description:

While upgrading packages, I encountered the following error while building lang/gcc3-c:

...


rm -rf ./libgcc.a
ar  rc ./libgcc.a libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_eprintf.o libgcc/./_bb.o libgcc/./__gcc_bcmp
 .o
if [ -f ranlib ] || ( [ x86_64--netbsdelf2.0 = x86_64--netbsdelf2.0 ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \
  ranlib ./libgcc.a ; \
else true; fi;
rm -rf ./libgcc_eh.a
{ nm -pg  libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o  libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwi
 nd-sjlj.o libgcc/./unwind-c.o; echo %%; \
  cat ./libgcc-std.ver | sed -e "/^[    ]*#/d" -e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \
  | /usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/xgcc -B/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/ -B/usr/pkg/gcc3/x86_64--netbsdelf2.0/bin/ -B/usr/pkg/gcc3/x86_64--netbsdelf2.0/lib/ -isystem /usr/pkg/gcc3/x86_64--netbsdelf2.0/include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I. -I./. -I./config -I./../include  -E -xassembler-with-cpp -; \
} | gawk -f ./mkmap-symver.awk  > libgcc/./tmp-libgcc.map
ar  rc ./libgcc_eh.a libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o libgcc/./unwind-c.o
if [ -f ranlib ] || ( [ x86_64--netbsdelf2.0 = x86_64--netbsdelf2.0 ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \
  ranlib ./libgcc_eh.a ; \
else true; fi;
mv libgcc/./tmp-libgcc.map libgcc/./libgcc.map
/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/xgcc -B/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/ -B/usr/pkg/gcc3/x86_64--netbsdelf2.0/bin/ -B/usr/pkg/gcc3/x86_64--netbsdelf2.0/lib/ -isystem /usr/pkg/gcc3/x86_64--netbsdelf2.0/include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o libgcc_s.so.1   libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixuns
 tfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o  libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o libgcc/./unwind-c.o -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1 libgcc_s.so
/usr/bin/ld: error in /usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/crtendS.o(.eh_frame); no .eh_frame_hdr table will be created.
/usr/bin/ld: /usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/crtbeginS.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
libgcc.mk:134: recipe for target 'libgcc_s.so' failed
gmake[2]: *** [libgcc_s.so] Error 1
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc'
Makefile:1126: recipe for target 'libgcc.a' failed
gmake[1]: *** [libgcc.a] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc'
Makefile:1544: recipe for target 'all-gcc' failed
gmake: *** [all-gcc] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/lang/gcc3-c
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc3-c

It was suggested to me that the issue was to do with the newer
binutils (2.26 vs 2.25.1)  


>How-To-Repeat:

	start with an empty /usr/pkg , then:

	cd /usr/pkgsrc/lang/gcc3-c
	make install clean
	*boom*

>Fix:
	Unknown to me.

>Audit-Trail:
From: Greg Oster <oster@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50762: lang/gcc3-c fails to build after binutils update
Date: Wed, 17 Feb 2016 09:31:38 -0600

 On Wed,  3 Feb 2016 14:15:00 +0000 (UTC)
 oster@netbsd.org wrote:

 > >Number:         50762
 > >Category:       pkg
 > >Synopsis:       lang/gcc3-c fails to build after binutils update
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       low
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Wed Feb 03 14:15:00 +0000 2016
 > >Originator:     Greg Oster
 > >Release:        NetBSD 7.0
 > >Organization:
 > >Environment:  
 > 	
 > 	
 > System: NetBSD mickey 7.0 NetBSD 7.0 (QUAD) #0: Mon Sep 28 11:54:36
 > CST 2015
 > oster@quad:/u1/builds/build265/src/obj/amd64/u1/builds/build265/src/sys/arch/amd64/compile/QUAD
 > amd64 Architecture: x86_64 Machine: amd64
 > >Description:  
 > 
 > While upgrading packages, I encountered the following error while
 > building lang/gcc3-c:
 > 
 > ...
 []
 > libgcc_s.so /usr/bin/ld: error
 > in /usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/crtendS.o(.eh_frame);
 > no .eh_frame_hdr table will be
 > created. /usr/bin/ld: /usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc/crtbeginS.o:
 > unrecognized relocation (0x2a) in section `.text' /usr/bin/ld: final
 > link failed: Bad value collect2: ld returned 1 exit status
 > libgcc.mk:134: recipe for target 'libgcc_s.so' failed gmake[2]: ***
 > [libgcc_s.so] Error 1 gmake[2]: Leaving directory
 > '/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc' Makefile:1126:
 > recipe for target 'libgcc.a' failed gmake[1]: *** [libgcc.a] Error 2
 > gmake[1]: Leaving directory
 > '/usr/pkgsrc/lang/gcc3-c/work.mickey/gcc-3.3.6/gcc' Makefile:1544:
 > recipe for target 'all-gcc' failed gmake: *** [all-gcc] Error 2 ***
 > Error code 2
 > 
 > Stop.
 > make[1]: stopped in /usr/pkgsrc/lang/gcc3-c
 > *** Error code 1
 > 
 > Stop.
 > make: stopped in /usr/pkgsrc/lang/gcc3-c
 > 
 > It was suggested to me that the issue was to do with the newer
 > binutils (2.26 vs 2.25.1)  
 > 
 > 
 > >How-To-Repeat:  
 > 
 > 	start with an empty /usr/pkg , then:
 > 	
 > 	cd /usr/pkgsrc/lang/gcc3-c
 > 	make install clean
 > 	*boom*
 > 
 > >Fix:  
 > 	Unknown to me.
 > 
 > >Unformatted:  
 >  	
 >  	

 A workaround is to add:

 PKG_LD=/usr/pkg/x86_64--netbsd/bin/ld

 to /usr/pkgsrc/lang/gcc3-c/Makefile as it then picks up the binutils
 2.26 ld and links fine.

 Later...

 Greg Oster

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.