Nothing is impossible
全部博文(32)
分类: LINUX
2008-08-27 00:36:16
demo-arm.sh arm.dat gcc-4.1.0-glibc-2.3.2-tls.dat |
KERNELCONFIG=`pwd`/arm.config TARGET=arm-linux-gnu //这里原来是arm-unknown-linux-gnu,红色部分都不要写在该文件里 TARGET_CFLAGS="-O" |
configure: error: |
... #eval `cat arm.dat gcc-4.1.0-glibc-2.3.2-tls.dat` sh all.sh --notest eval `cat arm.dat gcc-4.3.0-glibc-2.3.6-tls.dat` sh all.sh --notest |
BINUTILS_DIR=binutils-2.16.1 GCC_CORE_DIR=gcc-3.3.6 GCC_DIR=gcc-4.3.0 GLIBC_DIR=glibc-2.3.6 LINUX_DIR=linux-2.6.26 LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0 GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.6 GDB_DIR=gdb-6.5 GLIBC_EXTRA_CONFIG="$GLIBC_EXTRA_CONFIG --with-tls --with-__thread --enable-kernel=2.4.18" |
In file included from version.c:33: /opt/software/crosstool-0.43/build/arm-linux-gnu/gcc-4.3.0-glibc-2.3.6/build-glibc/csu/version-info.h:2:1: missing terminating " character /opt/software/crosstool-0.43/build/arm-linux-gnu/gcc-4.3.0-glibc-2.3.6/build-glibc/csu/version-info.h:3:1: missing terminating " character make[2]: *** [/opt/software/crosstool-0.43/build/arm-linux-gnu/gcc-4.3.0-glibc-2.3.6/build-glibc/csu/version.o] 错 |
"Compiled on a Linux 2.6.12 system on 2008-08-25.\n" "Available extensions: " " GNU libio by Per Bothner\n" " crypt add-on version 2.1 by Michael Glad and others\n" " linuxthreads-0.10 by Xavier Leroy\n" " BIND-8.2.3-T5B\n" " libthread_db work sponsored by Alpha Processor Inc\n" " NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n" |
In Ubuntu 6.10, the default system shell, /bin/sh, was changed to dash (the Debian Almquist Shell); previously it had been bash (the GNU Bourne-Again Shell). The same change will affect users of Ubuntu 6.06 LTS upgrading directly to Ubuntu 8.04 LTS. This document explains this change and what you should do if you encounter problems. The default login shell remains bash. |
不过,我查看了一下我的shell($echo $SHELL),发现是bash,那就应该不是shell的原因了吧
再参考
《 》
找到了解决办法
步骤:
a. 进入crosstool的源目录(从demo-arm.sh知道),找到glibc-2.3.6.tar.bz2解压
$tar jxvf glibc-2.3.6.tar.bz2
b. 修改csu/目录下的Makefile
$gedit glibc-2.3.6/csu/Makefile
找到最后一个echo并修改并保存
echo "\"Available extensions:\\n\""; \ |
修改成
echo "\"Available extensions:\\\\n\""; \ |
c. 重新生成glibc-2.3.6.tar.bz2
$tar jcf glibc-2.3.6.tar.bz2 glibc-2.3.6/
这之前,我先备份了glibc-2.3.6.tar.bz2,以免错误发生
d. 重新运行$./demo-arm.sh
crosstool: glibc refuses to build if LD_LIBRARY_PATH is set. Please unset it before running this script. |
../sysdeps/generic/s_fmax.c: In function `__fmax': ../sysdeps/generic/s_fmax.c:28: internal compiler error: in elim_reg_cond, at flow.c:3328 Please submit a full bug report, with preprocessed source if appropriate. See make[2]: *** [/opt/software/crosstool-0.43/build/arm-linux-gnu/gcc-4.3.0-glibc-2.3.6/build-glibc/math/s_fmax.os] 错 |
configure: error: |