使用crosstool-ng交叉编译工具链

时间:2015-01-30 06:58:56

标签: glibc crosstool-ng

我正在尝试使用glibc 2.5版构建一个Linux环境,以使用crosstool-ng编译C代码。但由于某种原因,我无法在配置中找到glibc 2.5版。有谁知道如何解决这个问题?

我尝试使用旧版本的glibc 2.2,并在构建库时遇到错误。

 Installing C library headers & start files
[EXTRA]    Configuring C library
[ERROR]    configure: error: GNU libc requires kernel header files from
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@354]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@149]
[ERROR]  >>        called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@66]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/crosstool-ng/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 24:43.44)
[24:45] / make: *** [build] Error 1

以下是我修改的所有配置:

Target Option
    Target Architecture    x86
OS
    Target OS      Linux
    Linux kernel version  -  2.6.27.62(actually need 2.6.18 but cannot find it)

Binary utilities
    binutils version 2.25

C-library
    C library    -- glibc 2.2    need glibc 2.5

C compiler   -- gcc version 4.4.5

有谁能告诉我我的配置有什么问题以及如何解决?感谢。

0 个答案:

没有答案