CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

(x-post from 'bugs') mesquite-2.1.2 compile fix for newer gcc

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2012, 15:00
Default (x-post from 'bugs') mesquite-2.1.2 compile fix for newer gcc
Senior Member
kmooney's Avatar
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 14
kmooney is on a distinguished road
Hi everyone,

I've seen a lot of heartache around over trying to compile the Thirdparty stage 3 package mesquite-2.1.2 with newer gcc (4.6.x) versions. I was able to add a couple lines into the spec file that effectively patches the source code and allows a clean installation.

The key is in this file:

Add the following:
    find ./src/ObjectiveFunction -ls -type f -exec sed -i 's/size_t/std::size_t/g' {} \;

    find ./src/QualityMetric -ls -type f -exec sed -i 's/size_t/std::size_t/g' {} \;
immediately before this line:
I think this would be compatible with older compilers as well but I'm not sure. The mantis server is down so I can't currently submit a bug report. I'll try again later though.


kmooney is offline   Reply With Quote

Old   May 9, 2012, 18:32
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 21
philippose will become famous soon enough
Hi again,

Just posted an alternative patch in the original post regarding this topic in the "Bugs" section of the forum.

philippose is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thirdparty mesquite-2.1.2 compile fix for newer gcc kmooney OpenFOAM Bugs 3 May 10, 2012 10:27
Cmake cannot recognize gcc to compile ParaView CAVT OpenFOAM 3 July 27, 2010 21:38
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
Need Makefile for GCC in windows to compile UDFs Filipe Madureira FLUENT 2 December 28, 2005 17:08

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