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

Error compiling 1.6.x on Fedora 12

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2010, 05:27
Unhappy Error compiling 1.6.x on Fedora 12
  #1
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
Hi all,
I'm trying to compile OpenFOAM 1.6.x on Fedora 12 x86_64. I got 1.6.x from Git repo and use the gcc compiler of Fedora

Code:
...
/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt \
             -lspecie -lOpenFOAM -liberty -ldl   -lm -o /Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/equilibriumCO
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/equilibriumCO] Error 1
make[2]: Leaving directory `/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumCO'
make[1]: *** [equilibriumCO] Error 2
make[2]: Entering directory `/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
Making dependency list for source file equilibriumFlameT.C
make[2]: Leaving directory `/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
make[2]: Entering directory `/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
SOURCE=equilibriumFlameT.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/Disk2/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/Disk2/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/Disk2/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/equilibriumFlameT.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/Disk2/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/Disk2/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/Disk2/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude   -fPIC Make/linux64GccDPOpt/equilibriumFlameT.o -L/Disk2/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt \
             -lspecie -lOpenFOAM -liberty -ldl   -lm -o /Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/equilibriumFlameT
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/equilibriumFlameT] Error 1
make[2]: Leaving directory `/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/equilibriumFlameT'
make[1]: *** [equilibriumFlameT] Error 2
linux64GccDPOpt/options:6: *** missing separator.  Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created
make[1]: *** [IFCLookUpTableGen] Error 1
linux64GccDPOpt/options:6: *** missing separator.  Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created
make[1]: *** [mixtureAdiabaticFlameT] Error 1
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/Disk2/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.
Infomation of Fedora gcc:

Code:
> gcc --version
gcc (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Anyone has tried to build on Fedora 12 yet ?

Thank you in advance,
vnpenguin is offline   Reply With Quote

Old   April 10, 2010, 06:15
Default
  #2
Member
 
MSR CHANDRA MURTHY
Join Date: Mar 2009
Posts: 33
Rep Power: 17
chandramurthy is on a distinguished road
I think cmake rules for this gcc version 4.4.x does not exist. use openfoam provided gcc 4.3.x compiler instead of inbuilt gcc 4.4.x. Change the setting.sh file accordingly. i am working in fedora 12 with daily updated and compiler version of 1.6.x. all is going well so far.
chandramurthy is offline   Reply With Quote

Old   April 10, 2010, 14:33
Default
  #3
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
Thank you,
With gcc-4.3.3 it's ok.
vnpenguin is offline   Reply With Quote

Old   April 11, 2010, 16:29
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 VNPenguin,

Since you dared me, I've solved the issue See this post for the solution: Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 post #11

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 12, 2010, 06:59
Default
  #5
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
vnpenguin,

can you please show me your settings.sh file, I want to see your settings, maybe It will help me to understand the installation.

Thanks,

dhoom
dhoom is offline   Reply With Quote

Old   April 12, 2010, 13:30
Thumbs up
  #6
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
Quote:
Originally Posted by dhoom View Post
vnpenguin,

can you please show me your settings.sh file, I want to see your settings, maybe It will help me to understand the installation.

Thanks,

dhoom
Hi,
The only thing changed in my settings.sh is the following line:
Code:
compilerInstall=System
Thanks to Bruno, I can build 1.6.x with Fedora compiler gcc 4.4.3 now
vnpenguin is offline   Reply With Quote

Old   July 23, 2012, 19:40
Question gcc Installation
  #7
Member
 
Join Date: Jan 2010
Posts: 44
Rep Power: 16
Argen is on a distinguished road
I met the similar problem, "linux64GccDPOpt/options:6: *** missing separator. Stop.", when I installed OpenFOAM 1.5 using gcc-4.5. Any idea to do with it?
Argen is offline   Reply With Quote

Old   July 24, 2012, 15:52
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quote:
Originally Posted by Argen View Post
I met the similar problem, "linux64GccDPOpt/options:6: *** missing separator. Stop.", when I installed OpenFOAM 1.5 using gcc-4.5. Any idea to do with it?
Edit the file "wmake/rules/linux64Gcc/general" and change the first line to this:
Code:
CPP        = cpp -traditional-cpp $(GFLAGS)
Uhm... as for Gcc 4.5... do you mean OpenFOAM 1.5, 1.5.x or 1.5-dev? The reason why I ask is shown here: http://openfoamwiki.net/index.php/In...ibility_Matrix - Gcc 4.5 is only compatible with 1.5-dev, if I'm not mistaken.
__________________
wyldckat 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
install openfoam in fedora Ahmed Khattab OpenFOAM Installation 32 September 23, 2011 12:11
Fedora 10 OpenFOAM15 philippose OpenFOAM Installation 7 February 18, 2009 05:37
STAR-CD 3.268in Fedora 8 Thomas Stockheim Siemens 3 April 28, 2008 04:43
Gambit in Fedora 8 fedora 8 FLUENT 4 November 23, 2007 14:59
FEDORA CORE and PARALLEL processing Tuks CFX 2 August 20, 2005 12:05


All times are GMT -4. The time now is 23:37.