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

Compile new solver under SuSE 64bit OS

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 7, 2005, 15:51
Default Hi, I am trying to compile
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

I am trying to compile a new interFoam solver (actually, I only added inlet velocity as a function of time in the solver) under SuSE 64-bit 9.3 pro. I copied all the source code under interFoam, renamed interFoam.C to interFoamInlet.C. Modified files under Make. Then, typed wmake to compile - it failed.

I did exactly the same thing on a Fedora Core 3 32-bit OS and the new solver was built successfully.

Any suggestion? Thanks!

pei
hsieh is offline   Reply With Quote

Old   September 7, 2005, 20:51
Default Hi, I just tried the same t
  #2
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

I just tried the same thing on a Fedora Core 4_64 system. Compilation went through without a problem. There is something wrong with my SuSE_64 system.

Pei
hsieh is offline   Reply With Quote

Old   September 8, 2005, 09:57
Default Hi, It is still not clear t
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

It is still not clear to me why this SuSE_64 is giving me trouble (while the FC4_64 is no problem). It will be highly appreciated if someone can point to me a direction. Here are part of the error message (looked like there is some problem with gcc):

make: Nothing to be done for `allFiles'.
make: `Make/linuxAMD64Gcc4Opt/dependencies' is up to date.

SOURCE_DIR=incompressibleTwoPhaseMixture
SOURCE=incompressibleTwoPhaseMixture/twoPhaseMixture.C ; g++ -m64 -DlinuxAMD64 -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -IincompressibleTwoPhaseMixture -IinterfaceProperties -IinterfaceProperties/gammaContactAngle -I/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/cfdTools/incompressible -I/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/cfdTools/general/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/transportModels -I/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/movingFvMesh/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/linuxAMD64Gcc4Opt/twoPhaseMixture.o

&euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/bits/sstream.tcc:147: error: no type named &euro;&tilde;off_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream: In instantiation of &euro;&tilde;std::basic_istringstream<wchar_t,> , std::allocator<wchar_t> >&euro;&trade;:
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/bits/sstream.tcc:231: instantiated from here
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream:285: error: no type named &euro;&tilde;int_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream:287: error: no type named &euro;&tilde;off_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream: In instantiation of &euro;&tilde;std::basic_ostringstream<wchar_t,> , std::allocator<wchar_t> >&euro;&trade;:
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/bits/sstream.tcc:232: instantiated from here
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream:398: error: no type named &euro;&tilde;int_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream:400: error: no type named &euro;&tilde;off_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream: In instantiation of &euro;&tilde;std::basic_stringstream<wchar_t,>, std::allocator<wchar_t> >&euro;&trade;:
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/bits/sstream.tcc:233: instantiated from here
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream:511: error: no type named &euro;&tilde;int_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/sstream:513: error: no type named &euro;&tilde;off_type&euro;&trade; in &euro;&tilde;struct std::char_traits<wchar_t>&euro;&trade;
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:50: error: &euro;&tilde;pid_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:53: error: &euro;&tilde;pid_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:56: error: &euro;&tilde;pid_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:88: error: &euro;&tilde;mode_t&euro;&trade; has not been declared
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:91: error: ISO C++ forbids declaration of &euro;&tilde;mode_t&euro;&trade; with no type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:94: error: &euro;&tilde;mode_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:109: error: &euro;&tilde;off_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:112: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/regIOobject.H:71: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/VectorSpaceI.H: In function &euro;&tilde;Foam::scalar Foam::mag(const Foam::VectorSpace<form,>&)&euro;&trade;:
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/VectorSpaceI.H:332: error: &euro;&tilde;::sqrt&euro;&trade; has not been declared
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H: At global scope:
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:56: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:59: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:62: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:79: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:91: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:94: error: &euro;&tilde;time_t&euro;&trade; does not name a type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/cpuTime.H:57: error: field &euro;&tilde;startTime_&euro;&trade; has incomplete type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/cpuTime.H:58: error: field &euro;&tilde;lastTime_&euro;&trade; has incomplete type
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/cpuTime.H:59: error: field &euro;&tilde;newTime_&euro;&trade; has incomplete type
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/streambuf: In member function &euro;&tilde;typename _Traits::pos_type std::basic_streambuf<_chart,>::seekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]&euro;&trade;:
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/streambuf:243: instantiated from &euro;&tilde;typename _Traits::pos_type std::basic_streambuf<_chart,>::pubseekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]&euro;&trade;
/home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OStringStream.H:104: instantiated from here
/home/phsieh/OpenFOAM/linuxAMD64/gcc-4.0.1/bin/../lib/gcc/x86_64-unknown-linux-g nu/4.0.1/../../../../include/c++/4.0.1/streambuf:590: error: no type named &euro;&tilde;off_type&euro;&trade; in &euro;&tilde;struct std::char_traits<char>&euro;&trade;
make: *** [Make/linuxAMD64Gcc4Opt/twoPhaseMixture.o] Error 1

pei
hsieh is offline   Reply With Quote

Old   September 8, 2005, 11:56
Default Sorry about the long post. Af
  #4
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Sorry about the long post. After installing some more c++ stuffs, this problem has been solved.

pei
hsieh 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
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 sponiar OpenFOAM Running, Solving & CFD 3 February 26, 2008 07:31
WinXP 64bit Stephan NUMECA 0 July 4, 2007 10:53
OF 14 Compilation error SuSE 102 64bit alberto OpenFOAM Installation 5 May 15, 2007 03:27
CFX in 64bit Nick CFX 4 January 4, 2006 00:12
64bit compiler???? BK CD-adapco 3 May 22, 2005 21:26


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