|
[Sponsors] |
September 7, 2005, 16:51 |
Hi,
I am trying to compile
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
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 |
|
September 7, 2005, 21:51 |
Hi,
I just tried the same t
|
#2 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
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 |
|
September 8, 2005, 10:57 |
Hi,
It is still not clear t
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
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 ‘struct std::char_traits<wchar_t>’ /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 ‘off_type’ in ‘struct std::char_traits<wchar_t>’ /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 ‘std::basic_istringstream<wchar_t,> , std::allocator<wchar_t> >’: /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 ‘int_type’ in ‘struct std::char_traits<wchar_t>’ /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 ‘off_type’ in ‘struct std::char_traits<wchar_t>’ /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 ‘std::basic_ostringstream<wchar_t,> , std::allocator<wchar_t> >’: /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 ‘int_type’ in ‘struct std::char_traits<wchar_t>’ /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 ‘off_type’ in ‘struct std::char_traits<wchar_t>’ /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 ‘std::basic_stringstream<wchar_t,>, std::allocator<wchar_t> >’: /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 ‘int_type’ in ‘struct std::char_traits<wchar_t>’ /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 ‘off_type’ in ‘struct std::char_traits<wchar_t>’ /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:50: error: ‘pid_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:53: error: ‘pid_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:56: error: ‘pid_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:88: error: ‘mode_t’ has not been declared /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:91: error: ISO C++ forbids declaration of ‘mode_t’ with no type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:94: error: ‘mode_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:109: error: ‘off_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/OSspecific.H:112: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/regIOobject.H:71: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/VectorSpaceI.H: In function ‘Foam::scalar Foam::mag(const Foam::VectorSpace<form,>&)’: /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/VectorSpaceI.H:332: error: ‘::sqrt’ 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: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:59: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:62: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:79: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:91: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/clock.H:94: error: ‘time_t’ does not name a type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/cpuTime.H:57: error: field ‘startTime_’ has incomplete type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/cpuTime.H:58: error: field ‘lastTime_’ has incomplete type /home/phsieh/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/cpuTime.H:59: error: field ‘newTime_’ 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 ‘typename _Traits::pos_type std::basic_streambuf<_chart,>::seekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]’: /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 ‘typename _Traits::pos_type std::basic_streambuf<_chart,>::pubseekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]’ /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 ‘off_type’ in ‘struct std::char_traits<char>’ make: *** [Make/linuxAMD64Gcc4Opt/twoPhaseMixture.o] Error 1 pei |
|
September 8, 2005, 12:56 |
Sorry about the long post. Af
|
#4 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Sorry about the long post. After installing some more c++ stuffs, this problem has been solved.
pei |
|
|
|
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 | Fidelity CFD | 0 | July 4, 2007 11:53 |
OF 14 Compilation error SuSE 102 64bit | alberto | OpenFOAM Installation | 5 | May 15, 2007 04:27 |
CFX in 64bit | Nick | CFX | 4 | January 4, 2006 00:12 |
64bit compiler???? | BK | Siemens | 3 | May 22, 2005 22:26 |