Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 May 2004 14:45:42 +0200 (CEST)
From:      Simon Barner <barner@in.tum.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67338: [maintainer] devel/boost: fix build on alpha
Message-ID:  <20040529124542.2843C3F27@zi025.glhnet.mhn.de>
Resent-Message-ID: <200405291300.i4TD0f6m071464@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67338
>Category:       ports
>Synopsis:       [maintainer] devel/boost: fix build on alpha
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 29 06:00:41 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Simon Barner
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #0: Sat Apr 17 12:06:11 CEST 2004 toor@zi025.glhnet.mhn.de:/usr/src/sys/i386/compile/KISTE i386

>Description:

Devel boost failed on alpha 5 because of the following error:

gcc-C++-action bin/boost/libs/regex/build/libboost_regex.a/gcc/release/thre=
ading-multi/cregex.o
virtual memory exhausted: Cannot allocate memory

    set -e=20
    c++  -O -pipe -mcpu=3Dev4 -mtune=3Dev5 -mieee  -c -Wall -ftemplate-dept=
h-100  -DNDEBUG -DNDEBUG  -finline-functions -Wno-inline   -I"bin/boost/lib=
s/regex/build"  -I "/tmp/a/ports/devel/boost/work/boost_1_31_0"  -o "bin/bo=
ost/libs/regex/build/libboost_regex.a/gcc/release/threading-multi/cregex.o"=
  "/tmp/a/ports/devel/boost/work/boost_1_31_0/libs/regex/build/../src/crege=
x.cpp"=20
   =20

The attached patch simply overwrites CXXFLAGS (until the GCC problem is
fixed).

>How-To-Repeat:

Try to build boost on FreeBSD 5.x/alpha

>Fix:

--- Makefile.orig	Sat May 29 14:33:06 2004
+++ Makefile	Sat May 29 14:37:08 2004
@@ -75,6 +75,9 @@
 
 .if ${ARCH} == alpha
 BJAM=		${WRKSRC}/tools/build/jam_src/bin.freebsdaxp/bjam
+# temporary work around for GCC bug on alpha
+# ("-mcpu=ev4 -mtune=ev5 -mieee" makes gcc consume all virtual memory)
+CXXFLAGS=-O -pipe
 .elif ${ARCH} == sparc64
 BJAM=		${WRKSRC}/tools/build/jam_src/bin.freebsdsparc/bjam
 .elif ${ARCH} == ia64
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040529124542.2843C3F27>