Hello,

I am use toolchain generated by crosstool-0.43 in scratchbox. The toolchain
is build with gcc 4.1.1, glibc 2.5 for iWMMXt with ARM EABI support. I am
using scratchbox 1.0.7.

The very first question. Somewhere in the mailing list I read scratchbox
does not support gcc >= 4.0. Can I use gcc 4.1.1 with scratchbox?

I am refering "Foreign Toolchain" and "CrossToolToolChain" from scratchbox
Wiki.

According to CrossToolToolChain, I have to build toolchain if it is using
glibc >= 2.4. So, ran crosstool script inside the scratchbox  and build the
toolchain. It has been  created and placed in
/scratchbox/compilers/mycoolcompiler. It has created serveral directories,
bin, lib, info, include, libexec, ... etc.

I hope I have not missed anything yet.

Now, according to Foreign Toolchain, I cross-checked the toolchain build as

/scratchbox/compilers/arm-linux-withmyhacks/bin/your-arch-name-gcc --version

and I got :

arm-iwmmxt-linux-gnueabi-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Gave write permission to directories:
/scratchbox/compilers
/scratchbox/device_tools

Used sb-menu to create HOST target with debian-sarge and perl devkit. Here,
I have a question. Which compiler should I use? I have follwoing in my
scratchbox.
1.  arm-eabi-gcc-4.1.1-glibc-2.5
2.  cs2005q3.2-glibc-i386
3.  cs2005q3.2-glibc-arm

I choose cs2005q3.2-glibc-i386 and proceeded further.

Fetched sb-toolchain-extras repository.

darcs get --set-scripts-executable
http://scratchbox.org/repos/1.0/sb-toolchain-extras

Created the configuration file using

create_toolchain_conf.py.

configuration seems to be fine.... no error yet.

Now building auxiliary tools

Ran following from sb-crosstool-extra

  make CONFIG=meta/alien-tc/yourconfig.conf -C meta/alien-tc all-sums

and

  make CONFIG=meta/alien-tc/yourconfig.conf -C meta/alien-tc

BUT

make: Entering directory `/home/arabinda/sb-toolchain-extras/meta/alien-tc'
[===== NOW BUILDING:    alien-tc-1      =====]
        [fetch] complete for alien-tc.
        [checksum] complete for alien-tc.
        [extract] complete for alien-tc.
        [patch] complete for alien-tc.
 ==> Building toolchain/post-install as a dependency
 ==> Building binutils/binutils-debian as a dependency
 ==> Building toolchain/base-debian as a dependency
make[1]: Entering directory
`/home/arabinda/sb-toolchain-extras/toolchain/base-debian'
[===== NOW BUILDING:    linux-kernel-headers-2.6.11.2   =====]
        [fetch] complete for linux-kernel-headers.
        [checksum] complete for linux-kernel-headers.
        [extract] complete for linux-kernel-headers.
        [patch] complete for linux-kernel-headers.
        [configure] complete for linux-kernel-headers.
cd work/linux-kernel-headers-2.6.11.2 && env
COMPILER_DIR=/scratchbox/compilers/arm-eabi-gcc-4.1.1-glibc-2.5TARGET=arm-iwmmxt-linux-gnueabi
SBOX_REDIRECT_BINARIES=/scratchbox/compilers/bin/gcc:/scratchbox/compilers/arm-
eabi-gcc-4.1.1-glibc-2.5/bin/arm-iwmmxt-linux-gnueabi-gcc
LINUX_HEADERS_DIRS="/scratchbox/compilers/arm-eabi-gcc-4.1.1-glibc-2.5/arm-iwmmxt-linux-gnueabi/include/linux
/scratchbox/compilers/arm-eabi-gcc-4.1.1-glibc-2.5/arm-iwmmxt-linux-gnueabi/include/asm
/scratchbox/compilers/arm-
eabi-gcc-4.1.1-glibc-2.5/arm-iwmmxt-linux-gnueabi/include/asm-generic"
dpkg-buildpackage -rfakeroot -b -uc
dpkg-buildpackage: source package is linux-kernel-headers
dpkg-buildpackage: source version is 2.6.11.2-sb1
dpkg-buildpackage: source maintainer is Scratchbox Developers <
[email protected]>
dpkg-architecture: warning: Unknown gcc system type
arm-iwmmxt-linux-gnueabi, falling back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does not
match gcc system type arm-iwmmxt-linux-gnueabi.
dpkg-architecture: warning: Unknown gcc system type
arm-iwmmxt-linux-gnueabi, falling back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does not
match gcc system type arm-iwmmxt-linux-gnueabi.
dpkg-buildpackage: host architecture is i386
/var/lib/dpkg/status: No such file or directory
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
make[1]: *** [build-packages] Error 3
make[1]: Leaving directory
`/home/arabinda/sb-toolchain-extras/toolchain/base-debian'
make: *** [dep-../../toolchain/base-debian] Error 2
make: Leaving directory `/home/arabinda/sb-toolchain-extras/meta/alien-tc'

Please help.

Arabinda
_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel

Reply via email to