Hi!
I am trying to cross compile the ntp source with the following file
#!/bin/sh
#
export prefix="/home/vmsmartgrid1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/arm-arago-linux"
env \
CC="arm-arago-linux-gnueabi-gcc -mlinux -isystem ${prefix}/include"\
CPP="arm-arago-linux-gnueabi-gcc -mlinux -E -isystem ${prefix}/include" \
LDFLAGS="-L${prefix}/lib"\
OBJCOPY="arm-arago-linux-gnueabi-objcopy" \
AR="arm-arago-linux-gnueabi-ar" \
RANLIB="arm-arago-linux-gnueabi-ranlib" \
NM="arm-arago-linux-gnueabi-nm" \
STRIP="arm-arago-linux-gnueabi-strip" \
\
./configure \
--host=arm-arago-linux-gnueabi \
--prefix=${prefix}
exit
But I always get the following error.
vmsmartgrid1@vmsmartgrid1-desktop:~/ti-dvsdk_omapl138-evm_04_03_00_06/ntp-4.2.6p5$ ./install
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-arago-linux-gnueabi-strip... arm-arago-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-arago-linux-gnueabi
checking for style of include used by make... GNU
checking for arm-arago-linux-gnueabi-gcc... arm-arago-linux-gnueabi-gcc -mlinux -isystem /home/vmsmartgrid1/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/arm-arago-linux/include
checking whether the C compiler works... no
configure: error: in `/home/vmsmartgrid1/ti-dvsdk_omapl138-evm_04_03_00_06/ntp-4.2.6p5':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Have you an idea, what I am doing wrong? How is the step by step way to cross compile a source for the omap l138
Thanks for your answer!
Cheers,
Dominik