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

OpenFOAM 1.7 - openSUSE 11.3 - gcc 4.5.0

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 27, 2010, 00:54
Default OpenFOAM 1.7 - openSUSE 11.3 - gcc 4.5.0
  #1
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Hello,

I've been trying to compile OpenFOAM 1.7 on openSUSE 11.3 - 64 bit (RC1, since the stable is not out yet) for testing purposes. This distributions comes with gcc 4.5.0.

The compile process fails always due to the same error:

linux64GccDPOpt/options:6: *** Missing separator. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created

OpenFOAM 1.7 compiles without problems on openSUSE 11.2.

Any suggestion or similar experience?

Thanks
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   June 27, 2010, 02:16
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
Hi Alberto,

although I only compiled OpenFOAM 1.6.x on OpenSUSE 11.3RC, I think it's the same solution here:

One has to add a parameter "-P" to the g++ compiler. I have done this by editing the "~/OpenFOAM/OpenFOAM-1.6.x/wmake/rules/linux64Gcc/general" file, I think. The GFLAGS settings become:
GFLAGS = -D$(WM_ARCH) -DWM_$(WM_PRECISION_OPTION) -P

Well, I had to remove the OpenSUSE 11.3RC again because of trouble with the graphics driver.

Martin
MartinB is offline   Reply With Quote

Old   June 27, 2010, 02:28
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Thanks, I'll try and let you know.

What driver problem? I just fixed one (which will be corrected in the final release too).
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   June 27, 2010, 02:41
Default
  #4
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
About the driver problem: I were not able to install the proprietary NVIDIA driver, and the open nouveou driver was too slow and too buggy to display anything useful in Paraview.

More hints about a solution can be found here:
http://forums.opensuse.org/get-help-...ia-driver.html

But I were running out of time to get it done... and OpenSUSE 11.2 works fine...

Martin
MartinB is offline   Reply With Quote

Old   June 27, 2010, 03:10
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Your solution works perfectly. Thank you.

Just a clarification: the -P option has to be added to

~/OpenFOAM/OpenFOAM-1.7.0/wmake/rules/General/general

About the nVidia driver, yes, in my case adding "nomodeset" to grub (permanently in /boot/grub/menu.lst at the end of the kernel line) fixed the problem, and I had the weekend to work on it :-)

I'm testing 11.3 because of some nice hardware support feature it has and for the updated KDE, and with your help, also OpenFOAM works on it :-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods

Last edited by alberto; June 28, 2010 at 03:28.
alberto is offline   Reply With Quote

Old   June 28, 2010, 03:19
Default
  #6
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
I would say this is a bug and needs to be fixed, this problem has been around for a while.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   June 28, 2010, 03:30
Default
  #7
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by l_r_mcglashan View Post
I would say this is a bug and needs to be fixed, this problem has been around for a while.
Technically we are talking about unsupported platforms, but yes, I agree. I'll report it in the bug forum.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   June 28, 2010, 11:17
Default
  #8
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
We've added -traditional-cpp to the cpp rules for all linux platforms. If you re-get the packs it should be in there. Please let us know if it doesn't work.

Thanks,

Mattijs
mattijs is offline   Reply With Quote

Old   June 28, 2010, 12:37
Default
  #9
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
It fixes the problem on openSUSE 11.3 RC1.

Thanks.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   June 29, 2010, 06:20
Default
  #10
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
Cheers, the installation runs smoothly on Fedora 12 and 13.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   July 28, 2010, 06:14
Default -P option
  #11
New Member
 
Jacques
Join Date: Oct 2009
Posts: 15
Rep Power: 7
jackpap is on a distinguished road
What is this -P option for. Do you think it would disrupt compilation with other versions of gcc ? Is there not a way of putting this option in the linux64gcc folder?
jackpap is offline   Reply With Quote

Old   July 28, 2010, 06:41
Default
  #12
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
The -P option should have the same effect as the -traditional-cpp flag.
mattijs is offline   Reply With Quote

Old   July 28, 2010, 11:59
Default
  #13
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by jackpap View Post
What is this -P option for. Do you think it would disrupt compilation with other versions of gcc ? Is there not a way of putting this option in the linux64gcc folder?
Hi, you do not -P anymore, since the compile options have been modified in OF 1.7.x and made available via the git repository.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto 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 installation on OpenSuse 11.1 Bufacchi OpenFOAM Installation 1 June 15, 2010 19:55
OpenFOAM Live USB based on openSUSE 11.1 created with SUSE Studio alberto OpenFOAM 40 May 23, 2010 16:15
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 14:06
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 06:28
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 11:58.