[nas-2000] Re: compiling more complex programs

  • From: Dennis Suchomsky <dennis@xxxxxxxxxxxxxxxxx>
  • To: nas-2000@xxxxxxxxxxxxx
  • Date: Thu, 17 May 2007 20:07:30 +0200

getting an error when I run the configure script for findutils: "C compiler cannot create executables"

but it can when i do it manually....

Am 17.05.2007 um 19:52 schrieb Dennis Suchomsky:

ok added all the stuff to the wiki -> http://nas-2000.org/mwiki/ index.php?title=HowTo_Compile_Programs_on_your_PC_%28cross_compiling %29
please have a look if its ok like that.

Am 17.05.2007 um 19:03 schrieb philipp Wehrheim:


here is how I crosscompile

Create s script that you exec after you enter the chroot


export LINUX="/usr/local/arm-linux-toolchain/armv4tl-hardhat-linux/ include"

export CROSS=arm_920t_le

export CC=$CROSS_PREFIX-gcc
export CPP=$CROSS_PREFIX-g++
export AS=$CROSS_PREFIX-as
export AR=$CROSS_PREFIX-ar
export NM=$CROSS_PREFIX-nm
export RANLIB=$CROSS_PREFIX-ranlib
export STRIP=$CROSS_PREFIX-strip
export GCC=$CROSS_PREFIX-gcc
export LD=$CROSS_PREFIX-ld
export LDD=$CROSS_PREFIX-ldd

#export CXX="/usr/local/arm-linux-toolchain/bin/arm_920t_le-g++"
#export STRIP="/usr/local/arm-linux-toolchain/bin/arm_920t_le-strip"
#export RANLIB="/usr/local/arm-linux-toolchain/bin/arm_920t_le- ranlib"

LDFLAGS="-I/usr/local/arm-linux-toolchain/armv4tl-hardhat-linux/ include \
        -Wl --gc-sections"
export CFLAGS="-I$LINUX -ffunction-sections -fdata-sections"
-------------8<------------------------8<---------------------------- -

philipp Wehrheim schrieb:
If you compile on the NAS just run ./configure && make && make install
but if you crosscompile you have to set the some vars

Dennis Suchomsky schrieb:
Hi ok i made it i just compiled a hello world and it worked on the
icybox :) :)
But what if I want to compile more complex programs like findutils for
How do I compile for the icybox with the ./configure make commands

Other related posts: