|
[Sponsors] |
September 21, 2013, 11:51 |
crt1.o error when compiling OF
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
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 /usr/bin/ld: cannot find crti.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 ? |
|
September 22, 2013, 08:06 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
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 export LIBRARY_PATH Code:
/usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.a when searching for -lc Does that depend on the Gcc-4.7.3 version? |
|
September 22, 2013, 08:09 |
|
#3 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
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 |
|
September 22, 2013, 12:24 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
July 30, 2014, 07:45 |
|
#5 |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
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_ |
|
July 30, 2014, 10:54 |
|
#6 | |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
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_ |
||
August 4, 2014, 12:37 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
||
August 4, 2014, 23:03 |
|
#8 |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
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_ |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with Compiling UDFs in Ansys Fluent 13 (lnx64) | Ali.beh | Fluent UDF and Scheme Programming | 3 | August 27, 2018 04:22 |
Linux vs PC Compiling | Rhyno466 | Fluent UDF and Scheme Programming | 10 | May 11, 2012 17:01 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 05:40 |
error msg when compiling user fortran | Ollimarc | CFX | 0 | March 13, 2008 18:16 |
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 | sponiar | OpenFOAM Running, Solving & CFD | 3 | February 26, 2008 06:31 |