|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
crosstool-0.43 doesn't compile glibc-2.3.2Hello,
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 |
|
|
Re: crosstool-0.43 doesn't compile glibc-2.3.2On 2008-05-20 10:12, Khalifa ROUIS wrote:
> I've been trying unsuccessfully to compile a toolchain for arm9tdmi > with gcc-4.1.0-libc-2.3.2 glibc 2.3.2 was released around March 2003. gcc 4.1.0 was released around February 2006. Can you spot the problem? :) It can be very hard to get combinations like this to compile... -- For unsubscribe information see http://sourceware.org/lists.html#faq |
|
|
Re: crosstool-0.43 doesn't compile glibc-2.3.2Thank you for your prompt replay Dimitry,
> glibc 2.3.2 was released around March 2003. > gcc 4.1.0 was released around February 2006. > > Can you spot the problem? :) It can be very hard to get combinations > like this to compile... the gcc-4.1.0-glibc-2.3.2.dat actually exists by default in crosstool-0.43, moreover, it's mentioned in demo-arm9tdmi.sh under the comment "This script has one line for each known working toolchain for this architecture." which means that it's known to be working .... O_o so, I guess that I just still need help ^_^; Thank you anyway Dimitry. -- For unsubscribe information see http://sourceware.org/lists.html#faq |
|
|
Re: crosstool-0.43 doesn't compile glibc-2.3.2On 2008-05-20 14:11, Khalifa ROUIS wrote:
> the gcc-4.1.0-glibc-2.3.2.dat actually exists by default in > crosstool-0.43, moreover, it's mentioned in demo-arm9tdmi.sh under the > comment "This script has one line for each known working toolchain for > this architecture." which means that it's known to be working .... O_o Aha, well then the next hint might be that you're running Ubuntu, which doesn't use bash as /bin/sh by default. And it looks like glibc's build scripts really require bash, although they pretend to be POSIX sh compatible. (This may have been fixed after 2.3.2, I'm not sure). So, you can please try: sudo dpkg-reconfigure -plow dash and answering "No" to the question if you want to install dash as /bin/sh. Then run the crosstool build again. -- For unsubscribe information see http://sourceware.org/lists.html#faq |
|
|
Re: crosstool-0.43 doesn't compile glibc-2.3.2Hello,
> So, you can please try: > > sudo dpkg-reconfigure -plow dash > > and answering "No" to the question if you want to install dash as /bin/sh. > Then run the crosstool build again. > This didn't actually solve the problem .. :-/ But while compiling manually another toolchain (for arm-elf with newlib) newlib didn't compile too, but at least gave me an indication about the source of all my problem : makeinfo !!! I didn't have makeinfo ! so I had to install it (it's included in texinfo for ubuntu) and then everything worked just fine ... even for glibc. Thank you for your help Dimitry, and I hope this may help someone else too. -- For unsubscribe information see http://sourceware.org/lists.html#faq |
|
|
Re: crosstool-0.43 doesn't compile glibc-2.3.2All,
Thanks a lot for this valuable information. I discovered that to fix this problem of 'missing " ', both of the following steps are needed to build 0.43 on Ubuntu 8.10 i.e., 1. sudo dpkg-reconfigure -plow dash and answering "No" to the question if you want to install dash as /bin/sh 2. sudo apt-get install texinfo On my machine I installed texinfo and it still failed with same error. Then I did step 1 above and it worked!
|
|
|
Re: crosstool-0.43 doesn't compile glibc-2.3.2On Wed, Apr 29, 2009 at 11:13 AM, rbharol<rajeev_bharol@...> wrote:
> > All, > Thanks a lot for this valuable information. > I discovered that to fix this problem of 'missing " ', > both of the following steps are needed to build 0.43 on Ubuntu 8.10 i.e., > > 1. sudo dpkg-reconfigure -plow dash > and answering "No" to the question if you want to install dash as > /bin/sh > 2. sudo apt-get install texinfo > > On my machine I installed texinfo and it still failed with same error. > Then I did step 1 above and it worked! > > > Khalifa ROUIS wrote: >> >> Hello, >> >>> So, you can please try: >>> >>> sudo dpkg-reconfigure -plow dash >>> >>> and answering "No" to the question if you want to install dash as >>> /bin/sh. >>> Then run the crosstool build again. >>> >> >> This didn't actually solve the problem .. :-/ >> But while compiling manually another toolchain (for arm-elf with >> newlib) newlib didn't compile too, but at least gave me an indication >> about the source of all my problem : makeinfo !!! >> I didn't have makeinfo ! so I had to install it (it's included in >> texinfo for ubuntu) and then everything worked just fine ... even for >> glibc. >> Thank you for your help Dimitry, and I hope this may help someone else >> too. >> >> -- >> For unsubscribe information see http://sourceware.org/lists.html#faq >> >> >> > > -- > View this message in context: http://www.nabble.com/crosstool-0.43-doesn%27t-compile-glibc-2.3.2-tp17335432p23298220.html > Sent from the Sourceware - crossgcc list mailing list archive at Nabble.com. > > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > > Can you post the complete error message. Thx -Khem -- For unsubscribe information see http://sourceware.org/lists.html#faq |
| Free embeddable forum powered by Nabble | Forum Help |