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 Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By CallumG
  • 1 Post By Linmunn

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
Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 6
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, 6 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: 21
Rep Power: 7
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: 5
Rep Power: 6
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
Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 6
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: 5
Rep Power: 6
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.
ms.hashempour likes this.
Linmunn is offline   Reply With Quote

Old   December 28, 2020, 06:15
Default cannot find -lwaves2Foam
  #7
Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16
fsifsi is on a distinguished road
Quote:
Originally Posted by Linmunn View Post
thanks for your information. Acutally I have solved this problem by reinstalling gcc use 'make install'. Hope this approach works for you too.
Hello
I also install wave2Foam in OF1812 centos 7, but I get error "cannot find -lwaves2Foam" can you tell more detail your case, please.
Many thanks
fsifsi is offline   Reply With Quote

Old   September 3, 2021, 04:56
Default
  #8
New Member
 
Peng Ningning
Join Date: May 2020
Posts: 5
Rep Power: 6
Linmunn is on a distinguished road
Quote:
Originally Posted by fsifsi View Post
Hello
I also install wave2Foam in OF1812 centos 7, but I get error "cannot find -lwaves2Foam" can you tell more detail your case, please.
Many thanks
Hi,
For me, the root of the error is WSL. I only met this problem when installing wave2Foam on WSL, and it didn't happen for my desktop with Ubuntu 18.04.
Linmunn is offline   Reply With Quote

Old   September 15, 2022, 07:48
Unhappy
  #9
Member
 
Pedro Ramos
Join Date: Mar 2012
Location: Belgium
Posts: 81
Rep Power: 14
pedroxramos 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.
any news since this? I am also struggling to compile waves2foam on wsl ubuntu 20.04 with openfoam2206
pedroxramos is offline   Reply With Quote

Old   November 26, 2022, 09:58
Default
  #10
New Member
 
Lige Zhao
Join Date: Nov 2022
Posts: 2
Rep Power: 0
Lige is on a distinguished road
Hi,Ningning, I also complied waves2Foam with OpenFOAM1912 using Ubuntu virtual system on Windows.
when I complie the "ThirdParty" folder, I met the error:
make: *** [makefile:138:ORDERINGS/ccn.o] error 1
mv:'libskit_gfortran.a' folder state (stat): No such file or directory


Do you have any idea of this error? really appreciate for any suggestions
Lige is offline   Reply With Quote

Reply


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
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 JGadelho OpenFOAM Community Contributions 36 April 27, 2024 16:46
[OpenFOAM.org] Install OpenFOAM-2.4.0 in Ubuntu 18.04? luckyraymond OpenFOAM Installation 10 April 26, 2023 13:26
[Other] Qt5, OpenFOAM-7 and -v1906, and Ubuntu 18.04 gcengineer OpenFOAM Installation 9 June 22, 2020 18:45
[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 01:22.