CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Parallel Build on macOS High Sierra - error: C++ compiler cannot create executables

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2018, 00:19
Default Parallel Build on macOS High Sierra - error: C++ compiler cannot create executables
  #1
New Member
 
Christopher Willett
Join Date: Feb 2018
Posts: 4
Rep Power: 4
Kit62 is on a distinguished road
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
Attached Images
File Type: jpg Screen Shot 2018-03-26 at 04.06.47.jpg (101.6 KB, 5 views)
Kit62 is offline   Reply With Quote

Old   March 27, 2018, 10:23
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 184
Rep Power: 6
talbring is on a distinguished road
Hi Christopher,

just change CXXFLAGS="-03" to CXXFLAGS="-O3" (so use the letter 'O' instead of the number '0')

Tim
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   March 27, 2018, 10:46
Default
  #3
New Member
 
Christopher Willett
Join Date: Feb 2018
Posts: 4
Rep Power: 4
Kit62 is on a distinguished road
Quote:
Originally Posted by talbring View Post
Hi Christopher,

just change CXXFLAGS="-03" to CXXFLAGS="-O3" (so use the letter 'O' instead of the number '0')

Tim
Thank you for your reply Tim! I actually discovered the typo earlier today when I re-attempted the build and was planning to post a reply to this thread explaining my doofus mistake I appreciate you taking a moment to help me

Thank you,

Christopher
Kit62 is offline   Reply With Quote

Reply

Tags
macos parallel build

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 10:03
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02:07
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 20:42.