Hello, I'm have trouble adding a mipsel based toolchain to scratcbox. I have 
followed the documentation step and the wiki @ 
http://www.scratchbox.org/wiki/ForeignToolchains

This is my configuration file

COMPILER_NAME = mipsel-linux
COMPILER_PACKAGE = ToolChain-Mipsel-Linux
ALIEN_TC = yes

CC_VER = 3.4
CC_GCCVER = 3.4.4
CC_FULLVER = 3:$(CC_GCCVER)
CC_DEBIAN_DIR = gcc-3.4-debian

ARCH = mipsel
SUB_ARCH = $(ARCH)
VENDOR = unknown-
TOOLCHAIN_PREFIX_END = uclibc-
TARGET_END = -uclibc

BINUTILS_FULLVER = 2.16.1-sb1

HEADERS_DIR = $(COMPILER_DIR)/include
LINUX_HEADERS_SUBDIRS = linux asm asm-generic
LINUX_HEADERS_VER = 2.6.12.6

LIBC_FILES_BINS = $(COMPILER_DIR)/mipsel-linux/bin
LIBC_FILES_LIBS = $(COMPILER_DIR)/mipsel-linux/lib $(COMPILER_DIR)/lib
CHECKSUM_FILE   = ../../$(CONFIG:.conf=.checksums)

When the make command is invoked for build, it fails. Here is the stdout 
message.

[sbox-mipsel-host: ~/sb-toolchain-extras] > make 
CONFIG=meta/alien-tc/mipsel-linux.conf -C meta/alien-tc build
make: Entering directory `/home/thani/sb-toolchain-extras/meta/alien-tc'
[===== NOW BUILDING:    alien-tc-1      =====]
install -d download
        [fetch] complete for alien-tc.
install -d cookies
        [checksum] complete for alien-tc.
install -d work
        [extract] complete for alien-tc.
install -d work/alien-tc-1
        [patch] complete for alien-tc.
 ==> Building toolchain/post-install as a dependency
make[1]: Entering directory 
`/home/thani/sb-toolchain-extras/toolchain/post-install'
[===== NOW BUILDING:    post-install-1.0        =====]
install -d download
        [fetch] complete for post-install.
install -d cookies
        [checksum] complete for post-install.
install -d work
        [extract] complete for post-install.
install -d work/post-install-1.0
        [patch] complete for post-install.
        [configure] complete for post-install.
        [build] complete for post-install.
Making pre-install cookie...
Ready to proceed...
cp -a files/gcc.specs /scratchbox/compilers/mipsel-linux/gcc.specs
cd /scratchbox/compilers/mipsel-linux/bin && \
        ln -sf mipsel-unknown-linux-uclibc-gcc mipsel-unknown-linux-uclibc-cc 
&& \
        ln -sf mipsel-unknown-linux-uclibc-gcc 
mipsel-unknown-linux-uclibc-gcc-3.4 && \
        ln -sf mipsel-unknown-linux-uclibc-g++ 
mipsel-unknown-linux-uclibc-g++-3.4 && \
        for f in mipsel-unknown-linux-uclibc-*; do n=$(echo sbox-$f); ln -sf $f 
$n; done
echo 
"mipsel-linux:/scratchbox/compilers/mipsel-linux:mipsel:unknown-linux-uclibc:glibc:mipsel"
 > /scratchbox/compilers/mipsel-linux/compiler-name
m4 -DUSR_BIN_FILES="catchsegv getconf getent ldd locale localedef rpcinfo 
tzselect zdump" -DUSR_BIN_FILES_DEV="rpcgen mtrace gencat" 
-DUSR_SBIN_FILES="iconvconfig zic" -DSBIN_FILES="ldconfig" 
-DLIBC_FILES_LIBS="/scratchbox/compilers/mipsel-linux//scratchbox/compilers/mipsel-linux/mipsel-linux/lib
 /scratchbox/compilers/mipsel-linux//scratchbox/compilers/mipsel-linux/lib" 
-DLIBC_FILES_BINS="/scratchbox/compilers/mipsel-linux//scratchbox/compilers/mipsel-linux/mipsel-linux/bin"
 -DHEADERS_DIR="/scratchbox/compilers/mipsel-linux/include" -DCRUNTIME_FILES="" 
files/target_setup.sh.m4 > /scratchbox/compilers/mipsel-linux/target_setup.sh
chmod +x /scratchbox/compilers/mipsel-linux/target_setup.sh
echo "install:" > work/post-install-1.0/Makefile
mkdir -p cookies/. && date >> cookies/pre-install
 ==> Running make install in work/post-install-1.0
make[2]: Entering directory 
`/home/thani/sb-toolchain-extras/toolchain/post-install/work/post-install-1.0'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory 
`/home/thani/sb-toolchain-extras/toolchain/post-install/work/post-install-1.0'
        [install] complete for post-install.
