pkgsrc-Bugs archive

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

Re: pkg/50762: lang/gcc3-c fails to build after binutils update



The following reply was made to PR pkg/50762; it has been noted by GNATS.

From: Greg Oster <oster%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
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@localhost 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
 


Home | Main Index | Thread Index | Old Index