Hi All,

I am compiling SB2 on Ubuntu 8.10. I have installed CodeSourcery tool chain
and have built the target setup as said in the README. sb2-build-libtool
failed and I run it manually and I get the following error:

/home/developer/tmp/sb2/bin > ./sb2 sb2-build-libtool
/tmp/sb2-developer-20090118-211107.rd6072
cstc-arm
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


The error part of config.log is:

Thread model: posix
gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)
configure:2849: $? = 0
configure:2856: gcc -V >&5
arm-none-linux-gnueabi-gcc: couldn't run
'/home/developer/scratchbox/compilers/cstc-arm/bin/arm-none-linux-gnueabi-gcc--specs=/home/developer/tmp/sb2/share/scratchbox2/modeconf/gcc-specs.simple':
No such file or directory
configure:2859: $? = 1
configure:2882: checking for C compiler default output file name
configure:2909: gcc    conftest.c  >&5
configure:2912: $? = 0
configure:2950: result: a.out
configure:2967: checking whether the C compiler works
configure:2977: ./a.out
./configure: line 2978:  6405 Segmentation fault      ./$ac_file
configure:2980: $? = 139
configure:2989: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


The sb2 config file is:

# Scratchbox2 configuration file generated by sb2-init.

SBOX_INIT_ORIG_ARGS="-c /home/developer/tmp/sb2/bin/qemu-arm cstc-arm
arm-none-linux-gnueabi-gcc"
SBOX_INIT_TIME=2009-01-17_20:04:08
SBOX_INIT_ID="user 'developer'"

SBOX_CONFIG_VERSION=9

SBOX_TARGET_ROOT=/home/developer/tmp/buildroot

SBOX_CPU=arm
SBOX_GCC_TARGET=arm-none-linux-gnueabi
SBOX_CPUTRANSPARENCY_METHOD="/home/developer/tmp/sb2/bin/qemu-arm"
SBOX_UNAME_MACHINE=arm

SBOX_DEFAULT_GCC_PREFIX=arm-none-linux-gnueabi-

SBOX_CROSS_GCC_NAME=cross-gcc
SBOX_CROSS_GCC_VERSION="4.2.3"
SBOX_CROSS_GCC_SHORTVERSION="4.2"
SBOX_CROSS_GCC_PREFIX_LIST=arm-none-linux-gnueabi-:arm-linux-:arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SUBST_PREFIX=arm-none-linux-gnueabi-
SBOX_CROSS_GCC_SPECS_FILE="/home/developer/tmp/sb2/share/scratchbox2/modeconf/gcc-specs.simple"
SBOX_CROSS_GCC_DIR=/home/developer/scratchbox/compilers/cstc-arm/bin
SBOX_CROSS_GCC_LD_ARGS=
SBOX_EXTRA_CROSS_COMPILER_ARGS=" -L/home/developer/tmp/buildroot/usr/lib
-L/home/developer/tmp/buildroot/lib -Wno-poison-system-directories"
SBOX_EXTRA_CROSS_COMPILER_STDINC=""
SBOX_EXTRA_CROSS_LD_ARGS="-rpath-link
/home/developer/tmp/buildroot/usr/lib:/home/developer/tmp/buildroot/lib"

DEB_BUILD_ARCH=armel
DEB_BUILD_ARCH_CPU=armel
DEB_BUILD_ARCH_ABI=gnu
DEB_BUILD_GNU_CPU=arm
DEB_BUILD_GNU_TYPE=arm-linux-gnu
DEB_BUILD_GNU_SYSTEM=

DEB_HOST_ARCH=armel
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=armel

DEB_HOST_GNU_CPU=arm
DEB_HOST_GNU_TYPE=arm-linux-gnu
DEB_HOST_GNU_SYSTEM=

SBOX_HOST_GCC_NAME=host-gcc
SBOX_HOST_GCC_PREFIX_LIST=host-
SBOX_HOST_GCC_SUBST_PREFIX=
SBOX_HOST_GCC_SPECS_FILE=
SBOX_HOST_GCC_DIR=/usr/bin
SBOX_HOST_GCC_LD_ARGS=
SBOX_EXTRA_HOST_COMPILER_ARGS=" -isystem
/home/developer/tmp/sb2/share/scratchbox2/host_usr/lib/gcc/i486-linux-gnu/4.3.2/include
-isystem /home/developer/tmp/sb2/share/scratchbox2/host_usr/include"

SBRSH_CONFIG=/home/developer/.scratchbox2/cstc-arm/sbrsh.config

if [ -z "$SBOX_MAPMODE" ]; then
    SBOX_MAPMODE=simple
fi

SBOX_TOOLS_ROOT=

if [ -n "$SBOX_TOOLS_ROOT" ]; then

LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/:/usr/lib64:/lib:/lib64:$SBOX_TOOLS_ROOT/usr/lib/libfakeroot:$SBOX_TOOLS_ROOT/usr/lib64/libfakeroot:$SBOX_TOOLS_ROOT/usr/lib32/libfakeroot:$LD_LIBRARY_PATH
else
    # SBOX_TOOLS_ROOT not set, include the fakeroot lib path in any case.

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot
fi


The segmentation fault comes on trying to compile any program too.I have set
the PATH variable for the compiler and sb2/bin. Any thing else I am missing
?


Thanks,
Midhun Agnihotram.
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to