|
[Sponsors] |
latest OpenFOAM-1.6.x from git failed to compile |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 27, 2009, 06:17 |
latest OpenFOAM-1.6.x from git failed to compile
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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. |
|
December 29, 2009, 07:50 |
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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 |
|
December 29, 2009, 19:50 |
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Thanks Mattijs!
I got the latest from git and it worked without a problem. Happy New Year! Pei |
|
December 29, 2009, 21:06 |
|
#4 | |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Mattijs,
The OF-1.6.x is still failed to be recompiled in IA64 Linux system. Errors prompt like Quote:
chiven |
||
December 30, 2009, 04:09 |
|
#5 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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 Thanks, Mattijs |
|
December 30, 2009, 04:25 |
|
#6 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Mattijs,
I added the line for linuxIA64, and recompiled OF-1.6.x, but still failed. Sorry about that. Best regards, Chiven |
|
December 30, 2009, 06:41 |
|
#7 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Check your compilation line. Does it have in it
-fPIC -DLINUX -DLINUXI64 |
|
December 30, 2009, 07:27 |
|
#8 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
OK, I shall check it tomorrow. Now, I go back my dormitory. Thanks.
Chiven |
|
December 30, 2009, 20:45 |
|
#9 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
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 ... |
|
December 30, 2009, 22:09 |
|
#10 | |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
Quote:
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 ................................ |
||
December 31, 2009, 07:35 |
|
#11 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
December 31, 2009, 15:18 |
|
#12 | |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
Quote:
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 |
||
January 1, 2010, 20:48 |
Open SUSE 11.2 and OpenFOAM, getting rid of (GLIBCXX_3.4.11 not found error message)
|
#13 |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
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 .............. |
|
January 1, 2010, 21:06 |
|
#14 |
Senior Member
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17 |
./Allwmake > error.log 2>&1 &
|
|
January 1, 2010, 22:17 |
|
#15 |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
||
January 2, 2010, 14:17 |
|
#16 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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. |
|
January 2, 2010, 17:19 |
Compiling OpenFoam on OpenSUSE 11.2 64 bits
|
#17 |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
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 ............................................... |
|
January 3, 2010, 04:18 |
|
#18 | |
Member
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17 |
Quote:
Code:
wmake libso $FOAM_SRC/OpenFOAM |
||
January 3, 2010, 08:10 |
|
#19 |
Senior Member
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18 |
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? |
|
January 3, 2010, 10:00 |
|
#20 |
Member
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17 |
What does the file $FOAM_SRC/Pstream/dummy/Make/files look like?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Latest git 1.6.x : cellDistFuncs.H | podallaire | OpenFOAM Bugs | 4 | December 11, 2009 08:03 |
Latest git 1.6.x: Crash when using inletOutlet for variable alpha1 in interFoam | carsten | OpenFOAM Bugs | 6 | September 23, 2009 09:46 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 21:51 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 06:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |