Hello all, I am trying to use scratchbox to compile code for an armv4t target. However the available ARM toolchains seem to be ignoring the -march option, hence generating code that will not run on the target device.
I have installed the latest hathor scratchbox packages available and have tested both the cs2009 and the cs2010 toolchains, same result. This is the output of sb-conf show: [sbox-mydev: ~] > sb-conf show Compiler: arm-linux-cs2010q1-202 Devkits: autotools-legacy python-legacy perl qemu CPU-transparency: /scratchbox/devkits/qemu/bin/qemu-arm-sb [sbox-mydev: ~] > gcc -march=armv4t hello.c -o hello [sbox-mydev: ~] > readelf -A hello Attribute Section: aeabi File Attributes Tag_CPU_name: "5TE" Tag_CPU_arch: v5TE Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-1 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: int Tag_DIV_use: Not allowed However if I invoke the "wrapped" gcc directly, it seems to honour the flag: [sbox-mydev: ~] > /scratchbox/compilers/arm-linux-cs2010q1-202/bin/arm-none-linux-gnueabi-gcc -march=armv4t hello.c -o hello /scratchbox/compilers/arm-linux-cs2010q1-202/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation /scratchbox/compilers/arm-linux-cs2010q1-202/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/lib" is unsafe for cross-compilation /scratchbox/compilers/arm-linux-cs2010q1-202/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation [sbox-mydev: ~] > readelf -A hello Attribute Section: aeabi File Attributes Tag_CPU_name: "4T" Tag_CPU_arch: v4T Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-1 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: int Tag_DIV_use: Not allowed I have also created a different target, using the cs2009q3 toolchain, and I get exactly the same problem.. Am I doing something wrong? Thanks, -- Guillermo Rodriguez Garcia guille.rodrig...@gmail.com
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users