List Info

Thread: Toolchain configuration for CodeSourcery 2006q3.27




Toolchain configuration for CodeSourcery 2006q3.27
user name
2006-11-20 12:02:04
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:/scratc
hbox/compilers/cs2006q3.27-glibc-arm/bin/arm-none-linux-gnue
abi-gcc
LINUX_HEADERS_DIRS="/scratchbox/compilers/cs2006q3.27-g
libc-arm/arm-none-linux-gnueabi/libc/usr/include/linux
/scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-g
nueabi/libc/usr/include/asm
/scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-g
nueabi/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-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Toolchain configuration for CodeSourcery 2006q3.27
user name
2006-11-20 14:19:53
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.cieruni-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:/scratc
hbox/compilers/cs2006q3.27-glibc-arm/bin/arm-none-linux-gnue
abi-gcc
>
LINUX_HEADERS_DIRS="/scratchbox/compilers/cs2006q3.27-g
libc-arm/arm-none-linux-gnueabi/libc/usr/include/linux
>
/scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-g
nueabi/libc/usr/include/asm
>
/scratchbox/compilers/cs2006q3.27-glibc-arm/arm-none-linux-g
nueabi/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-userslists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
>
_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Toolchain configuration for CodeSourcery 2006q3.27
user name
2006-11-20 15:29:17
Hi Matt,

Matt Hoosier schrieb:
> 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.

So do I have to build the CS toolchain from source by
myself?

I just wanted to use the _prebuilt_ CS toolchain. Refering
to the
Scratchbox wiki I also have to build those auxiliary tools
specific for
each toolchain (fakeroot, gdb, etc).
http
://www.scratchbox.org/wiki/ForeignToolchains

Unfortunately, building the aux tools does not work.

Christian





_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Toolchain configuration for CodeSourcery 2006q3.27
user name
2006-11-20 15:35:16
On 11/20/06, Christian Cier-Zniewski <christian.cieruni-dortmund.de> wrote:
> Hi Matt,
>
> Matt Hoosier schrieb:
> > 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.
>
> So do I have to build the CS toolchain from source by
myself?

No. I meant to say that you should use the foreign-toolchain
procedure
exactly as described on the wiki, with the small addition
that you
have to make the gcc-4.1-debian directory analogous to the
ones SB
already supplies for gcc-3.3-debian and gcc-3.4-debian.
There's not
really much there: a changelog, skeleton control files, and
a rules
file (if memory serves).

>
> I just wanted to use the _prebuilt_ CS toolchain.
Refering to the
> Scratchbox wiki I also have to build those auxiliary
tools specific for
> each toolchain (fakeroot, gdb, etc).

The normal foreign toolchain import procedure (make -C
meta/alien-tc/myconfig.conf) will (or *should*)
automatically build
those auxiliary tools.

> http
://www.scratchbox.org/wiki/ForeignToolchains
>
> Unfortunately, building the aux tools does not work.

Assuming that the problem is not a result of the missing
gcc-4.1-debian directory, can you elaborate?

>
> Christian
>
>
>
>
>
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-userslists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
>
_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Toolchain configuration for CodeSourcery 2006q3.27
user name
2006-11-21 09:59:46
Hi,

Matt Hoosier wrote:
> have to make the gcc-4.1-debian directory analogous to
the ones SB
> already supplies for gcc-3.3-debian and gcc-3.4-debian.
There's not

ok, that seemed to work. But...

> The normal foreign toolchain import procedure (make -C
> meta/alien-tc/myconfig.conf) will (or *should*)
automatically build
> those auxiliary tools.

The cs2006q3 toolchain seems to be too "new" for
the tools that are
supposed to be build.

My observations:
-The strace-4.5.14 release is too old to work with this
toolchain. I had
to use the CVS version and I also had to remove CTL_PROC
from system.c
to compile successfully.

-build procedure claimed that the libtool checksum is wrong,
but the
checksum file contains the correct checksum. Don't know what
wrong here.
There is only one libtool.tar.gz file inside scratchbox
which has the
correct checksum.

-build procedure fails while building gdb which also seems
to be too old
for this toolchain.

Best regards,
Christian



_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )