View Issue Details

IDProjectCategoryView StatusLast Update
0002736OpenFOAMBugpublic2017-11-01 21:41
Reporterelomri Assigned Tochris  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformOpenSuse LeapOSOtherOS Version42.1
Summary0002736: Persistant error in gcc when compiling ThirdParty-4.1
DescriptionHello everyone,

I tried to follow the instructions in https://openfoam.org/download/4-1-source/ since i don't have admin rights to install packages.
When compiling the Allwmake in ThirdParty i encounter a problem with gcc. I checked and i have a gcc 4.8.5 which is suited for OpenFoam-4.1 (gcc 4.5 or higher)
I also introduced the following links to make sure ensure that the correct global MPI installation is used by this OpenFOAM installation:
ln -s /usr/bin/mpicc.openmpi OpenFOAM-4.1/bin/mpicc
ln -s /usr/bin/mpirun.openmpi OpenFOAM-4.1/bin/mpirun
but still the same error.
 
I attatch the full log.make of the ThirdParty.
Thank you in advance, your help is much appreciated

The fragment of the error is as follows:
gcc: error: libtool:: No such file or directory
gcc: error: link:: No such file or directory
mpicc: No such file or directory
Makefile:2947: recipe for target 'ptdummysizes' failed
make[2]: *** [ptdummysizes] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/OpenFOAM/ThirdParty-4.1/scotch_6.0.3/src/libscotch'
Makefile:63: recipe for target 'ptscotch' failed
make[1]: *** [ptscotch] Error 2
make[1]: Leaving directory '/tmp/OpenFOAM/ThirdParty-4.1/scotch_6.0.3/src/libscotch'
Makefile:98: recipe for target 'ptscotch' failed
make: *** [ptscotch] Error 2
+ make realclean
(cd libscotch ; make realclean)
TagsNo tags attached.

Activities

elomri

2017-10-24 12:33

reporter  

log_third_party_4.make (416,295 bytes)

wyldckat

2017-11-01 17:48

updater   ~0008970

A quick search online for:

  gcc: error: libtool:: No such file or directory
  gcc: error: link:: No such file or directory

Gave me the following question/answer: https://stackoverflow.com/questions/35378437/error-libtool-while-compiling-an-mpi-program

The problem is that 'mpicc' was not found, which you tried to fix with the symbolic links... problem is that the specific trick that you tried to use with symbolic links is for Ubuntu and not for openSUSE.


The correct way for loading the default system-installed MPI toolbox on openSUSE is to run:

  source /etc/profile.d/mpi-selector.sh

This is done automatically after logout/login is done right after installing the "openmpi" package via YaST/zypper, but until said logout/login is done, you will have to executed the command above.


On the other hand, if the openSUSE installation that you are using does not have "openmpi-devel" installed (for example, if the command above gives an error message), then you need to:
 - Either find out which MPI toolbox is available on that machine.
 - Or you must build a custom Open-MPI installation, which you can define in "etc/bashrc" to use "OPENMPI" and read the instructions given in "ThirdParty-*/README.org" for downloading and unpacking the default version of Open-MPI.

wyldckat

2017-11-01 17:55

updater   ~0008971

@Chris: As I've indicated in the comment above, please add a note to the page https://openfoam.org/download/source/software-for-compilation/ - in the section for openSUSE, to source the script "/etc/profile.d/mpi-selector.sh" until the next logout+login is done, at which point it is then done automatically.

This is necessary because this script is not sourced whenever a new terminal is open in the current X-login session, it's only done when logging in... at least on openSUSE.

administrator

2017-11-01 19:23

administrator   ~0008974

@wyldckat : I added what I think you wanted. Please check and close the thread if OK:
https://openfoam.org/download/source/software-for-compilation/

wyldckat

2017-11-01 19:34

updater   ~0008975

@administrator: Either there is a cache issue or the 'source' command line is not inside the HTML '
  • ' block for the respective description.
  • wyldckat

    2017-11-01 19:35

    updater   ~0008976

    oops... I was referring to the '< li >' block... I forgot that Mantis allows HTML blocks...

    chris

    2017-11-01 21:41

    manager   ~0008978

    Done

    Issue History

    Date Modified Username Field Change
    2017-10-24 12:33 elomri New Issue
    2017-10-24 12:33 elomri File Added: log_third_party_4.make
    2017-11-01 17:48 wyldckat Note Added: 0008970
    2017-11-01 17:55 wyldckat Note Added: 0008971
    2017-11-01 19:23 administrator Note Added: 0008974
    2017-11-01 19:34 wyldckat Note Added: 0008975
    2017-11-01 19:35 wyldckat Note Added: 0008976
    2017-11-01 21:41 chris Note Added: 0008978
    2017-11-01 21:41 chris Assigned To => chris
    2017-11-01 21:41 chris Status new => closed
    2017-11-01 21:41 chris Resolution open => fixed