CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compile new solver under SuSE 64bit OS (https://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 01:33.