Hello
I am trying to compil
Hello
I am trying to compile openfoam on ubuntu-fiesty fawn. I am using gcc-4.1, and have followed the instructions on the openfam website and README exactly. But i get these strange ld errors. I would appreciate it if someone could help me with this. Regards Srinath Errors are below `.L1705' referenced in section `.rodata' of globalMeshData.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of globalMeshData.o collect2: ld returned 1 exit status make: *** [/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so] Error 1 .L945' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o `.L954' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o `.L955' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o `.L956' referenced in section `.rodata' of surfaceFeatures.o: defined in discarded section `.gnu.linkonce.t._ZN4Foam4ListINS_5tokenEEC2ERKS2_ ' of surfaceFeatures.o collect2: ld returned 1 exit status make: *** [/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libmeshTools.so] Error 1 + wmake libso finiteVolume /usr/bin/ld: cannot find -lmeshTools collect2: ld returned 1 exit status make: *** [/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libfiniteVolume.so] Error 1 + cd MGridGenGamgAgglomeration + ./Allwmake `/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libIMlib.so' is up to date. `/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libMGridGen.so' is up to date. `/home/srinath/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libMGridGenGAMGAgglomer ation.so' is up to date. + wmake libso sampling /usr/bin/ld: cannot find -lfiniteVolume |
Hi Srinath,
A short questio
Hi Srinath,
A short question.... which version of GNU GCC are you using for compiling OpenFOAM? If you are using GCC-4.2.2 as asked for in the OpenFOAM "buildinstructions.txt", are you sure you sourced the .bashrc file after you made the required changes to it ? Personally, thats one of the most common things that hit me.... forgetting to source the latest .bashrc. I have resorted to always closing the console and opening a new one (so that the .bashrc gets sourced, and all the changes are activated), before finally starting the actual OpenFOAM compilation with the "./Allwmake" script. Probably you could check with a "gcc --version" on the console to make sure you are actually using the version of gcc you think you are using. Have a nice day! Philippose |
All times are GMT -4. The time now is 07:24. |