Fedora-ARM
全部博文(241)
分类: LINUX
2010-03-19 00:04:32
libncurses5-dev bison flex texinfo automake libtool patch gcj cvs cvsd gawk svn (2011.09.16补充) |
mkdir crosstool-ng-X.Y.Z_build #这次编译新交叉编译器的工作目录 patch -p1 < <补丁文件> # 给crosstool-ng打补丁(如果有) ./configure --prefix=${CROSSTOOLNG}/crosstool-ng-X.Y.Z_install #配置crosstool-ng |
cd ${CROSSTOOLNG}/crosstool-ng-X.Y.Z_build/ #进入编译新交叉编译器的工作目录 #拷贝默认配置文件到工作目录 mv crosstool.config .config #修改文件名 ../crosstool-ng-X.Y.Z_install/bin/ct-ng menuconfig 进入menuconfig,开始修改配置。 |
man ./gcc.1 |
...... ...... |
[INFO ] ================================================================= [INFO ] Installing final compiler [EXTRA] Configuring final compiler [EXTRA] Building final compiler [ERROR] jar: internal error: [ERROR] make[4]: *** [libgcj-4.3.2.jar] Error 1 [ERROR] make[3]: *** [all-recursive] Error 1 [ERROR] make[2]: *** [all-target-libjava] Error 2 [ERROR] make[1]: *** [all] Error 2 [ERROR] Build failed in step 'Installing final compiler' [ERROR] Error happened in '/home/tekkaman/development/research/crosstool-ng/crosstool-ng-1.6.1_install/lib/ct-ng-1.6.1/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry) [ERROR] called from '/home/tekkaman/development/research/crosstool-ng/crosstool-ng-1.6.1_install/lib/ct-ng-1.6.1/scripts/build/cc/gcc.sh' at line # 350 in function 'do_cc' [ERROR] called from '/home/tekkaman/development/research/crosstool-ng/crosstool-ng-1.6.1_install/lib/ct-ng-1.6.1/scripts/crosstool-NG.sh' at line # 562 in function 'main' [ERROR] Look at '/home/tekkaman/development/x-tools/arm-tekkaman-linux-gnueabi/build.log' for more info on this error. [ERROR] (elapsed: 67:10.67) [67:11] / make: *** [build] 错误 2 |
CT_KERNEL_VERSION= CT_KERNEL_V_2_6_??_?=y CT_LIBC_GLIBC_MIN_KERNEL= |
../crosstool-ng-1.6.1_install/bin/ct-ng bluid |
bellcat20082010-09-25 00:37:58
我觉得一定要细读x-tools/arm-unknown-linux-gnueabi/build.log所指出的错误原因和解决办法。另外,crosstool-ng不要安装在/usr/或/usr/local下面,否则可能出现chmod错误;另外,编译机器本身的gcc和g++的版本要一致,g++是需要的。
chinaunix网友2010-05-25 22:58:35
For auto-completion, do not forget to install 'ct-ng.comp' into you 'bash_completion.d' root@ban-desktop:/home/ban/armlinux/crosstool-ng/crosstool-ng-1.7.0# ct-ng menuconfig CONF config/config.in root@ban-desktop:/home/ban/armlinux/crosstool-ng/crosstool-ng-1.7.0# ct-ng build [INFO ] Performing some trivial sanity checks [INFO ] Build started 20100525.225542 [INFO ] Building environment variables [INFO ] ================================================================= [INFO ] R
chinaunix网友2010-04-30 10:29:11
你好,我在按照你提供的方法编译交叉编译器时遇到了下面一个错误: [INFO ] Installing native gdb [INFO ] ================================================================= [INFO ] Installing ncurses library [INFO ] ================================================================= [INFO ] Installing native ncurses tic [EXTRA] Configuring ncurses tic [EXTRA] Building ncurses tic [ERROR] make[1]: *** [tic] Error 1 [ERROR] Build failed in step 'Installing native ncurses tic' [ERRO