Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22232

linker can't find crti.o and other object files

$
0
0

I'm using this Makefile for a teensy project, and even though I have crti.o, crtbegin.o and crt0.o in /usr/lib/x86_64-linux-gnu and I have that directory in both LIBRARY_PATH and LD_LIBRARY_PATH, I am still getting the following error upon running make:

[LD]    balloons-Parafoil.elf
/afs/.ir.stanford.edu/users/e/r/ericmark/Development/balloons-
Parafoil/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-
none-eabi/bin/ld: cannot find crti.o: No such file or directory
/afs/.ir.stanford.edu/users/e/r/ericmark/Development/balloons-
Parafoil/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-
none-eabi/bin/ld: cannot find crtbegin.o: No such file or directory
/afs/.ir.stanford.edu/users/e/r/ericmark/Development/balloons-
Parafoil/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-
none-eabi/bin/ld: cannot find crt0.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [balloons-Parafoil.elf] Error 1

I should note that this error occurs both Ubuntu machines I have tried but not on a macOS machine that I am developing on.


Viewing all articles
Browse latest Browse all 22232

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>