CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Compilation Error with OF-2.4.0 on Ubuntu 18.04

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

Like Tree1Likes
  • 1 Post By CallumG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2020, 13:22
Default Compilation Error with OF-2.4.0 on Ubuntu 18.04
  #1
New Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 12
Rep Power: 2
CallumG is on a distinguished road
I'm trying to compile waves2Foam on ubuntu 18.04 and with OF-2.4.0. I'm getting an error when the compiler trys to make waveFoam. When Compiling the library I get an error at the start:

Code:
/usr/bin/ld: cannot find -lgfortran
and end:

Code:
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamSampling
collect2: error: ld returned 1 exit status
/home/callum/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/callum/OpenFOAM/callum-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam' failed
make: *** [/home/callum/OpenFOAM/callum-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam] Error 1
which results in the solvers/ preprocessing/ post-processing to fail. Just to confirm I definately have gfortran installed on the default path as I used apt-get to install all of the dependencies. What's weird is that OceanWave3D & Fenton's compile which use gfortran.

I've attached a log if anyone can help.
Attached Files
File Type: txt orig_logmake.txt (86.9 KB, 4 views)
ms.hashempour likes this.
CallumG is offline   Reply With Quote

Old   March 6, 2020, 05:36
Unhappy
  #2
New Member
 
Masoumeh
Join Date: Oct 2019
Posts: 12
Rep Power: 2
ms.hashempour is on a distinguished road
Quote:
Originally Posted by CallumG View Post
I'm trying to compile waves2Foam on ubuntu 18.04 and with OF-2.4.0. I'm getting an error when the compiler trys to make waveFoam. When Compiling the library I get an error at the start:

Code:
/usr/bin/ld: cannot find -lgfortran
and end:

Code:
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamSampling
collect2: error: ld returned 1 exit status
/home/callum/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/callum/OpenFOAM/callum-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam' failed
make: *** [/home/callum/OpenFOAM/callum-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam] Error 1
which results in the solvers/ preprocessing/ post-processing to fail. Just to confirm I definately have gfortran installed on the default path as I used apt-get to install all of the dependencies. What's weird is that OceanWave3D & Fenton's compile which use gfortran.

I've attached a log if anyone can help.

I have this problem too.
ms.hashempour is offline   Reply With Quote

Old   March 6, 2020, 10:54
Default
  #3
New Member
 
Marc
Join Date: Mar 2020
Posts: 2
Rep Power: 0
Marc_H is on a distinguished road
I have the same problem
Marc_H is offline   Reply With Quote

Old   May 12, 2020, 08:08
Default
  #4
New Member
 
Peng Ningning
Join Date: May 2020
Posts: 2
Rep Power: 0
Linmunn is on a distinguished road
hi, Callum

Have you figure it out? I meet the same problem when I complie waves2Foam with OpenFOAM1912 using Bash on Ubuntu on Windows.
Linmunn is offline   Reply With Quote

Old   May 12, 2020, 10:38
Default
  #5
New Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 12
Rep Power: 2
CallumG is on a distinguished road
Unfortunately not, I opted to use another toolbox called olaFlow because of this issue.
CallumG is offline   Reply With Quote

Old   May 13, 2020, 04:25
Default
  #6
New Member
 
Peng Ningning
Join Date: May 2020
Posts: 2
Rep Power: 0
Linmunn is on a distinguished road
Quote:
Originally Posted by CallumG View Post
Unfortunately not, I opted to use another toolbox called olaFlow because of this issue.
thanks for your information. Acutally I have solved this problem by reinstalling gcc use 'make install'. Hope this approach works for you too.
Linmunn 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
[Other] Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04 gcengineer OpenFOAM Installation 9 June 22, 2020 18:45
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 JGadelho OpenFOAM Community Contributions 19 October 15, 2019 06:50
[OpenFOAM.org] Install OpenFOAM-2.4.0 in Ubuntu 18.04? luckyraymond OpenFOAM Installation 5 May 18, 2019 13:04
[OpenFOAM.org] OpenFOAM 3.0.1 in Ubuntu 18.04 jlr OpenFOAM Installation 4 January 3, 2019 12:57
OpenFoam 2.1.x /2.2.0 compilation failed on Ubuntu 12.04/10 64bit keepfit OpenFOAM Installation 2 March 26, 2013 09:43


All times are GMT -4. The time now is 22:44.