I am trying to bulid glibc from source at 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"wget --no-check-certificate https://ftp.gnu.org/gnu/glibc/glibc-$GLIBC_VERSION.tar.gz## extact to GLIBC_DIRmkdir bulidcd bulid../configure --prefix="$GLIBC_INSTALL_DIR" --enable-add-ons --disable-werror --with-headers=$HOME/.local/src/linux-header/includemake -j3error:
.local/src/opt/glibc-2.28/build/misc/flistxattr.osIn file included from <command-line>: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); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I have tried:
# https://stackoverflow.com/questions/11852123/glibc-error-while-building-linux-from-scratchmake cleanmake -j2 CFLAGS="-U_FORTIFY_SOURCE -O2 -fno-stack-protector"configure CFLAGS="-O2 -U_FORTIFY_SOURCE -fno-stack-protectormake -j2# https://www.reddit.com/r/archlinux/comments/o3fqy4/problem_with_building_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/}"However, it's not working.