On 15/03/2016 12:57, YuGiOhJCJ Mailing-List wrote:
Hello, I try to build a cross-compiler for a Raspberry Pi. Information about my target machine: # uname -a Linux slackware 4.1.19+ #852 Mon Mar 7 14:35:56 GMT 2016 armv6l BCM2708 GNU/Linux # cat /proc/cpuinfo processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 2.00 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2708 Revision : 000e Serial : 000000005035c7ce # ./config.guess armv6l-unknown-linux-gnueabihf That's how I build gcc: $ ../gcc-5.3.0/configure --prefix=/usr --target=armv6l-unknown-linux-gnueabihf --with-cpu=arm6 --with-fpu=vfp --with-float=hard --enable-languages=c --with-newlib --without-headers --disable-shared --disable-nls --disable-libssp
The problem is --with-cpu=arm6 You may mean --with-arch=armv6
$ make [...] checking for armv6l-unknown-linux-gnueabihf-gcc... /tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/./gcc/xgcc -B/tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/./gcc/ -B/usr/armv6l-unknown-linux-gnueabihf/bin/ -B/usr/armv6l-unknown-linux-gnueabihf/lib/ -isystem /usr/armv6l-unknown-linux-gnueabihf/include -isystem /usr/armv6l-unknown-linux-gnueabihf/sys-include checking for suffix of object files... configure: error: in `/tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/armv6l-unknown-linux-gnueabihf/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp' make: *** [all] Error 2 As I have an error, I check the config.log file present in the /tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/armv6l-unknown-linux-gnueabihf/libgcc directory: $ cat /tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/armv6l-unknown-linux-gnueabihf/libgcc/config.log [...] configure:3467: $? = 1 configure:3655: checking for suffix of object files configure:3677: /tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/./gcc/xgcc -B/tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/./gcc/ -B/usr/armv6l-unknown-linux-gnueabihf/bin/ -B/usr/armv6l-unknown-linux-gnueabihf/lib/ -isystem /usr/armv6l-unknown-linux-gnueabihf/include -isystem /usr/armv6l-unknown-linux-gnueabihf/sys-include -c -g -O2 conftest.c >&5 /tmp/cci9sNiO.s: Assembler messages: /tmp/cci9sNiO.s:34: Error: selected processor does not support `bx lr' in ARM mode configure:3681: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3695: error: in `/tmp/build/armv6l-unknown-linux-gnueabihf/gcc-5.3.0-tmp/armv6l-unknown-linux-gnueabihf/libgcc': configure:3698: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. [...] As you can see, I have an error: Error: selected processor does not support `bx lr' in ARM mode Any help? Thank you. Best regards. .