Bug 230267 - cross-compiling for arm
Summary: cross-compiling for arm
Status: RESOLVED NOT A BUG
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.6 SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 23:21 UTC by mark.dodgson
Modified: 2010-03-15 12:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mark.dodgson 2010-03-10 23:21:31 UTC
I have tried to cross-compile valgrind for arm-linux.
I used the following command: CC=arm-linux-gcc ./configure --host-armv7-unknown-linux

Make fails with the following message:
/tmp/ccM33Ubd.s: Assembler messages:
/tmp/ccM33Ubd.s:106: Error: bad instruction `svc 0x0'
/tmp/ccM33Ubd.s:1372: Error: bad instruction `svc 0x0'
make[3]: *** [libcoregrind_arm_linux_a-m_debuglog.o] Error 1

Let me know what other information might be needed.
Comment 1 Bart Van Assche 2010-03-11 08:19:29 UTC
Are you familiar with cross-compilation ? Are you sure that you haven't been combining the ARM cross-compiler with the host assembler ?
Comment 2 mark.dodgson 2010-03-15 10:20:55 UTC
Apologies, I should have mentioned that I am new to cross-compiling. However, I did follow the instructions as best as possible and the ./configure passes with no errors.
Is there something else missing from the issued ./configure I shown in the original post in order to cross-compile correctly?
CC=arm-linux-gcc ./configure --host-armv7-unknown-linux
Comment 3 Bart Van Assche 2010-03-15 12:37:56 UTC
Support questions should be sent to the valgrind-users mailing list.