crt1.o error when compiling OF
Hi all,
I want to compile OF with gcc-4.7.3 and some flags. The first compilation works good (standard flag -O3) but the second compilation is not working. Flags are: Code:
-pipe -O2 -march=bdver1 -mtune=bdver1 Code:
/usr/bin/ld: cannot find crt1.o: No such file or directory What I did is to create a symbolic link that is mentioned here: http://stackoverflow.com/questions/6...ot-find-crt1-o Its not working. The files are available in /usr/lib64/ How can I manage that? Or is it due to gcc-4.7.3 ? |
Hi all,
first problem solved. I had to export the x86_64 libs path into the LIBRARY_PATH variable like: Code:
LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH Code:
/usr/bin/ld: cannot find -lgcc Does that depend on the Gcc-4.7.3 version? |
I think I know the error! The first line which I compile is:
Code:
gcc -m32 -Wall -O2 ... I made a copy fault: linuxGcc47 into linux64Gcc47_v2 :D |
Hi Tobi,
Sorry, I didn't manage to answer you yesterday. I'm glad that you figured it out. And yes, with OpenFOAM, usually the errors regarding "crt1.o" and "crti.o" are due to inconsistencies in using the compilers. In this case, you were probably having a conflict between the objects available in the Scotch library (the same build is used for all "linux64"), versus the ones being built on OpenFOAM. Best regards, Bruno |
Hi Tobi and Bruno,
I am getting the same error. Actually I dont have access to admin. I should manage as user for ma hpc. Can you people guide me to rectify this error? As tobi said I dont know where to put -m64 insted of -m32 Thanks & Regards CFDUser_ |
Quote:
I badly in need to solve this problem. Thank god that you are online. If you are free can you guide me where should I change permissions? CFDUser_ |
Greetings CFDUser_,
I hope you don't mind, but I'll quote part of the message you sent me over private message: Quote:
Several days have passed since you asked about this, so I don't know if you've managed to solve this issue or not. If you haven't, please provide as many details as you can, such as:
Bruno |
Thanks Bruno for the reply. Some how I managed to compile. Still I believe there is something wrong in ma system. Any way there is no compilation problem now. I will get back to you with the details you asked. Currently I don't have access to send.
Regards, CFDUser_ |
All times are GMT -4. The time now is 06:14. |