Я пытаюсь пробиться в Glibc из источника в Ubuntu 18.04
GLIBC_VERSION="2.28"
GLIBC_DIR="$HOME/.local/src/opt/glibc-$GLIBC_VERSION"
GLIBC_TAR="$HOME/.local/src/opt/glibc-$GLIBC_VERSION.tar.gz"
GLIBC_INSTALL_DIR="$HOME/.local/opt/glibc-$GLIBC_VERSION"
< /code>
wget --no-check-certificate https://ftp.gnu.org/gnu/glibc/glibc-$GL ... ION.tar.gz
## extact to GLIBC_DIR
< /code>
mkdir bulid
cd bulid
../configure --prefix="$GLIBC_INSTALL_DIR" --enable-add-ons --disable-werror --with-headers=$HOME/.local/src/linux-header/include
make -j3
< /code>
error:
.local/src/opt/glibc-2.28/build/misc/flistxattr.os
In file included from :0:0:
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:121:30: error: inlining failed in call to always_inline 'syslog': function not inlinable
ldbl_strong_alias (__syslog, syslog)
^
./../include/libc-symbols.h:135:26: note: in definition of macro '_strong_alias'
extern __typeof (name) aliasname __attribute__ ((alias (#name)));
^~~~~~~~~
../sysdeps/generic/math_ldbl_opt.h:12:44: note: in expansion of macro 'strong_alias'
#define ldbl_strong_alias(name, aliasname) strong_alias (name, aliasname)
^~~~~~~~~~~~
../misc/syslog.c:121:1: note: in expansion of macro 'ldbl_strong_alias'
ldbl_strong_alias (__syslog, syslog)
^~~~~~~~~~~~~~~~~
In file included from ../sysdeps/unix/sysv/linux/syslog.c:4:0:
../misc/syslog.c:153:3: note: called from here
syslog(INTERNALLOG,
^~~~~~~~~~~~~~~~~~~
"syslog: unknown facility/priority: %x", pri);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
< /code>
I have tried:
# https://stackoverflow.com/questions/118 ... om-scratch
make clean
make -j2 CFLAGS="-U_FORTIFY_SOURCE -O2 -fno-stack-protector"
< /code>
configure CFLAGS="-O2 -U_FORTIFY_SOURCE -fno-stack-protector
make -j2
< /code>
# https://www.reddit.com/r/archlinux/comm ... ing_glibc/
configure CFLAGS="-U_FORTIFY_SOURCE -O2 -fno-stack-protector" ${CFLAGS/-Wp,-D_FORTIFY_SOURCE=2/}"
make -j2 CFLAGS="-U_FORTIFY_SOURCE -O2 -fno-stack-protector ${CFLAGS/-Wp,-D_FORTIFY_SOURCE=2/}"
< /code>
However, it's not working.
Подробнее здесь: https://stackoverflow.com/questions/797 ... -inlinable
Ошибка строительства Glibc: `function. ⇐ Linux
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Основы функции - Function Function Function, выходящая из INT, более 99 [закрыто]
Anonymous » » в форуме Python - 0 Ответы
- 29 Просмотры
-
Последнее сообщение Anonymous
-