CFD Online Discussion Forums

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

phsieh2005 December 27, 2009 06: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 07: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 19:50

Thanks Mattijs!

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

Happy New Year!

Pei

chiven December 29, 2009 21: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 04: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 04: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 06:41

Check your compilation line. Does it have in it

-fPIC -DLINUX -DLINUXI64

chiven December 30, 2009 07:27

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

Chiven

chiven December 30, 2009 20: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 22: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 07: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 15: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 20: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 21:06

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

Ahmed January 1, 2010 22: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 14: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 17: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 04: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 08: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 10:00

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

Ahmed January 3, 2010 11:39

it is a 68 Byts file, and its contents are

Pstream.C
IPread.C
OPwrite.C

LIB = $(FOAM_LIBBIN)/dummy/libPstream

these three files are available into the folder OpenFOAM/OpenFOAM-1.6.x/src/Pstream/dummy

Michael, I guess I understand what you mean, so if g++ cannot find these files it is because an environment variable or variables are not correctly defined.

After that failed compilation, I ran the foamInstallationTest utility, and there are critical variables that are incorrectly defined, here is the output
Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ahmed/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ahmed/OpenFOAM/ahmed-1.6.x yes no
$WM_THIRD_PARTY_DIR /home/ahmed/OpenFOAM/ThirdParty-1.6.x yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/ahmed/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt no yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt no no
$WM_DIR .../ahmed/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/ahmed-1.6.x/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Right now, I am a bit confused, these variables are assigned during the compilation based on the bashrc definitions and the settings.sh and no intervention from my side, what might have caused this to happen to me.
truly, I will be glad to receive your reply

Good luck to all, and thanks again

mwild January 3, 2010 11:50

The only thing in your listing that is strange is FOAM_APPBIN. What does it point to? But anyways, I would be very surprised if that was the reason...

To me it seems as if wmake wasn't able to correctly read/preprocess Make/{options,files}. What does $FOAM_SRC/Pstream/dummy/Make/$WM_OPTIONS contain? Does the file filesMacros exist in there, and what are its contents?

Michael

Ahmed January 3, 2010 13:06

I guess you are on the right track, the file filesMacros is an empty document (0 bytes)
Well it is not the only one, the files contained into the directory
$FOAM_SRC/Pstream/dummy/Make/$WM_OPTIONS are
1- dependencies 24B {dependencies up to date }
2- dependencyFiles 16B {DEPENDENCIES = }
3- dontIncludeDeps 0B
4- files 0B
5- filesMacros 0B
6- includeDeps 0B
7- localObjectFiles 17B {LOCAL_OBJECTS = }
8- objectFiles 11B {OBJECTS = }
9- options 0B
10- sourceFiles 10B {SOURCE = }
where the contents of the None Zero files is written between the curly braces


and here we have the env variables:-

ahmed@linux-z5ms:~> echo $FOAM_APPBIN
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt

ahmed@linux-z5ms:~> echo $FOAM_SITE_APPBIN
/home/ahmed/OpenFOAM/site/1.6.x/bin/linux64GccDPOpt

ahmed@linux-z5ms:~> echo $FOAM_USER_APPBIN
/home/ahmed/OpenFOAM/ahmed-1.6.x/applications/bin/linux64GccDPOpt

ahmed@linux-z5ms:~> echo $WM_DIR
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/wmake

ahmed@linux-z5ms:~> echo $FOAM_SRC
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/src

ahmed@linux-z5ms:~> echo $FOAM_SRC/Pstram/dummy/Make/$WM_OPTIONS
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/src/Pstram/dummy/Make/linux64GccDPOpt

chiven January 3, 2010 19:50

Hi, Mattijs, even I revise the tecioOptions file as
HTML Code:

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

The /Make/linuxIA64GccDPOpt/options file don't change and keep as
HTML Code:

# 1 "options"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "options"
# 1 "tecioOptions" 1
 
    TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32
# 15 "tecioOptions"
TECIO_INC =
TECIO_LIBS =
# 2 "options" 2
EXE_INC = $(TECIO_FLAGS) $(TECIO_INC)
 
LIB_LIBS = $(TECIO_LIBS)

But it is OK, I can use the OF-1.6, because I still keep this version. Thank you very much.

Chiven



Quote:

Originally Posted by mattijs (Post 241316)
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.


pizzaice January 29, 2010 14:54

Hi Everyone,

not sure whether this is related to the previous problems as I am very new to linux and compiling. I followed albertos manual to install OF1.6 on opensuse 11.2 but i get an error when compiling from git.

unfortunately i cannot comprehend where exactly the problem is located. could someone help me out?

here is the last bit of the log:
Code:

            -lspecie -lmeshTools -lOpenFOAM -lfiniteVolume -lOpenFOAM -liberty -ldl  -lm -o /home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/IFCLookUpTableGen
make[2]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/IFCLookUpTableGen'
make[2]: Entering directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
Making dependency list for source file mixtureAdiabaticFlameT.C
make[2]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[2]: Entering directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
SOURCE=mixtureAdiabaticFlameT.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude  -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/phi/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt \
            -lspecie -lOpenFOAM -liberty -ldl  -lm -o /home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT
make[2]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: Target `application' not remade because of errors.


cheers,

chris

David_010 February 9, 2010 04:37

Hi Ahmed

I have the same error than you when I try to compile

wmake libso finiteVolume

after add a new boundary condition patch. Have you solved this probelm?

Tankyou very much

David


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