Hello,
I’m trying to cross-compile cyaSSL embedded SSL for kinetis under cygwin with no success. I’m using the arm GNU toolchain provided by code warrior 10.3.
I run the following commands prior configure:
export CC=arm-none-eabi-gcc.exe
export AR=arm-none-eabi-ar.exe
export RANLIB=arm-none-eabi-ranlib.exe
export LD=arm-none-eabi-ld.exe
export CFLAGS="-mthumb -march=armv7e-m -mfloat-abi=softfp -mfpu=fpv4-sp-d16"
Then I run configure with the next command:
./configure --target=arm-none-eabi
Then the output is:
$ ./configure --target=arm-none-eabi
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... arm-none-eabi
checking for gcc... arm-none-eabi-gcc.exe
checking whether the C compiler works... no
configure: error: in `/home/ogarcia/programas/cyassl-2.7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
I attach the config.log file.
I can see the problem in config.log. Wich I think is the next one:
c:/cygwin/home/bin/arm-none-eabi-gcc-4_6_2/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc.a(lib_a-exit.o): In function `exit':^M
exit.c:(.text.exit+0x16): undefined reference to `_exit'
In fact, I’m not able to compile the following test code:
void main() {
int a;
return;
}
The output is the same. I have done some search in google, and found that newlib has no definition for _exit.
How I can solve this?
Thanks in advance.
Óscar.