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. |
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 |
Thanks Mattijs!
I got the latest from git and it worked without a problem. Happy New Year! Pei |
Hi, Mattijs,
The OF-1.6.x is still failed to be recompiled in IA64 Linux system. Errors prompt like Quote:
chiven |
In the $FOAM_UTILITIES/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/Make/tecioOptions can you try adding a line for linuxIA64:
Code:
#if defined(linux64) Thanks, Mattijs |
Hi, Mattijs,
I added the line for linuxIA64, and recompiled OF-1.6.x, but still failed. Sorry about that. Best regards, Chiven |
Check your compilation line. Does it have in it
-fPIC -DLINUX -DLINUXI64 |
OK, I shall check it tomorrow. Now, I go back my dormitory. Thanks.
Chiven |
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 |
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 ................................ |
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 |
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 |
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 .............. |
./Allwmake > error.log 2>&1 &
|
Quote:
3- nohup ./Allwmake that will create a file called nohup.out Thanks and good luck to all |
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. |
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 ............................................... |
Quote:
Code:
wmake libso $FOAM_SRC/OpenFOAM |
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? |
What does the file $FOAM_SRC/Pstream/dummy/Make/files look like?
|
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 |
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 |
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 |
Hi, Mattijs, even I revise the tecioOptions file as
HTML Code:
TECIO_FLAGS = -DMAKEARCHIVE -DLINUX DLINUXI64 -DUSEENUM -DTHREED -U_WIN32 HTML Code:
# 1 "options" Chiven Quote:
|
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 cheers, chris |
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. |