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?

----- Forwarded message from -----

Date: Wed, 23 Nov 2011 11:15:01 +0000 (UTC)
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
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
It was tested on a fresh install of 201111111920Z from,
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.
Build lang/gcc46 on a NetBSD current amd64. Not tested on i386. 
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/"

and in the buildlink section:

.include "../../lang/gcc44/"

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

Home | Main Index | Thread Index | Old Index