I use Mac OS, Clang, and Xcode - so far so good.
Now I want to build and test a library with GCC version 4.7.2 which I have
installed at location /usr/gcc-4.7.2/bin/g++-4.7 and I can invoke it from
the command line with
$/usr/gcc-4.7.2/bin/g++-4.7 -v
Using built-in specs.
COLLECT_GCC=/usr/gcc-4.7.2/bin/g++-4.7
COLLECT_LTO_WRAPPER=/usr/gcc-4.7.2/libexec/gcc/x86_64-apple-darwin12.2.0/4.7.2/lto-wrapper
Target: x86_64-apple-darwin12.2.0
Configured with: ../configure -q --prefix=/usr/gcc-4.7.2 --enable-lto
--enable-checking=release --with-libelf=/usr/gcc-4.7.2
--with-gmp=/usr/gcc-4.7.2 --with-mpfr=/usr/gcc-4.7.2
--with-mpc=/usr/gcc-4.7.2 --with-ppl=/usr/gcc-4.7.2
--with-cloog=/usr/gcc-4.7.2 --program-suffix=-4.7 --silent
Thread model: posix
gcc version 4.7.2 (GCC)
I've altered my user-config.jam so that it contains:
using darwin : 4.7
: /usr/gcc-4.7.2/bin/g++-4.7
;
Since things don't seem to be working I do some testing with:
$b2 --dump-tests -d2 -a toolset=darwin-4.7 cxxflags=-std=c++03 config_info
>b2.log &
which produces an output file:
$cat
../../../bin.v2/libs/config/test/config_info.test/darwin-4.7/debug/config_info.output
Clang version 5.1 (clang-503.0.40)
__cplusplus =199711L
__STDC__ =1
__GNUC__ =4
__GNUC_MINOR__ =2
__GNUC_PATCHLEVEL__ =1
__GNUG__ =4
__STRICT_ANSI__ =1
__VERSION__ ="4.2.1 Compatible Apple LLVM
5.1 (clang-503.0.40)"
__REGISTER_PREFIX__ [no value]
__USER_LABEL_PREFIX__ =_
__EXCEPTIONS =1
__LP64__ =1
__MACH__ =1
__APPLE__ =1
__APPLE_CC__ =6000
__STDC_HOSTED__ =1
*********************************************************************
libc++ version 1101
_LIBCPP_VERSION =1101
...
This suggests that my user-config and/or PATH and/or ??? needs to be tweaked
in
order to get this to work.
Any suggestions appreciated.
Robert Ramey
--
View this message in context: http://boost.2283326.n4.nabble.com/using-gcc-version-on-MAC-OS-tp4664440.html
Sent from the Boost - Build mailing list archive at Nabble.com.
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build