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

"C++ compiler cannot create executables" with working C++ compilers

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2016, 21:49
Default "C++ compiler cannot create executables" with working C++ compilers
  #1
New Member
 
Michael
Join Date: Jul 2016
Location: Huntsville, Alabama
Posts: 9
Rep Power: 10
Jasfss is on a distinguished road
I posted this as an add-on in another thread yesterday, but figured I'd make a separate thread for this issue.

I initially had a simple build of SU2 on my Ubuntu machine, done by doing ./configure and all the make/install without flags, and that worked fine, but I now am trying to speed up my computing time a little.

So, in attempting to do a clean install of SU2, doing ./configure with enabling mpi and pointing to an mpi cxx directory (/usr/include/mpi), I get the following (along with some other fine stuff):

Quote:
checking whether the C++ compiler works... no
configure: error: in `/home/mls0027/SU2':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I then check config.log, and find where it has the issue:

Quote:
configure:3389: $? = 126
configure:3427: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "SU2"
| #define PACKAGE_TARNAME "SU2"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "SU2 4.2.0"
| #define PACKAGE_BUGREPORT "su2code-dev@lists.stanford.edu"
| #define PACKAGE_URL "https://github.com/su2code"
| #define PACKAGE "SU2"
| #define VERSION "4.2.0"
| /* end confdefs.h. */
Finally, from there, I go into the configure file to line 3427's section and see:

Quote:
if test -z "$ac_file"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C++ compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
This doesn't really shed any light for me. I've checked to see that I do indeed have c++ compilers working, and gone through all updates, upgrades, and checks for essential builds etc. Really hoping someone here knows the deal.
Jasfss is offline   Reply With Quote

Old   July 28, 2016, 22:34
Default
  #2
New Member
 
Michael
Join Date: Jul 2016
Location: Huntsville, Alabama
Posts: 9
Rep Power: 10
Jasfss is on a distinguished road
Ok, I fixed it. For anyone else who is struggling with this issue, make sure you're linking to the /usr/bin/mpicc and /usr/bin/mpicxx rather than anywhere else
Jasfss is offline   Reply With Quote

Old   August 16, 2016, 19:42
Default
  #3
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14
hlk is on a distinguished road
Quote:
Originally Posted by Jasfss View Post
Ok, I fixed it. For anyone else who is struggling with this issue, make sure you're linking to the /usr/bin/mpicc and /usr/bin/mpicxx rather than anywhere else
Thanks for posting the solution - you do indeed need to link to the mpi compilers (or have your $PATH set up so that they are found automatically) when compiling for parallel.
hlk is offline   Reply With Quote

Old   February 19, 2018, 17:54
Default
  #4
New Member
 
Join Date: Jan 2013
Posts: 2
Rep Power: 0
brazdj is on a distinguished road
Thanks for posting your solution



Last edited by brazdj; February 19, 2018 at 18:25. Reason: Made a typo and it worked... DOH!
brazdj is offline   Reply With Quote

Reply

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
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[Salome] how to create geometry with salome to make "IdeasUnvToFoam" working! amorenelchino OpenFOAM Meshing & Mesh Conversion 5 June 24, 2013 11:35
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 11:16
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06


All times are GMT -4. The time now is 12:03.