Hi,

I've just purchased a Fox Board and installed the SDK on a gentoo linux.
Build of the fimage works fine but I encountered problems with apps
compilation:

I followed the hello world example but when I tried to make
cris-axis_linux-gnu, I received this message:

====================================================================
nathan devboard-R2_01 # ./init_env 
Prepending "/root/sdk/devboard-R2_01/tools/build/bin" to PATH.
Prepending "/usr/local/cris/bin" to PATH.

nathan devboard-R2_01 # cd apps/
nathan apps # cd test/

nathan test # make cris-axis_linux_gnu
Makefile:2: /tools/build/Rules.axis: No such file or directory
make: *** No rule to make target `/tools/build/Rules.axis'.  Stop.
====================================================================
(Same issue with the Debian VMWare image SDK)

Apparently, the init_env script has no effect, the AXIS_TOP_DIR var
and the others are not assigned, so make can't find the file
'Rules.axis' nor the cris-axis binaries.

But if I manually set the vars, everything works fine:

====================================================================
nathan devboard-R2_01 # export AXIS_TOP_DIR=`pwd`
nathan devboard-R2_01 # export PATH="$AXIS_TOP_DIR/tools/build/bin:$PATH"
nathan devboard-R2_01 # export PATH="/usr/local/cris/bin:$PATH"
nathan devboard-R2_01 # export
AXIS_KERNEL_DIR="$AXIS_TOP_DIR/os/linux-2.6"

nathan devboard-R2_01 # cd apps/
nathan apps # cd test/

nathan test # make cris-axis-linux-gnu
make[1]: Entering directory `/root/sdk/devboard-R2_01/apps/test'
rm -f test *.o core
cp "/root/sdk/devboard-R2_01/apps/test/.tmp.target-makefrag"
.target-makefrag
make[1]: Leaving directory `/root/sdk/devboard-R2_01/apps/test'

nathan test # make
gcc-cris  -isystem
/root/sdk/devboard-R2_01/target/cris-axis-linux-gnu/include -mlinux
-mno-mul-bug-workaround -Wall -Wshadow -O2 -g    -c -o test.o test.c
gcc-cris  -isystem
/root/sdk/devboard-R2_01/target/cris-axis-linux-gnu/include -mlinux
-mno-mul-bug-workaround 
-L/root/sdk/devboard-R2_01/target/cris-axis-linux-gnu/lib
-Wl,-rpath-link,/root/sdk/devboard-R2_01/target/cris-axis-linux-gnu/lib
test.o  -o test
====================================================================

Do someone has the same problem?

Regards,


Reply via email to