LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling GCC - crti.o not recognised (https://www.linuxquestions.org/questions/linux-software-2/compiling-gcc-crti-o-not-recognised-926304/)

compused 01-29-2012 07:19 AM

Compiling GCC - crti.o not recognised
 
I am seeking assistance in overcoming a GCC compiling error. This is for a QNAP NAS device

Compiling GCC version 4.6.2 is failing at the 'make' stage because the crti.o file is allegedly missing:
Code:

..../arm-none-linux-gnueabi/bin/ld: crti.o: No such file: No such file or directory
I am using an existing gcc version, ie 4.3.2, to compile the newer version

I have located the crti.o file in:
Code:

.../arm-none-linux-gnueabi/lib/crti.o
and tried to get it recognized by GCC by:
1. added /arm-none-linux-gnueabi/lib to LD_LIBRARY_PATH
2. added /arm-none-linux-gnueabi/lib to /etc/ld.so.cache then run ldconfig
3. added the parent dir, ie /arm-none-linux-gnueabi, to $PATH

running 'set' confirms the above config

finally I ran make with the 'B' option to include the directory:
Code:

make CC="gcc -B /opt/arm-none-linux-gnueabi/lib"
but the error persists

Here is a pastebin of the error (spaces were added above and below the problem line)

http://pastebin.com/knuN7UHR
(note that /opt is a symlink to /share/MD0_DATA/.qpkg/Optware and then we have /share/MD0_DATA/.qpkg/Optware/arm-none-linux-gnueabi)
Any help would be great!


All times are GMT -5. The time now is 06:15 PM.