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

Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn)

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

Like Tree1Likes
  • 1 Post By alfa_8C

Reply
 
LinkBack Thread Tools Display Modes
Old   February 2, 2015, 03:47
Default Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn)
  #1
Member
 
Antonio Liggieri
Join Date: Aug 2010
Posts: 66
Rep Power: 6
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 16:35. Reason: Added [CODE][/CODE]
alfa_8C is offline   Reply With Quote

Old   February 2, 2015, 16:43
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Antonio,

I moved your post from OF 1.6 ext on Ubuntu 12.10 (64 bit) compilation errors 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
wyldckat is offline   Reply With Quote

Old   February 3, 2015, 04:16
Default
  #3
Member
 
Antonio Liggieri
Join Date: Aug 2010
Posts: 66
Rep Power: 6
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 electrosin OpenFOAM Installation 39 July 1, 2014 07:55
Getting crazy with all the problems I have in OpenFoam Nicacio OpenFOAM Running, Solving & CFD 7 June 9, 2014 19:08
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) immortality Lounge 2 May 24, 2014 03:05
Trouble shooting about OpenFOAM installation in Ubuntu 12.04 Nait OpenFOAM Installation 2 December 12, 2012 11:20
OpenFOAM on non-English Ubuntu distribution fabian_roesler OpenFOAM 3 January 11, 2010 08:16


All times are GMT -4. The time now is 10:12.