|
[Sponsors] |
[OpenFOAM.com] Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 2, 2015, 03:47 |
Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn)
|
#1 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 15 |
Hi Bruno,
I'm experiencing similar problems with my compilation of OF 1.7.1 on an Ubuntu 14.10 machine. I ran the Allmake skript from the $WM_PROJECT_DIR. Parafoam compiled proberly. But I get erros during the /scr compiling, which leads to the final message: Code:
make: Target 'application' not remade because of errors. Code:
root@zh-ligg-HP-EliteDesk-800-G1-TWR:~/OpenFOAM/OpenFOAM-1.7.1/src# wmake libso OpenFOAM SOURCE=db/dictionary/dictionary.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/zh-ligg/OpenFOAM/ThirdParty-1.7.1/zlib-1.2.3 -IlnInclude -I. -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dictionary.o In file included from lnInclude/ILList.H:169:0, from lnInclude/IDLList.H:35, from lnInclude/entry.H:45, from db/dictionary/dictionary.H:54, from db/dictionary/dictionary.C:26: lnInclude/ILList.C: In instantiation of ‘Foam::ILList<LListBase, T>::ILList(const Foam::ILList<LListBase, T>&, const CloneArg&) [with CloneArg = Foam::dictionary; LListBase = Foam::DLListBase; T = Foam::entry]’: lnInclude/IDLList.H:84:49: required from ‘Foam::IDLList<T>::IDLList(const Foam::IDLList<T>&, const CloneArg&) [with CloneArg = Foam::dictionary; T = Foam::entry]’ db/dictionary/dictionary.C:126:23: required from here lnInclude/ILList.C:65:44: error: ‘append’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] append(iter().clone(cloneArg).ptr()); ^ lnInclude/ILList.C:65:44: note: declarations in dependent base ‘Foam::DLListBase’ are not found by unqualified lookup lnInclude/ILList.C:65:44: note: use ‘this->append’ instead db/dictionary/dictionary.dep:124: recipe for target 'Make/linux64GccDPOpt/dictionary.o' failed make: *** [Make/linux64GccDPOpt/dictionary.o] Error 1 Code:
collect2: error: ld returned 1 exit status /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/Makefile:150: recipe for target '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/equilibriumCO' failed make[2]: *** [/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/equilibriumCO] Error 1 make[2]: Leaving directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/equilibriumCO' /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/MakefileApps:39: recipe for target 'equilibriumCO' failed make[1]: *** [equilibriumCO] Error 2 make[2]: Entering directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/equilibriumFlameT' Making dependency list for source file equilibriumFlameT.C make[2]: Leaving directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/equilibriumFlameT' make[2]: Entering directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/equilibriumFlameT' SOURCE=equilibriumFlameT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/equilibriumFlameT.o g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/equilibriumFlameT.o -L/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \ -lspecie -lOpenFOAM -liberty -ldl -lm -o /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/equilibriumFlameT /usr/bin/ld: cannot find -lspecie /usr/bin/ld: cannot find -lOpenFOAM /usr/bin/ld: cannot find -liberty collect2: error: ld returned 1 exit status /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/Makefile:150: recipe for target '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/equilibriumFlameT' failed make[2]: *** [/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/equilibriumFlameT] Error 1 make[2]: Leaving directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/equilibriumFlameT' /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/MakefileApps:39: recipe for target 'equilibriumFlameT' failed make[1]: *** [equilibriumFlameT] Error 2 make[2]: Entering directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' Making dependency list for source file mixtureAdiabaticFlameT.C make[2]: Leaving directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[2]: Entering directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' SOURCE=mixtureAdiabaticFlameT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \ -lspecie -lOpenFOAM -liberty -ldl -lm -o /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT /usr/bin/ld: cannot find -lspecie /usr/bin/ld: cannot find -lOpenFOAM /usr/bin/ld: cannot find -liberty collect2: error: ld returned 1 exit status /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/Makefile:150: recipe for target '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT' failed make[2]: *** [/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Error 1 make[2]: Leaving directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/MakefileApps:39: recipe for target 'mixtureAdiabaticFlameT' failed make[1]: *** [mixtureAdiabaticFlameT] Error 2 make[1]: Target 'application' not remade because of errors. make[1]: Leaving directory '/home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical' /home/zh-ligg/OpenFOAM/OpenFOAM-1.7.1/wmake/MakefileApps:39: recipe for target 'thermophysical' failed make: *** [thermophysical] Error 2 make: Target 'application' not remade because of errors. Last edited by wyldckat; February 2, 2015 at 16:35. Reason: Added [CODE][/CODE] |
|
February 2, 2015, 16:43 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Antonio,
I moved your post from http://www.cfd-online.com/Forums/ope...on-errors.html to a new thread, because although this is very similar to the other issue, the other variant+version of OpenFOAM discussed there is considerably different. Essentially, the problem is that you're trying to build OpenFOAM 1.7.1 with an incompatible GCC version, as indicated here: http://openfoamwiki.net/index.php/In...tion_.28GCC.29 The simplest solution is to install the packages for GCC 4.4 that Ubuntu 14.10 has got: Code:
sudo apt-get install gcc-4.4 g++-44 If this doesn't work for you, I can try this coming weekend to test this myself and write on the wiki. Best regards, Bruno
__________________
|
|
February 3, 2015, 04:16 |
|
#3 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 15 |
Hi Bruno
That's a great input! Also because I actually thought I had taken care of this. But apparently I found a misleading post somewhere which stated that for compilation there is gcc-4.5.0 or younger required, which in my case would definitely be fulfilled --> gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6) So, thanks and wonderful day! Antonio |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problems installing OpenFOAM 2.4.0 on Ubuntu 16.04 | donminoti | OpenFOAM Installation | 13 | January 13, 2021 18:07 |
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 | titanium | OpenFOAM Installation | 14 | February 20, 2020 12:46 |
[OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 | masoudshao | OpenFOAM Installation | 10 | August 9, 2018 07:13 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) | immortality | Lounge | 2 | May 24, 2014 04:05 |