make[1]: Leaving directory 
`/home/thani/sb-toolchain-extras/toolchain/post-install'
 ==> Building binutils/binutils-debian as a dependency
make[1]: Entering directory 
`/home/thani/sb-toolchain-extras/binutils/binutils-debian'
[===== NOW BUILDING:    binutils-debian-        =====]
install -d download
        [fetch] complete for binutils-debian.
install -d cookies
        [checksum] complete for binutils-debian.
install -d work
        [extract] complete for binutils-debian.
install -d work/binutils-debian-
        [patch] complete for binutils-debian.
        [configure] complete for binutils-debian.
        [build] complete for binutils-debian.
Making pre-install cookie...
Ready to proceed...
mkdir -p cookies/. && date >> cookies/install-foo
Scanning file system for new files...
Added 0 new files to "work/installed_files".
Writing package record...
        [install] complete for binutils-debian.
make[1]: Leaving directory 
`/home/thani/sb-toolchain-extras/binutils/binutils-debian'
 ==> Building cc/gcc-3.4-debian as a dependency
make[1]: Entering directory `/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian'
[===== NOW BUILDING:    gcc-3.4 =====]
install -d download
        [fetch] complete for gcc.
install -d cookies
        [checksum] complete for gcc.
install -d work
        [extract] complete for gcc.
install -d work/gcc-3.4
        [patch] complete for gcc.
mkdir -p work/gcc-3.4/debian
cp files/{copyright,rules} work/gcc-3.4/debian/
m4 -DVERSION=3:3.4.4 -DCC_GCCVER=3.4.4 files/control.in \
                > work/gcc-3.4/debian/control
m4 -DVERSION=3:3.4.4 -DCC_GCCVER=3.4.4 files/changelog.in \
                > work/gcc-3.4/debian/changelog
822-date: warning: This program is deprecated. Please use 'date -R' instead.
chmod +x work/gcc-3.4/debian/rules
mkdir -p cookies/. && date >> cookies/configure-packages
        [configure] complete for gcc.
cd work/gcc-3.4 && env COMPILER_DIR=/scratchbox/compilers/mipsel-linux 
TARGET=mipsel-unknown-linux-uclibc VERSION=3.4.4 
SBOX_REDIRECT_BINARIES=/scratchbox/compilers/bin/gcc:/scratchbox/compilers/mipsel-linux/bin/mipsel-unknown-linux-uclibc-gcc
 LIBC_FILES_LIBS="/scratchbox/compilers/mipsel-linux/mipsel-linux/lib 
/scratchbox/compilers/mipsel-linux/lib" dpkg-buildpackage -rfakeroot -b -uc
dpkg-buildpackage: source package is gcc-3.4
dpkg-buildpackage: source version is 3:3.4.4-sb1
dpkg-buildpackage: source changed by Scratchbox Developers 
/scratchbox/tools/bin/sh: /scratchbox/compilers/bin/gcc: No such file or 
directory
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to 
default (native compilation)
/scratchbox/tools/bin/sh: /scratchbox/compilers/bin/gcc: No such file or 
directory
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to 
default (native compilation)
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 3.4.4-sb1
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
make[2]: Entering directory 
`/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian/work/gcc-3.4'
dh_clean
make[2]: Leaving directory 
`/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian/work/gcc-3.4'
 debian/rules build
make[2]: Entering directory 
`/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian/work/gcc-3.4'
make[2]: Nothing to be done for `build'.
make[2]: Leaving directory 
`/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian/work/gcc-3.4'
 fakeroot debian/rules binary
make[2]: Entering directory 
`/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian/work/gcc-3.4'
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_testdir
dh_testroot
# Install files to their package directories
dh_installdocs
dh_installchangelogs
mkdir -p debian/libgcc1/lib
cp /libgcc_s.so.1 debian/libgcc1/lib/
/scratchbox/tools/bin/cp: cannot stat `/libgcc_s.so.1': No such file or 
directory
make[2]: *** [binary-arch] Error 1
make[2]: Leaving directory 
`/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian/work/gcc-3.4'
make[1]: *** [build-packages] Error 2
make[1]: Leaving directory `/home/thani/sb-toolchain-extras/cc/gcc-3.4-debian'
make: *** [dep-../../cc/gcc-3.4-debian] Error 2
make: Leaving directory `/home/thani/sb-toolchain-extras/meta/alien-tc'

1. Why is it searching for libgcc_s.so.1 when I'm setting it for uClibc? 
2. Why it it failing for sh and gcc commands. Both files are present in the 
directory and are executable. 
/scratchbox/tools/bin/sh: /scratchbox/compilers/bin/gcc: No such file or 
directory
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to 
default (native compilation)

Could someone help me resolve the issue?

Thanks,
Thani

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

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

Reply via email to