- 论坛徽章:
- 0
|
我的编译环境是在fedora 7的环境下编译的.
我用的gcc是gcc-4.1.2 内核是linux-2.6.23.8, glibc是glibc-2.7,linuxthreads用的是glibc-linuxthreads-2.3.tar.gz
我已经用gcc-4.1.2编译好了arm-linux-gcc.
但是在用
======================================================================
CC=arm-linux-gcc ../../glibc-2.7/configure --host=arm-linux --prefix=/usr --enable-add-ons --with-headers=/home/jschen/arm/sysroot/include
======================================================================
/home/jschen/arm/sysroot/include是linux-2.6.23.8下相关的arm 和linux
但是编译的时候都出现下面的错误
[root@localhost glibc-build]# CC=arm-linux-gcc ../../glibc-2.7/configure --host=arm-linux --prefix=/usr --enable-add-ons --with-headers=/home/jschen/arm/sysroot/include
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnulibc1
checking host system type... arm-unknown-linux-gnu
configure: running configure fragment for add-on linuxthreads
我以为是linuxthreads的错误,把linuxthreads删除后再编译,出现下面的错误
[root@localhost glibc-build]# CC=arm-linux-gcc ../../glibc-2.7/configure --host=arm-linux --prefix=/usr --enable-add-ons --with-headers=/home/jschen/arm/sysroot/include
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnulibc1
checking host system type... arm-unknown-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... configure: error: The arm is not supported.
==============================================
这个问题怎么解决啊?有人碰到这样的问题没?? |
|