Parallel Build on macOS High Sierra - error: C++ compiler cannot create executables
1 Attachment(s)
Hello everyone,
I am attempting to complete a parallel build of SU2 on my MacBook (macOS High Sierra Version 10.13.3). I have been following the steps detailed in the 'Build From Source" and "Parallel Build" tabs on the Docs page of the SU2 website. I execute the following commands: $ cd /Application/SU2-6.0.0/ $ ./configure --prefix=/Applications CXXFLAGS="-03" --enable-mpi --with-cc=/usr/local/bin/mpicc --with-cxx=/usr/local/bin/mpicxx --enable-tecio CPPFLAGS="-I/opt/X11/include" However, the configure script encounters the following error: configure: error: C++ compiler cannot create executables I have attached a screen shot of the command terminal for clarity. Below is the config.log file: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by SU2 configure 6.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/Applications CXXFLAGS=-03 --enable-mpi --with-cc=/usr/local/bin/mpicc --with-cxx=/usr/local/bin/mpicxx --enable-tecio CPPFLAGS=-I/opt/X11/include ## --------- ## ## Platform. ## ## --------- ## hostname = Christophers-MacBook-Pro-3.local uname -m = x86_64 uname -r = 17.4.0 uname -s = Darwin uname -v = Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available. 4 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 Primary memory available: 8.00 gigabytes Default processor set: 365 tasks, 1267 threads, 4 processors Load average: 2.32, Mach factor: 1.67 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin PATH: /Library/Frameworks/Python.framework/Versions/3.6/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /usr/local/bin PATH: /opt/X11/bin PATH: /Applications/SU2/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2499: checking build system type configure:2513: result: x86_64-apple-darwin17.4.0 configure:2533: checking host system type configure:2546: result: x86_64-apple-darwin17.4.0 configure:2566: checking target system type configure:2579: result: x86_64-apple-darwin17.4.0 configure:2621: checking for a BSD-compatible install configure:2689: result: /usr/bin/install -c configure:2700: checking whether build environment is sane configure:2755: result: yes configure:2906: checking for a thread-safe mkdir -p configure:2945: result: ./install-sh -c -d configure:2952: checking for gawk configure:2982: result: no configure:2952: checking for mawk configure:2982: result: no configure:2952: checking for nawk configure:2982: result: no configure:2952: checking for awk configure:2968: found /usr/bin/awk configure:2979: result: awk configure:2990: checking whether make sets $(MAKE) configure:3012: result: yes configure:3109: checking whether make supports nested variables configure:3126: result: yes configure:3151: checking for style of include used by make configure:3179: result: GNU configure:3357: checking for C++ compiler version configure:3366: /usr/local/bin/mpicxx --version >&5 Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3377: $? = 0 configure:3366: /usr/local/bin/mpicxx -v >&5 Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3377: $? = 0 configure:3366: /usr/local/bin/mpicxx -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3377: $? = 1 configure:3366: /usr/local/bin/mpicxx -qversion >&5 clang: error: unknown argument: '-qversion' clang: error: no input files configure:3377: $? = 1 configure:3397: checking whether the C++ compiler works configure:3419: /usr/local/bin/mpicxx -03 -DHAVE_MPI -I/opt/X11/include conftest.cpp >&5 clang: error: unknown argument: '-03' configure:3423: $? = 1 configure:3461: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "SU2" | #define PACKAGE_TARNAME "SU2" | #define PACKAGE_VERSION "6.0.0" | #define PACKAGE_STRING "SU2 6.0.0" | #define PACKAGE_BUGREPORT "su2code-dev@lists.stanford.edu" | #define PACKAGE_URL "https://github.com/su2code" | #define PACKAGE "SU2" | #define VERSION "6.0.0" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3466: error: in `/Applications/SU2-6.0.0': configure:3468: error: C++ compiler cannot create executables See `config.log' for more details Any assistance in explaining/rectifying this error I am encountering would be greatly appreciated! Many thanks, Kit |
Hi Christopher,
just change CXXFLAGS="-03" to CXXFLAGS="-O3" (so use the letter 'O' instead of the number '0') ;) Tim |
Quote:
Thank you, Christopher |
All times are GMT -4. The time now is 09:32. |