Android KK: ld can't find crt1.o / crti.o / crtbegin.o

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android KK: ld can't find crt1.o / crti.o / crtbegin.o

Jump to solution
2,203 Views
jorgdebont
Contributor I

I'm trying to compile Android KK for the Sabre SD Q.

I'm currently trying to run:

make bootimage BUILD_TARGET_DEVICE=sd

Which gives me the following errors:

myandroid/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: cannot find crt1.o: No such file or directory

myandroid/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: cannot find crti.o: No such file or directory

myandroid/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: cannot find crtbegin.o: No such file or directory

These files are used by gcc in my understanding.

Could anybody help me resolve this error?

Thanks in advance!

Greetings

Jorg

Labels (3)
Tags (1)
0 Kudos
1 Solution
1,397 Views
jorgdebont
Contributor I

The source of the error was located on my host system.

The .o files weren't present on my system, I fixed this by reinstalling libc6-dev libgcc-4.8-dev. (sudo apt-get install --reinstall xxxxxx)

Furthermore i created a symbolic link, but I'm not sure if this is required "sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64"

View solution in original post

0 Kudos
2 Replies
1,398 Views
jorgdebont
Contributor I

The source of the error was located on my host system.

The .o files weren't present on my system, I fixed this by reinstalling libc6-dev libgcc-4.8-dev. (sudo apt-get install --reinstall xxxxxx)

Furthermore i created a symbolic link, but I'm not sure if this is required "sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64"

0 Kudos
1,397 Views
jimmychan
NXP TechSupport
NXP TechSupport