|
发表于 2008-4-24 12:49:55
|
显示全部楼层
我也遇到了这样的问题,请高手帮忙了
Post by lhfzuel;1774189
(我安装的是Red Hat Linux 9.0,系统是新的,内核版本2.4.18,我在虚拟机上编译交叉编译器的)
1、我登录root用户,先建立/home/mike/downloads,并复制安装包到这;
2、在/home/mike/目录下解压crosstool-0.42的压缩包;
3、然后进入crosstool-0.42,并复制arm.sh;arm.dat;gcc-3.3.6-glibc-2.3.2.dat到crosstool-0.42;(这些文件是制定好的,已经配置好了版本和路径)
4、最后运行./arm.sh,却报告错误如图:
我同时设置了LINUX_DIR与LINUX_SANITIZED_HEADER_DIR;
并且DEJAGNU、GCC_EXTRA_CONFIG和GLIBC_EXTRA_CONFIG未配置
我觉得这个步骤应该不难,网络上很多文章都怎么做的。我其中操作应该也不会有错,不知什么原因,请帮忙看看,不胜感激。
++ GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.2
++ LINUX_DIR=linux-2.6.10
++ LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
++ sh all.sh --notest --testlinux
You set both LINUX_DIR and LINUX_SANITIZED_HEADER_DIR - ignoring LINUX_DIR for t
he build
DEJAGNU not set, so not running any regression tests
GCC_EXTRA_CONFIG not set, so not passing any extra options to gcc's configure sc
ript
GLIBC_ADDON_OPTIONS not set, so building all glibc add-on's
+ TOOLCOMBO=gcc-3.3.6-glibc-2.3.2
++ pwd
+ BUILD_DIR=/home/hjh/crosstool-0.42/build/arm-linux/gcc-3.3.6-glibc-2.3.2
++ pwd
+ TOP_DIR=/home/hjh/crosstool-0.42
+ test -z ''
+ SRC_DIR=/home/hjh/crosstool-0.42/build/arm-linux/gcc-3.3.6-glibc-2.3.2
+ echo 'SRC_DIR not set, so source tarballs will be unpacked in the build direct
ory'
SRC_DIR not set, so source tarballs will be unpacked in the build directory
+ abort 'Don'\''t run all.sh or crosstool.sh as root, it'\''s dangerous'
+ echo 'Don'\''t' run all.sh or crosstool.sh as root, 'it'\''s' dangerous
Don't run all.sh or crosstool.sh as root, it's dangerous
+ exec false
请教高手指点。 |
|