tech-toolchain archive

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

lang/gcc46 build failure on NetBSD current with gcc-4.5



This looks like a regression to me, if gcc-4.5 can't build gcc46 any
longer (this used to work until a few weeks ago even on -current).

Any ideas?
 Thomas

----- Forwarded message from kuehro%gmx.de@localhost -----

Date: Wed, 23 Nov 2011 11:15:01 +0000 (UTC)
From: kuehro%gmx.de@localhost
To: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
pkgsrc-bugs%netbsd.org@localhost
Cc: 
Subject: pkg/45645: lang/gcc46 build failure on NetBSD current with gcc-4.5
X-OSBF-Lua-Score: 34.21/0.00 [H] (v2.0.4, Spamfilter v2.0.3)

>Number:         45645
>Category:       pkg
>Synopsis:       lang/gcc46 build failure on NetBSD current with gcc-4.5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 23 11:15:00 +0000 2011
>Originator:     Kai-Uwe Eckhardt
>Release:        5.99.56
>Organization:
>Environment:
GENERIC amd64
>Description:
Build fails in libgcc: cannot compute suffix of object files. The reason
turned out to be work/obj/gcc/cc1 failing to start with the error message
'Cannot allocate memory' (with three times 'check_exec: rejecting due to
limits' on the console) although ulimit was set to hard limits on a 4 GB
system.
It was tested on a fresh install of 201111111920Z from releng.netbsd.org,
with no mk.conf except /usr/pkg/etc/mk.conf built by pkgsrc/bootstrap, so
the standard compiler from current without any additional optimization
flags was used.
>How-To-Repeat:
Build lang/gcc46 on a NetBSD current amd64. Not tested on i386. 
>Fix:
Replace the gcc-4.5 used by current with lang/gcc44. It worked with:

export PATH=/usr/pkg/gcc44/bin:/usr/pkg/bin:$PATH
export CC=/usr/pkg/gcc44/bin/gcc
export CXX=/usr/pkg/gcc44/bin/g++

and adding the following lines to Makefile as decribed in lang/gcc44/MESSAGE

in the pre-configure section:

.include "../gcc44/preconfigure.mk"

and in the buildlink section:

.include "../../lang/gcc44/buildlink3.mk"



----- End forwarded message -----


Home | Main Index | Thread Index | Old Index