|
[Sponsors] |
[foam-extend.org] Problems with "cannot find -liberty" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2014, 16:23 |
Problems with "cannot find -liberty"
|
#1 |
New Member
Nicolao
Join Date: Jul 2012
Location: São Paulo, Brazil
Posts: 13
Rep Power: 14 |
Hello,
I'm having the famous problem of "cannot find -liberty" when I'm making the foam-extended 3.0 installation. I've already checked almost every post about this issue, and I cannot find a solution. All posts I read suggest that you must install the binutils-dev package. However, I already have it installed. I've just installed the Ubuntu 14.04, and I'm not sure if there some kind of incompatibility or something like that. I'm sorry to bring up this problem again, but I'm starting to give up the installation. Thanks |
|
April 25, 2014, 17:53 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Nicolao,
It would seem that the Google force is not strong in you I Googled just now for this: Code:
FOAM extend 3.0 ubuntu 14.04 If you look for "Ubuntu 14.04" on that page, you'll see what packages are needed to be installed. The list looks nearly identical to all other Ubuntu's, except the new package is called "libiberty-dev". This has been available on that wiki page since the 18th of April Best regards, Bruno
__________________
|
|
April 28, 2014, 15:47 |
|
#3 |
New Member
Nicolao
Join Date: Jul 2012
Location: São Paulo, Brazil
Posts: 13
Rep Power: 14 |
Thank you Bruno!
It worked just fine! |
|
March 4, 2016, 16:19 |
|
#4 |
New Member
Pankaj Rajput
Join Date: Jan 2016
Location: New York
Posts: 6
Rep Power: 10 |
Hi Nicolao and Bruno
I recently updated to Ubuntu 15.01 and was making the foam-extend-3.2 installation. I kept on getting the famous 'cannot find -liberty' error (which I was able to resolve thanks to Bruno's post ) however, I am also getting 'cannot find -lfoam' error. I have searched a lot online but I couldnt find anything that would fix this error, maybe I am not looking in the right direction. Do you guys know what could be causing this 'cannot find -lfoam' error? Thanks. |
|
March 6, 2016, 11:36 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
March 7, 2016, 12:15 |
|
#6 |
Member
Join Date: Jun 2015
Posts: 30
Rep Power: 11 |
Dear Bruno,
I'm installing foam-extend 3.2.x on a workstation with Ubuntu-12, as non-root. So I made the appropriate modifications in etc/prefs.sh to use third party software and use FOAM as compiler. in etc/prefs.sh: Code:
export WM_COMPILER=Gcc49 export WM_THIRD_PARTY_USE_GCC_492=1 export compilerInstall=FOAM export QT_THIRD_PARTY=1 # For AllMake.stage1 export WM_THIRD_PARTY_USE_CMAKE_322=1 # For AllMake.stage2 export WM_THIRD_PARTY_USE_OPENMPI_188=1 # For AllMake.stage3 export WM_THIRD_PARTY_USE_METIS_510=1 export WM_THIRD_PARTY_USE_PARMGRIDGEN_10=1 export WM_THIRD_PARTY_USE_LIBCCMIO_261=1 export WM_THIRD_PARTY_USE_MESQUITE_212=1 export WM_THIRD_PARTY_USE_SCOTCH_604=1 export WM_THIRD_PARTY_USE_PARMETIS_403=1 export WM_THIRD_PARTY_USE_PYFOAM_064=1 export WM_THIRD_PARTY_USE_HWLOC_1101=1 # For AllMake.stage4 export WM_THIRD_PARTY_USE_QT_486=1 export WM_THIRD_PARTY_USE_PARAVIEW_431=1 Code:
/usr/bin/ld: cannot find -liberty. Thanks in advance. Best Ali |
|
March 7, 2016, 16:54 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @Ali: I don't have time to fully test this, but please try the following steps:
Code:
foam sed -iold -e "s=\-liberty==" wmake/rules/*/general Code:
foam ./Allwmake > log.make 2>&1 Code:
./Allwmake > log.make 2>&1 |
|
March 7, 2016, 16:59 |
|
#8 | |
New Member
Pankaj Rajput
Join Date: Jan 2016
Location: New York
Posts: 6
Rep Power: 10 |
Quote:
Thanks for your reply. Please find the log file attached with this post. Thanks again Pankaj |
||
March 7, 2016, 17:16 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pankaj,
Quote:
Because the error message that you are getting is because the "libfoam.so" was built with the name "libOpenFOAM.so"!? To solve this issue, got into the foam-extend-3.2 folder: Code:
foam Then run "Allwmake" once again, the same way you did before. Best regards, Bruno |
||
March 7, 2016, 18:23 |
|
#10 | |
New Member
Pankaj Rajput
Join Date: Jan 2016
Location: New York
Posts: 6
Rep Power: 10 |
Quote:
Thanks for your prompt reply. Your recommended change fixed the problem and I was able to build it successfully. I think I changed that line in a desperate attempt to fix the installation build (before i found this post) and forgot about it. Thanks again for your help, I really appreciate it. Pankaj |
||
March 8, 2016, 05:48 |
|
#11 |
Member
Join Date: Jun 2015
Posts: 30
Rep Power: 11 |
Dear Bruno,
As always you're awesome! It worked, it just gives the following warning at the end which says that it is for "project developers"; whatever that means. Best Ali Code:
CMake Warning (dev) at CMakeLists.txt:54 (TARGET_LINK_LIBRARIES): Policy CMP0023 is not set: Plain and keyword target_link_libraries signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The keyword signature for target_link_libraries has already been used with the target "PV4FoamReader_SM". All uses of target_link_libraries with a target should be either all-keyword or all-plain. The uses of the keyword signature are here: * /home/ali/foam/foam-extend-3.2/ThirdParty/packages/ParaView-4.3.1/platforms/linux64Gcc49DPOpt/lib/cmake/paraview-4.3/ParaViewPlugins.cmake:1099 (target_link_libraries) This warning is for project developers. Use -Wno-dev to suppress it. |
|
August 25, 2016, 11:57 |
|
#13 |
Member
Dan Kokron
Join Date: Dec 2012
Posts: 33
Rep Power: 14 |
Bruno,
Removing all references to -liberty from the wmake/rules/*/general files resolved this issue for me. Thanks for the suggestion. |
|
August 25, 2016, 17:24 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Dan,
Many thanks for the feedback and reminder! I'm testing now on Ubuntu 16.04 and I'll make a pull request for the "nextRelease" branch at foam-extend 3.2 for this, so that they can do a larger build test. I never really understood why we were ever depending on the "libiberty.so" library. Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SimpleFoam convergence problems | brahim | OpenFOAM Running, Solving & CFD | 20 | June 9, 2015 10:09 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
CFX problem in ubuntu (linux) | Vigneshramaero | CFX | 0 | July 13, 2012 11:22 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |