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

[OpenFOAM.com] Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By alfa_8C

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2015, 02:47
Default Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn)
  #1
Member
 
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 14
alfa_8C is an unknown quantity at this point
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.
I tried to wmake step by step within the /scr folder and I got the following error after wmaking the OpenFOAM directory:

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
For the sake of completeness - this is the final message from the $WM_PROJECT_DIR/Allwmake run:


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.
Do you have an idea?

Last edited by wyldckat; February 2, 2015 at 15:35. Reason: Added [CODE][/CODE]
alfa_8C is offline   Reply With Quote

Old   February 2, 2015, 15:43
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Then in order to use this specific compiler... wait, have a look at these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04 - roughly follow those instructions, but change for yourself all occurrences from 4.5 to 4.4 and you should be good to go.

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
omidra likes this.
__________________
wyldckat is offline   Reply With Quote

Old   February 3, 2015, 03:16
Default
  #3
Member
 
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 14
alfa_8C is an unknown quantity at this point
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
wyldckat likes this.
alfa_8C 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
[OpenFOAM.org] Problems installing OpenFOAM 2.4.0 on Ubuntu 16.04 donminoti OpenFOAM Installation 13 January 13, 2021 17:07
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 titanium OpenFOAM Installation 14 February 20, 2020 11:46
[OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 masoudshao OpenFOAM Installation 10 August 9, 2018 06:13
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) immortality Lounge 2 May 24, 2014 03:05


All times are GMT -4. The time now is 13:07.