CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   latest OpenFOAM-1.6.x from git failed to compile (http://www.cfd-online.com/Forums/openfoam-bugs/71346-latest-openfoam-1-6-x-git-failed-compile.html)

phsieh2005 December 27, 2009 07:17

latest OpenFOAM-1.6.x from git failed to compile
 
Hi,

I downloaded latest OF-1.6.x from git today. It failed to complete compilation on openSUSE 11.1 (and 11.2) 64 bit OS.

Two failed areas are (the text is too long, so I deleted some lines):
-----------------------------
`/home/phsieh/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc'
SOURCE=auxdata.cpp ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32 -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/auxdata.o
In file included from auxdata.cpp:40:
GLOBAL.h:5038: warning: use of old-style cast
In file included from auxdata.cpp:43:
ALLOC.h: In function ‘void nonExceptionDelete(T*&)’:
ALLOC.h:175: warning: use of old-style cast
In file included from auxdata.cpp:51:
SET.h: In function ‘Boolean_t AddToSet(_Set_a*, SetIndex_t, Boolean_t)’:
SET.h:153: warning: use of old-style cast
SET.h: In function ‘Boolean_t InSet(_Set_a*, SetIndex_t)’:
SET.h:196: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataIsValidNameChar(char, Boolean_t)’:
auxdata.cpp:90: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataIsValidName(const char*)’:
auxdata.cpp:114: warning: use of old-style cast
auxdata.cpp: In function ‘void AuxDataItemDealloc(AuxDataItem_s**)’:
auxdata.cpp:139: warning: use of old-style cast
auxdata.cpp: In function ‘AuxDataItem_s* AuxDataItemAlloc(const char*, ArbParam_t, AuxDataType_e, Boolean_t)’:
auxdata.cpp:186: warning: use of old-style cast
auxdata.cpp:207: error: cast from ‘char*’ to ‘ArbParam_t’ loses precision
auxdata.cpp:211: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataItemListItemDestructor(void*, ArbParam_t)’:
auxdata.cpp:239: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataItemDestructor(void*, ArbParam_t)’:
auxdata.cpp:266: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataItemDuplicator(void*, void*, ArbParam_t)’:
auxdata.cpp:298: warning: use of old-style cast
auxdata.cpp: In function ‘_AuxData_s* AuxDataCopy(_AuxData_s*, Boolean_t)’:
auxdata.cpp:379: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataGetItemIndex(_AuxData_s*, const char*, LgIndex_t*)’:
auxdata.cpp:476: warning: use of old-style cast
auxdata.cpp: In function ‘void AuxDataGetItemByIndex(_AuxData_s*, LgIndex_t, const char**, ArbParam_t*, AuxDataType_e*, Boolean_t*)’:
auxdata.cpp:580: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataGetItemByName(_AuxData_s*, const char*, ArbParam_t*, AuxDataType_e*, Boolean_t*)’:
auxdata.cpp:639: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataGetBooleanItemByName(_AuxData_s*, const char*, Boolean_t*, AuxDataType_e*, Boolean_t*)’:
auxdata.cpp:678: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataSetItem(_AuxData_s*, const char*, ArbParam_t, AuxDataType_e, Boolean_t)’:
auxdata.cpp:731: warning: use of old-style cast
auxdata.cpp: In function ‘Boolean_t AuxDataDeleteItemByName(_AuxData_s*, const char*)’:
auxdata.cpp:803: warning: use of old-style cast
auxdata.cpp:803: warning: use of old-style cast
auxdata.cpp: At global scope:
auxdata.cpp:76: warning: ‘AuxDataMutex’ defined but not used
make[3]: *** [Make/linux64GccDPOpt/auxdata.o] Error 1
********************
SOURCE=dataio4.cpp ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32 -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dataio4.o
In file included from dataio4.cpp:39:
GLOBAL.h:5038: warning: use of old-style cast
In file included from dataio4.cpp:42:
ALLOC.h: In function ‘void nonExceptionDelete(T*&)’:
ALLOC.h:175: warning: use of old-style cast
ALLOC.h:175: warning: use of old-style cast
In file included from dataio4.cpp:55:
SET.h: In function ‘Boolean_t AddToSet(_Set_a*, SetIndex_t, Boolean_t)’:
SET.h:153: warning: use of old-style cast
SET.h: In function ‘Boolean_t InSet(_Set_a*, SetIndex_t)’:
SET.h:196: warning: use of old-style cast
dataio4.cpp: In function ‘char FilterFloatChar(float)’:
dataio4.cpp:108: warning: use of old-style cast
dataio4.cpp: In function ‘double GetNextValue(FileStream_s*, FieldDataType_e, double, double, Boolean_t*)’:
dataio4.cpp:123: warning: use of old-style cast
dataio4.cpp:205: warning: use of old-style cast
dataio4.cpp: In function ‘LgIndex_t GetNextI(FileStream_s*, Boolean_t*)’:
dataio4.cpp:219: warning: use of old-style cast
dataio4.cpp: In function ‘LgIndex_t GetIoFileInt(FileStream_s*, short int, LgIndex_t, LgIndex_t, Boolean_t*)’:
dataio4.cpp:243: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReallocString(char**, LgIndex_t)’:
dataio4.cpp:293: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInString(FileStream_s*, short int, int, char**, Boolean_t)’:
dataio4.cpp:351: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadDoubleBlock(FileStream_s*, Boolean_t, double*, LgIndex_t, LgIndex_t, Boolean_t*)’:
dataio4.cpp:472: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadFloatBlock(FileStream_s*, Boolean_t, float*, LgIndex_t, LgIndex_t, Boolean_t*)’:
dataio4.cpp:496: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadBitBlock(FileStream_s*, Boolean_t, Byte_t*, LgIndex_t, Boolean_t*)’:
dataio4.cpp:527: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadByteBlock(FileStream_s*, Boolean_t, Byte_t*, HgIndex_t, HgIndex_t, Boolean_t*)’:
dataio4.cpp:547: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadInt16Block(FileStream_s*, Boolean_t, Int16_t*, HgIndex_t, HgIndex_t, Boolean_t*)’:
dataio4.cpp:569: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadInt16BlockToInt32(FileStream_s*, Boolean_t, Int32_t*, HgIndex_t, HgIndex_t, Boolean_t*)’:
dataio4.cpp:592: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadInt32Block(FileStream_s*, Boolean_t, Int32_t*, HgIndex_t, HgIndex_t, Boolean_t*)’:
dataio4.cpp:629: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadPureBlock(FileStream_s*, Boolean_t, void*, FieldDataType_e, HgIndex_t, HgIndex_t, Boolean_t*)’:
dataio4.cpp:653: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadBlock(FileStream_s*, _FieldData_a*, Boolean_t, FieldDataType_e, HgIndex_t, HgIndex_t, Boolean_t*)’:
dataio4.cpp:739: warning: use of old-style cast
dataio4.cpp: In function ‘void ReadClassicOrderedCCBlock(FileStream_s*, _FieldData_a*, FieldDataType_e, LgIndex_t, LgIndex_t, LgIndex_t, Boolean_t*)’:
dataio4.cpp:800: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInDataFileTypeTitleAndVarNames(FileStream_s*, short int, char**, DataFileType_e*, int*, _StringList_s**)’:
dataio4.cpp:854: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInPresetZoneColor(FileStream_s*, short int, ZoneSpec_s*)’:
dataio4.cpp:970: warning: use of old-style cast
dataio4.cpp: In function ‘void ConvertCommonTimeToSolutionTime(ZoneSpec_s*)’:
dataio4.cpp:1015: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInZoneHeader(FileStream_s*, short int, ZoneSpec_s*, _Set_a*, EntIndex_t, Boolean_t*, LgIndex_t*)’:
dataio4.cpp:1045: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInCustomLabels(FileStream_s*, short int, Boolean_t, _StringList_s**)’:
dataio4.cpp:1391: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInUserRec(FileStream_s*, short int, int, char**)’:
dataio4.cpp:1447: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInAuxData(FileStream_s*, short int, _AuxData_s*)’:
dataio4.cpp:1481: warning: use of old-style cast
dataio4.cpp:1506: error: cast from ‘char*’ to ‘ArbParam_t’ loses precision
dataio4.cpp:1508: warning: use of old-style cast
dataio4.cpp: In function ‘void GetZoneAttachment(FileStream_s*, short int, EntIndex_t*, Boolean_t*, Boolean_t*)’:
dataio4.cpp:1530: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadMacroFunctionCommand(FileStream_s*, short int, Boolean_t, char**)’:
dataio4.cpp:1559: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInGeometry(FileStream_s*, short int, Boolean_t, Geom_s*, LgIndex_t)’:
dataio4.cpp:1585: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t ReadInText(FileStream_s*, short int, Boolean_t, Text_s*, LgIndex_t)’:
dataio4.cpp:1850: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t CompareVersion(float, char*, Boolean_t)’:
dataio4.cpp:2042: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t GetDoubleVersion(char*, float*, Boolean_t)’:
dataio4.cpp:2076: warning: use of old-style cast
dataio4.cpp: In function ‘short int GetNewInputVersion(FileStream_s*)’:
dataio4.cpp:2095: warning: use of old-style cast
dataio4.cpp: In function ‘short int GetInputVersion(FileStream_s*)’:
dataio4.cpp:2152: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryByteBlock(FileStream_s*, const Byte_t*, HgIndex_t)’:
dataio4.cpp:2224: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryByte(FileStream_s*, Byte_t)’:
dataio4.cpp:2239: warning: use of old-style cast
dataio4.cpp:2239: warning: use of old-style cast
dataio4.cpp: In function ‘void CopyAndReverseUnalignedBytes(T*, const Byte_t*)’:
dataio4.cpp:2253: warning: use of old-style cast
dataio4.cpp:2253: warning: use of old-style cast
dataio4.cpp: In function ‘void CopyUnalignedBytes(T*, const Byte_t*)’:
dataio4.cpp:2265: warning: use of old-style cast
dataio4.cpp:2265: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryDataUnaligned(FileStream_s*, const Byte_t*, Boolean_t)’:
dataio4.cpp:2277: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryInt16(FileStream_s*, Int16_t)’:
dataio4.cpp:2301: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryInt32(FileStream_s*, Int32_t)’:
dataio4.cpp:2315: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryBlockUnaligned(FileStream_s*, const Byte_t*, HgIndex_t, Boolean_t)’:
dataio4.cpp:2328: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryInt16BlockUnaligned(FileStream_s*, Byte_t*, HgIndex_t, Boolean_t)’:
dataio4.cpp:2372: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryInt32BlockUnaligned(FileStream_s*, Byte_t*, HgIndex_t, Boolean_t)’:
dataio4.cpp:2394: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryReal(FileStream_s*, double, FieldDataType_e)’:
dataio4.cpp:2412: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteFieldDataType(FileStream_s*, FieldDataType_e, Boolean_t)’:
dataio4.cpp:2456: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryChecksumByteValues(FileStream_s*, const Byte_t*, HgIndex_t)’:
dataio4.cpp:2487: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryFieldDataBlockOfType(FileStream_s*, _FieldData_a*, LgIndex_t, LgIndex_t)’:
dataio4.cpp:2511: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryFieldDataBlockOfTypeBit(FileStream_s*, _FieldData_a*, LgIndex_t, LgIndex_t)’:
dataio4.cpp:2539: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteBinaryFieldDataBlock(FileStream_s*, _FieldData_a*, LgIndex_t, LgIndex_t)’:
dataio4.cpp:2576: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t WriteASCIIFieldDataValue(FileStream_s*, _FieldData_a*, LgIndex_t, SmInteger_t)’:
dataio4.cpp:2598: warning: use of old-style cast
dataio4.cpp:2606: warning: unused variable ‘AsciiValue’
dataio4.cpp: In function ‘Boolean_t WriteCCFieldDataBlock(FileStream_s*, _FieldData_a*, Boolean_t, LgIndex_t, LgIndex_t, LgIndex_t, Boolean_t, SmInteger_t)’:
dataio4.cpp:2659: warning: use of old-style cast
dataio4.cpp:2743: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t DumpDatafileString(FileStream_s*, const char*, Boolean_t)’:
dataio4.cpp:2752: warning: use of old-style cast
dataio4.cpp: In function ‘void WriteAsciiColor(FILE*, ColorIndex_t)’:
dataio4.cpp: In function ‘void WriteAsciiTextGeomBasics(FILE*, CoordSys_e, Boolean_t, EntIndex_t, ColorIndex_t, Scope_e, Boolean_t, Boolean_t, const AnchorPos_u*, double)’:
dataio4.cpp:2822: warning: use of old-style cast
dataio4.cpp: In function ‘bool DumpGeometry(FileStream_s*, const Geom_s*, Boolean_t, Boolean_t)’:
dataio4.cpp:2886: warning: use of old-style cast
dataio4.cpp: In function ‘bool DumpText(FileStream_s*, const Text_s*, Boolean_t, Boolean_t)’:
dataio4.cpp:3129: warning: use of old-style cast
dataio4.cpp: In function ‘Boolean_t DumpCustomAxisLabels(FileStream_s*, Boolean_t, _StringList_s*)’:
dataio4.cpp:3286: warning: use of old-style cast
make[3]: *** [Make/linux64GccDPOpt/dataio4.o] Error 1
make[3]: Target `libso' not remade because of errors.

mattijs December 29, 2009 08:50

Hi Pei,

I pushed a change to 1.6.x so it now checks for linux64 before linux. (the problem was that tecio thought it was being compiled for 32bit). It should now have an additional
-DLINUX64 on the compilation line.

Thanks for reporting,

Mattijs

phsieh2005 December 29, 2009 20:50

Thanks Mattijs!

I got the latest from git and it worked without a problem.

Happy New Year!

Pei

chiven December 29, 2009 22:06

Hi, Mattijs,

The OF-1.6.x is still failed to be recompiled in IA64 Linux system. Errors prompt like

Quote:

dataio4.cpp: In function 'Boolean_t DumpCustomAxisLabels(FileStream_s*, Boolean_t, _StringList_s*)':
dataio4.cpp:3286: warning: use of old-style cast
dataio4.cpp:3291: warning: use of old-style cast
dataio4.cpp:3291: warning: use of old-style cast
dataio4.cpp:3305: warning: use of old-style cast
dataio4.cpp:3311: warning: use of old-style cast
dataio4.cpp:3311: warning: use of old-style cast
make[3]: *** [Make/linuxIA64GccDPOpt/dataio4.o] Error 1
make[3]: Target `libso' not remade because of errors.
make: Target `application' not remade because of errors.
Thanks and happy new year.
chiven

mattijs December 30, 2009 05:09

In the $FOAM_UTILITIES/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/Make/tecioOptions can you try adding a line for linuxIA64:

Code:

#if defined(linux64)

    TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEENUM -DTHREED -U_WIN32

#elif defined(linuxIA64)

    TECIO_FLAGS = -DMAKEARCHIVE -DLINUX DLINUXI64 -DUSEENUM -DTHREED -U_WIN32

#elif defined(linux)

    TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32

#else

#  error architecture not supported for compiling tecio.

#endif

Can you let me know if this works.

Thanks,

Mattijs

chiven December 30, 2009 05:25

Hi, Mattijs,
I added the line for linuxIA64, and recompiled OF-1.6.x, but still failed. Sorry about that.
Best regards,
Chiven

mattijs December 30, 2009 07:41

Check your compilation line. Does it have in it

-fPIC -DLINUX -DLINUXI64

chiven December 30, 2009 08:27

OK, I shall check it tomorrow. Now, I go back my dormitory. Thanks.

Chiven

chiven December 30, 2009 21:45

Hi, Mattijs, I check the compilation line, "-fPIC -DLINUX -DLINUXI64" is NOT contained in the compilation line.
Best regards,
Chiven

Code:

SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/1.6.x/' -e 's/BUILD_STRING/1.6.x-0155d7bce17e/' $SOURCE > Make/linuxIA64GccDPOpt/global.C; g++ -DlinuxIA64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-30 -I/home/g2/e090012/OpenFOAM/ThirdParty-1.6.x/zlib-1.2.3 -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude  -fPIC -c Make/linuxIA64GccDPOpt/global.C -o Make/linuxIA64GccDPOpt/global.o
...
+ wmake libso tecio/tecsrc
make[3]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc'
SOURCE=auxdata.cpp ;  g++ -DlinuxIA64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-30 -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32  -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxIA64GccDPOpt/auxdata.o
In file included from auxdata.cpp:40:
GLOBAL.h:5038: warning: use of old-style cast
GLOBAL.h:5057: warning: use of old-style cast
GLOBAL.h:5071: warning: use of old-style cast
GLOBAL.h:5085: warning: use of old-style cast
In file included from auxdata.cpp:43:
ALLOC.h: In function 'void nonExceptionDelete(T*&)':
ALLOC.h:175: warning: use of old-style cast
ALLOC.h:175: warning: use of old-style cast
In file included from auxdata.cpp:51:
SET.h: In function 'Boolean_t AddToSet(_Set_a*, SetIndex_t, Boolean_t)':
SET.h:153: warning: use of old-style cast
SET.h:155: warning: use of old-style cast
SET.h:158: warning: use of old-style cast
SET.h: In function 'Boolean_t InSet(_Set_a*, SetIndex_t)':
...
auxdata.cpp: In function 'Boolean_t AuxDataDeleteItemByName(_AuxData_s*, const char*)':
auxdata.cpp:803: warning: use of old-style cast
auxdata.cpp:803: warning: use of old-style cast
auxdata.cpp: At global scope:
auxdata.cpp:76: warning: 'AuxDataMutex' defined but not used
make[3]: *** [Make/linuxIA64GccDPOpt/auxdata.o] Error 1
SOURCE=dataio4.cpp ;  g++ -DlinuxIA64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-30 -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32  -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxIA64GccDPOpt/dataio4.o
...


Ahmed December 30, 2009 23:09

Quote:

Originally Posted by phsieh2005 (Post 241130)
Thanks Mattijs!

I got the latest from git and it worked without a problem.

Happy New Year!

Pei


Hi Pei-Ying


I understand from your post that you successfully compiled OpenFOAM on open suse 11.2
I am trying to do the same, but the Allwmake displays a long list of error messages and the compilation is aborted. All error messages refer to 'GLIBCXX_3.4.11 not found and it is required by....'
it seems that all OpenFOAM modules refer to this GLIBCXX_3.4.11
Could you please detail how you solved this problem? (Yes, I have Open SUSE 11.2) and using google lead to no solution so far.

Thanks and good luck to all

Happy Holidays to all

........................................... Open Source For Ever ................................

phsieh2005 December 31, 2009 08:35

Hi,

There is already a thread on this. But, basically, I did the following to resolve the problem:

cd /home/USER_NAME/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64
sudo mv libstdc++.so.6 libstdc++.so.6.orig
sudo ln -s /usr/lib64/libstdc++.so.6.0.10 libstdc++.so.6

sudo mv libgcc_s.so.1 libgcc_s.so.1.orig
sudo ln -s /lib64/libgcc_s.so.1

If it still failed. Try to install gcc43 to see if it helps.

Pei

Ahmed December 31, 2009 16:18

Quote:

Originally Posted by phsieh2005 (Post 241194)
Hi,

There is already a thread on this. But, basically, I did the following to resolve the problem:

cd /home/USER_NAME/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64
sudo mv libstdc++.so.6 libstdc++.so.6.orig
sudo ln -s /usr/lib64/libstdc++.so.6.0.10 libstdc++.so.6

sudo mv libgcc_s.so.1 libgcc_s.so.1.orig
sudo ln -s /lib64/libgcc_s.so.1

If it still failed. Try to install gcc43 to see if it helps.

Pei

Hi Pei-Ying
I remember seeing that post, it is just I cannot locate it, so I am following your post, the last step seems to be incomplete, what is the name of the soft link you are creating, could you check that with your notes
Thanks a lot

Ahmed January 1, 2010 21:48

Open SUSE 11.2 and OpenFOAM, getting rid of (GLIBCXX_3.4.11 not found error message)
 
using Yast, I was able to search for libstdc++ on my computer, checking the technical data for each one, I finally found that libstdc++44 provides this GLIBCXX_3.4.11 (/usr/lib64/libstdc++.so.6 and /usr/lib64/libstdc++.so.6.0.12),

so here are the steps I followed:-

1- cd OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64
2- mv libstdc++.so.6 libstdc++.so.6.original
3- ln -s /usr/lib64/libstdc++.so.6 libstdc++.so.6

Now when I start compiling OpenFOAM I do not get this dreadful error message. A step forward better than yesterday.

To compile the OpenFOAM, I have to run another script, i.e. Allwmake, here is what I do:-
1- cd OpenFOAM
2- cd OpenFOAM-1.6.x
3- ./Allwmake > error.log

This last line is supposed to collect all messages produced during compilation (so I can check what other errors are being produced and trying to solve them)
But this does not happen, the file collects parts of the messages but not all.
I need to read all the messages
How could I modify step 3 in order to collect every thing that appears on the terminal window
Could you please try and help me
I will appreciate any hints
Thank you and Good luck to all
May the year 2010 be happier than 2009 for all


................... Open Source for ever ..............

lin January 1, 2010 22:06

./Allwmake > error.log 2>&1 &

Ahmed January 1, 2010 23:17

Quote:

Originally Posted by lin (Post 241256)
./Allwmake > error.log 2>&1 &

Thanks Lin, I got a better answer from a good samaritan out there, here it is

3- nohup ./Allwmake
that will create a file called nohup.out

Thanks and good luck to all

mattijs January 2, 2010 15:17

Hi Chiven,

you can try moving the linuxIA64 clause to be the first one in the tecioOptions file.

The tecioOptions file gets included into the Make/options file. The result of this gets written to the Make/linuxIA64XXX/options file. Use this to see which options are being used.

Ahmed January 2, 2010 18:19

Compiling OpenFoam on OpenSUSE 11.2 64 bits
 
The following is a repeated sample of the error messages I got when I run the Allwmake

/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [OpenFOAM.out] Error 1
make[2]: Leaving directory `/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.

1- Is there an explanation to Error 1 or Error 2 or to why ld cannot find OpenFOAM ?
2- Is there a missing file on OpenSUSE11.2 ?

Hints will be appreciatted

Good Luck to all

...................................... Open Source for ever ...............................................

mwild January 3, 2010 05:18

Quote:

Originally Posted by Ahmed (Post 241320)
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [OpenFOAM.out] Error 1
make[2]: Leaving directory `/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.

This probably means that you missed the actual error much further up in the log: libOpenFOAM.so failed to compile and link. To see the problem in isolation, try the following

Code:

wmake libso $FOAM_SRC/OpenFOAM
Michael

Ahmed January 3, 2010 09:10

Hello Michael
Thanks a lot for your prompt reply. First, here is the out put from the command
ahmed@linux-z5ms:~/OpenFOAM/OpenFOAM-1.6.x> wmake libso $FOAM_SRC/OpenFOAM
g++: no input files
make: *** [libNULL.so] Error 1

I am not sure why or how g++ is returning the no input file message. I checked the $FOAM_SRC/OpenFOAM folder and it is full of subfolders and xxx.c files

I looked again the log file, and here is the first occurence of this same error message

+ wmake libso ParMGridGen-1.0/MGridGen/Lib
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libMGridGen.so' is up to date.
+ wmakePrintBuild -check
version changed from previous build
+ /bin/rm -f 'OpenFOAM/Make/linux64GccDPOpt/global.?'
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude OSspecific/POSIX
+ Pstream/Allwmake
+ wmake libso dummy
g++: no input files
make: *** [libNULL.so] Error 1

and the other error messages have the same pattern, i.e.,g++:no input file
What do you think?


mwild January 3, 2010 11:00

What does the file $FOAM_SRC/Pstream/dummy/Make/files look like?


All times are GMT -4. The time now is 17:36.