|
From: John R. <jr...@bi...> - 2015-07-02 13:40:34
|
> ./configure --target=arm-none-eabi --host=x86_64-linux CC=~/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc
> checking for x86_64-linux-gcc... /home/pinkesh/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc
> checking whether the C compiler works... no
> configure: error: in `/home/pinkesh/installs/valgrind-3.10.1':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
Well, what does config.log say?
Does running the shell command:
/home/pinkesh/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc -o hello hello.c
produce a file 'hello' which is an executable for arm-none-eabi?
If more information is needed, then diagnose with strace, such as:
strace -f -e trace=execve -v -s 300 \
./configure --target=arm-none-eabi --host=x86_64-linux \
CC=~/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc
--
|