Snow Leopard compilers
David Strubbe
dstrubbe at macports.org
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?
Thanks,
David
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:
https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/42401/steps/compile/logs/stdio
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:
CC='/usr/bin/clang'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_mports_dports_science_apbs/apbs/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os'
CPATH='/opt/local/include'
CPPFLAGS='-I/opt/local/include'
CXX='/usr/bin/llvm-g++-4.2'
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: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160609/8eb5cbff/attachment.html>
More information about the macports-dev
mailing list