CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compile new solver under SuSE 64bit OS (http://www.cfd-online.com/Forums/openfoam-solving/60493-compile-new-solver-under-suse-64bit-os.html)

hsieh September 7, 2005 15:51

Hi, I am trying to compile
 
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 September 7, 2005 20:51

Hi, I just tried the same t
 
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 September 8, 2005 09:57

Hi, It is still not clear t
 
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 September 8, 2005 11:56

Sorry about the long post. Af
 
Sorry about the long post. After installing some more c++ stuffs, this problem has been solved.

pei


All times are GMT -4. The time now is 20:49.