harrisonmetz Tux's lil' helper
Joined: 24 Apr 2006 Posts: 93 Location: Chicago, IL
|
Posted: Wed Jan 20, 2010 3:09 pm Post subject: crossdev and qemu (user) |
|
|
Hello, I'm trying to build some arm executables for to run under qemu system. I installed the 'arm-unknown-linux-gnu' via crossdev. Then I wrote a sample "hello world" program. I then compiled it. I verified it was arm using 'file'. Finally, I installed qemu. To run the program I did:
qemu-arm a.out
However, it said it could not load the interpreter. After looking around I saw the '/usr/arm-unkown-linux-gnu' directory and ran
qemu-arm -L /usr/arm-unkown-linux-gnu a.out
and then got the message it can't load libgcc_s.so.1 . After search I found this file in /usr/lib64/gcc/arm-unknown-linux-gnu/4.4.2/ . I copied it (along with libgcc_s.so) to just /usr/arm-unknown-linux-gnu and ran the command above. This worked.
I'm wondering if anyone else doing cross compiling has come across this issue? It wasn't too frustrating to resolve, but it shouldn't need to be this way. Any thoughts on how people do cross compiling? |
|