Date: Sun, 28 Oct 2012 08:15:02 GMT From: Rainer Hurling <rhurlin@gwdg.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173148: [maintainer][patch] math/saga: workaround for CLANG build problem Message-ID: <201210280815.q9S8F2xr028553@red.freebsd.org> Resent-Message-ID: <201210280820.q9S8K1IZ053225@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173148 >Category: ports >Synopsis: [maintainer][patch] math/saga: workaround for CLANG build problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 28 08:20:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Rainer Hurling >Release: 10.0-CURRENT (amd64) >Organization: >Environment: FreeBSD xxx.xxx.xxx 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r242173: Sat Oct 27 11:31:10 CEST 2012 xxx@xxx.xxx.xx:/usr/obj/usr/src/sys/XXX amd64 >Description: Found on Pointyhat West CLANG exp run from 2012-10-20 that math/saga does not buid due to an error found by clang: table.cpp:128:17: error: taking the address of a temporary object of type 'CSG_Table' [-Waddress-of-temporary] pTable->Assign(&Get_Connection()->Get_Field_Desc(pTables->asString())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (see http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20121020001711.pointyhat-west/saga-2.0.8_3.log) This error does not happen with gcc. The SAGA GIS core team is working on a new release version. In the meantime this workaround should be enough to make CLANG systems happy, I hope. >How-To-Repeat: Building math/saga on a CLANG based system. >Fix: Force the build to use gcc instead of clang should do it for now. Patch attached with submission follows: --- saga.orig/Makefile 2012-08-03 14:33:55.000000000 +0200 +++ saga/Makefile 2012-10-27 21:33:47.000000000 +0200 @@ -28,6 +28,7 @@ USE_WX= 2.8 USE_LDCONFIG= yes GNU_CONFIGURE= yes +USE_GCC= any USE_AUTOTOOLS= libtool CFLAGS+= -I${LOCALBASE}/include WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210280815.q9S8F2xr028553>