Snow Leopard compilers

David Strubbe dstrubbe at
Thu Jun 9 09:51:45 PDT 2016

Hi all,

I am a bit confused about what is going on with selection of compiler on
Snow Leopard for the apbs port. It is taking clang for C but llvm-g++-4.2
for C++, and the latter does not work for this port. If clang++ were used I
think it would work. Why is that not being selected? Why is an inconsistent
pair of C and C++ being used?


In the Portfile I have

compiler.blacklist      macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6 \
                        macports-dragonegg-3.3 macports-dragonegg-3.4
gcc-4.2 llvm-gcc-4.2 apple-gcc-4.2 macports-llvm-gcc-4.2

The failing buildbot output:

Selected parts of that:

DEBUG: Unmatched blacklisted compiler: gcc-4.2
DEBUG: Unmatched blacklisted compiler: apple-gcc-4.2
DEBUG: Unmatched blacklisted compiler: macports-llvm-gcc-4.2
-->  Configuring apbs
DEBUG: Using compiler 'Xcode Clang'
DEBUG: Executing proc-pre-org.macports.configure-configure-0
DEBUG: Executing proc-pre-org.macports.configure-configure-1
DEBUG: Executing proc-pre-org.macports.configure-configure-2
DEBUG: Executing proc-pre-org.macports.configure-configure-3
DEBUG: Active variants check for source-type install considers
depends_fetch depends_extract depends_lib depends_build depends_run: maloc
readline cmake
DEBUG: Executing proc-pre-org.macports.configure-configure-4
DEBUG: Executing org.macports.configure (apbs)
DEBUG: Environment:
CFLAGS='-pipe -Os'
CXXFLAGS='-pipe -Os'

which leads in the build to

error: unrecognized command line option "-std=c++0x"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list