This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

crosstool-0.43 doesn't compile glibc-2.3.2


Hello,

I've been trying unsuccessfully to compile a toolchain for arm9tdmi
with gcc-4.1.0-libc-2.3.2 using crosstool-0.43 on an ubuntu-server
7.10
It may seem weird, especially that I'm using the default settings for
it (see below the config scripts), but it keep exiting with the very
same error on version.o
I googled this problem before posting my message, and I had some hints
like the system's gcc version (even though I don't know what does it
have to see with the glibc since it's compiled with the "CORE_GCC"
which was successfully compiled).
Here are more informations about the versions of the different
elements on the system :
    Linux CompilServ 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT
2007 i686 GNU/Linux
    gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) [I
also tried downgrading gcc and using gcc-3.3]
    bison (GNU Bison) 2.3 [had to install it with flex after a
dependency error first time I tried crosstool]
    flex 2.5.33
    m4 (GNU M4) 1.4.10 [dependency of bison]
Since my server is not connected to Internet, I downloaded myself the
different elements for the toolchain and did put them all in
~/download/ :
    binutils-2.16.1.tar.gz
    gcc-4.1.0.tar.gz
    glibc-2.3.2.tar.gz
    linux-2.6.15.4.tar.gz
    gcc-3.3.6.tar.gz
    gdb-6.4.tar.bz2
    glibc-linuxthreads-2.3.2.tar.gz
    linux-libc-headers-2.6.12.0.tar.bz2
Here are my config files :
---------------------------( arm9tdmi.dat )----------------------------------
KERNELCONFIG=`pwd`/arm.config
TARGET=arm-9tdmi-linux-gnu
GCC_EXTRA_CONFIG="--with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi"
TARGET_CFLAGS="-O"
---------------------------( gcc-4.1.0-glibc-2.3.2.dat )-----------------
BINUTILS_DIR=binutils-2.16.1
GCC_CORE_DIR=gcc-3.3.6
GCC_DIR=gcc-4.1.0
GLIBC_DIR=glibc-2.3.2
LINUX_DIR=linux-2.6.15.4
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.2
GDB_DIR=gdb-6.4
--------------------------( demo-arm9tdmi.sh )--------------------------
#!/bin/sh

set -ex
TARBALLS_DIR=$HOME/downloads
RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,c++"
export GCC_LANGUAGES

mkdir -p $RESULT_TOP

eval `cat arm9tdmi.dat gcc-4.1.0-glibc-2.3.2.dat` sh all.sh --notest
echo Done.
Finally here is the error log

--------------------------( $tail build.log
)------------------------------------
/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version-info.h:1:1:
missing terminating " character
/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version-info.h:2:1:
missing terminating " character
/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version-info.h:3:1:
missing terminating " character
/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version-info.h:4:1:
missing terminating " character
make[2]: *** [/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version.o]
Error 1
make[2]: Leaving directory
`/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory
`/home/config/crosstool/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/glibc-2.3.2'
make: *** [all] Error 2

Any indications are most welcome, thank you in advance.
Khalifa

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]