LINUX.ORG.RU

Проблема компиляции glibc

 , , , ,


1

1
stdin>: In function 'dummy':
<stdin>:11:61: error: 'REG_RBP' undeclared (first use in this function)
<stdin>:11:61: note: each undeclared identifier is reported only once for each function it appears in
<stdin>:12:61: error: 'REG_RSP' undeclared (first use in this function)
<stdin>:13:61: error: 'REG_RBX' undeclared (first use in this function)
<stdin>:14:60: error: 'REG_R8' undeclared (first use in this function)
<stdin>:15:60: error: 'REG_R9' undeclared (first use in this function)
<stdin>:16:61: error: 'REG_R10' undeclared (first use in this function)
<stdin>:17:61: error: 'REG_R11' undeclared (first use in this function)
<stdin>:18:61: error: 'REG_R12' undeclared (first use in this function)
<stdin>:19:61: error: 'REG_R13' undeclared (first use in this function)
<stdin>:20:61: error: 'REG_R14' undeclared (first use in this function)
<stdin>:21:61: error: 'REG_R15' undeclared (first use in this function)
<stdin>:22:61: error: 'REG_RDI' undeclared (first use in this function)
<stdin>:23:61: error: 'REG_RSI' undeclared (first use in this function)
<stdin>:24:61: error: 'REG_RDX' undeclared (first use in this function)
<stdin>:25:61: error: 'REG_RAX' undeclared (first use in this function)
<stdin>:26:61: error: 'REG_RCX' undeclared (first use in this function)
<stdin>:27:61: error: 'REG_RIP' undeclared (first use in this function)
<stdin>:32:63: error: 'struct _libc_fpstate' has no member named 'mxcsr'
make[2]: *** [/storage/devel/qemu_lin/src/glibc-2.23/build/ucontext_i.h] Error 1
make[2]: Leaving directory `/storage/devel/qemu_lin/src/glibc-2.23/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/storage/devel/qemu_lin/src/glibc-2.23'
make: *** [all] Error 2

Система: Debian Wheezy

★★★★★

Система: Debian Wheezy

glibc-2.23

Даже в unstable ещё нет, только в experimental. Проверял, glibc 2.23 поддерживает версию gcc из Wheezy? И какой gcc используешь?

gag ★★★★★ ()
Ответ на: комментарий от gag
root@file-st:/storage/devel/qemu_lin/src/glibc-2.13/build# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5) 
root@file-st:/storage/devel/qemu_lin/src/glibc-2.13/build# 
ne-vlezay ★★★★★ ()
Ответ на: комментарий от ne-vlezay
<stdin>:27:61: error: 'REG_RIP' undeclared (first use in this function)

REG_RIP - это для x86_64, а gcc у тебя:

Target: i486-linux-gnu
И отсутствует:
Configured with: ... --with-multilib-list=m32,m64 --enable-multilib
Может доустановка gcc-multilib и поможет.

gag ★★★★★ ()

Сегодня мы с тобой одновременно собираем glibc!

ZenitharChampion ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.