1

我正在尝试使用 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

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

4

0 回答 0