ports/163416: [patch] devel/boost-jam: respect CC
Jan Beich
jbeich at tormail.net
Sat Dec 17 16:20:05 UTC 2011
>Number: 163416
>Category: ports
>Synopsis: [patch] devel/boost-jam: respect CC
>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: Sat Dec 17 16:20:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
http://www.freebsd.org/doc/en/books/porters-handbook/dads-cc.html
>From build.sh usage:
echo "### A special toolset; cc, is available which is used as a fallback"
echo "### when a more specific toolset is not found and the cc command is"
echo "### detected. The 'cc' toolset will use the CC, CFLAGS, and LIBS"
echo "### envrironment variables, if present."
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/boost-jam-1.45.0.log
$ __MAKE_CONF= make CC=clang CXX=clang++ CPP=clang-cpp
===> Building for boost-jam-1.45.0
cd /home/holo/.cache/a/freebsd-ports/devel/boost-jam/work/boost_1_45_0 && SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib -lXm -lXp" LIBDIR="/usr/lib" CC="clang" CFLAGS="-O2 -pipe -fno-strict-aliasing" CPP="clang-cpp" CPPFLAGS="" LDFLAGS="" CXX="clang++" CXXFLAGS="-O2 -pipe -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 444" BSD_INSTALL_MAN="install -m 444" ./bootstrap.sh --prefix=/usr/local;
Building Boost.Jam with toolset gcc...
Failed to build Boost.Jam
Consult 'bootstrap.log' for more details
*** [do-build] Error code 1
$ __MAKE_CONF= make CC=gcc46 CXX=g++46 CPP=cpp46
===> Building for boost-jam-1.45.0
cd /home/holo/.cache/a/freebsd-ports/devel/boost-jam/work/boost_1_45_0 && SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib -lXm -lXp" LIBDIR="/usr/lib" CC="gcc46" CFLAGS="-O2 -pipe -fno-strict-aliasing" CPP="cpp46" CPPFLAGS="" LDFLAGS="" CXX="g++46" CXXFLAGS="-O2 -pipe -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 444" BSD_INSTALL_MAN="install -m 444" ./bootstrap.sh --prefix=/usr/local;
Building Boost.Jam with toolset gcc...
Failed to build Boost.Jam
Consult 'bootstrap.log' for more details
*** [do-build] Error code 1
>Fix:
--- cc.diff begins here ---
Index: devel/boost-jam/Makefile
===================================================================
RCS file: /a/.csup/ports/devel/boost-jam/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- devel/boost-jam/Makefile 27 Dec 2010 20:53:09 -0000 1.3
+++ devel/boost-jam/Makefile 17 Dec 2011 15:56:12 -0000
@@ -15,7 +15,8 @@ USE_BZIP2= yes
BJAM= ${WRKSRC}/bjam
do-build:
- cd ${WRKSRC} && ${MAKE_ENV} ./bootstrap.sh --prefix=${PREFIX};
+ cd ${WRKSRC} && ${MAKE_ENV} ./bootstrap.sh \
+ --with-toolset=cc --prefix=${PREFIX}
do-install:
${MKDIR} ${PREFIX}/bin
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list