[Scratchbox-users] Toolchain configuration for CodeSourcery
2006q3.27
Matt Hoosier
matt.hoosier at gmail.com
Mon Nov 20 16:19:53 EET 2006
Hi Christian,
When I last checked out sb-toolchain-extras-1.0.6, there wasn't yet a
default debianized template for gcc 4.x. To simulate one, you can
pretty much copy the cc/gcc-3.4-debian directory and rename it as
gcc-4.1. Just edit whatever files inside it refer explicitly to
gcc-3.x, and things should work.
I remember doing this once or twice to try newer packaging CS toolchains.
--Matt
On 11/20/06, Christian Cier-Zniewski <christian.cier at uni-dortmund.de> wrote:
> Hello,
>
> I need some help in setting up the latest CS toolchain as a foreign
> toolchain in Scratchbox Apophis r4.
>
> When I try to build the config file this results in the following output :
> ----
> [sbox-host: /scratchbox/compilers/cs2006q3.27-glibc-arm] >
> ~/sb-toolchain-extras/confhelper/create_toolchain_conf.py
>
> COMPILER_NAME = cs2006q3.27-glibc-arm
> COMPILER_PACKAGE = <you have to fill in this one>
> ALIEN_TC = yes
>
> CC_VER = 4.1
> CC_GCCVER = 4.1.1
> CC_FULLVER = 4:$(CC_GCCVER)
> CC_DEBIAN_DIR = gcc-3.4-debian
>
> ARCH = arm
> SUB_ARCH = $(ARCH)
> VENDOR = none-
> TOOLCHAIN_PREFIX_END = gnueabi-
> TARGET_END = -gnueabi
>
> BINUTILS_FULLVER = (CodeSourcery-sb1
>
> HEADERS_DIR = $(COMPILER_DIR)/arm-none-linux-gnueabi/libc/usr/include
> LINUX_HEADERS_SUBDIRS = linux asm asm-generic
> LINUX_HEADERS_VER = unknown
>
> LIBC_VER = 2.3.6
> LIBC_FILES_BINS = arm-none-linux-gnueabi/libc/armv4t/sbin
> arm-none-linux-gnueabi/libc/armv4t/usr/bin
> arm-none-linux-gnueabi/libc/armv4t/usr/lib/bin
> arm-none-linux-gnueabi/libc/armv4t/usr/sbin
> arm-none-linux-gnueabi/libc/sbin arm-none-linux-gnueabi/libc/usr/bin
> arm-none-linux-gnueabi/libc/usr/lib/bin arm-none-linux-gnueabi/libc/usr/sbin
> LIBC_FILES_LIBS = arm-none-linux-gnueabi/lib
> arm-none-linux-gnueabi/lib/armv4t arm-none-linux-gnueabi/libc/armv4t/lib
> arm-none-linux-gnueabi/libc/armv4t/usr/lib
> arm-none-linux-gnueabi/libc/lib arm-none-linux-gnueabi/libc/usr/lib
> CHECKSUM_FILE = ../../$(CONFIG:.conf=.checksums)
>
> ----
>
> Especially BINUTILS_FULLVER and LINUX_HEADERS_VER seem to have some
> problems, but I do not know what the enter here.
>
> Binutils seem to have version number 2.17. But what about the kernel
> headers?
>
> I tried to set BINUTILS_FULLVER = 2.17 which seemed to be ok.
> Setting LINUX_HEADERS_VER = 2.6.12.0 does not seem to work.
> (no surprise since the value is guessed)
>
> When trying to build the extra tools I get:
> ----
> [===== NOW BUILDING: linux-kernel-headers-2.6.12.0 =====]
> [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.12.0 && env
> COMPILER_DIR=/scratchbox/compilers/cs2006q3.27-glibc-arm
> TARGET=arm-none-linux-gnueabi
> SBOX_REDIRECT_BINARIES=/scratchbox/compilers/bin/gcc:/scratchbox/compilers/cs2006q3.27-glibc-arm/bin/arm-none-linux-gnueabi-gcc
> LINUX_HEADERS_DIRS="/scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-gnueabi/libc/usr/include/linux
> /scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-gnueabi/libc/usr/include/asm
> /scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-gnueabi/libc/usr/include/asm-generic"
> dpkg-buildpackage -rfakeroot -b -uc
> dpkg-parsechangelog: error: cannot open debian/changelog to find format:
> No such file or directory
> dpkg-buildpackage: unable to determine source package
> make[1]: *** [build-packages] Error 1
> make[1]: Leaving directory
> `/home/cier/sb-toolchain-extras/toolchain/base-debian'
> make: *** [dep-../../toolchain/base-debian] Error 2
> make: Leaving directory `/home/cier/sb-toolchain-extras/meta/alien-tc'
> [sbox-host: ~/sb-toolchain-extras] >
> ----
>
> Any help is appreciated.
>
> Best regards,
> Christian
>
>
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-users at lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
>
More information about the Scratchbox-users
mailing list