I've been building LFS for several times and never had an issue before until this time Glibc 2.30 is giving me a headache:
Code:
-DTOP_NAMESPACE=glibc -o /build_scripts/glibc/src/build/misc/syslog.o -MD -MP -MF /build_scripts/glibc/src/build/misc/syslog.o.dt -MT /build_scripts/glibc/src/build/misc/syslog.o
In file included from <command-line>:
../misc/syslog.c: In function '__vsyslog_internal':
../misc/syslog.c:121:30: error: inlining failed in call to always_inline 'syslog': function not inlinable
121 | ldbl_strong_alias (__syslog, syslog)
| ^~~~~~
./../include/libc-symbols.h:140:26: note: in definition of macro '_strong_alias'
140 | extern __typeof (name) aliasname __attribute__ ((alias (#name))) \
| ^~~~~~~~~
../sysdeps/generic/math_ldbl_opt.h:14:44: note: in expansion of macro 'strong_alias'
14 | #define ldbl_strong_alias(name, aliasname) strong_alias (name, aliasname)
| ^~~~~~~~~~~~
../misc/syslog.c:121:1: note: in expansion of macro 'ldbl_strong_alias'
121 | ldbl_strong_alias (__syslog, syslog)
| ^~~~~~~~~~~~~~~~~
In file included from ../sysdeps/unix/sysv/linux/syslog.c:4:
../misc/syslog.c:167:3: note: called from here
167 | syslog(INTERNALLOG,
| ^~~~~~~~~~~~~~~~~~~
168 | "syslog: unknown facility/priority: %x", pri);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/build_scripts/glibc/src/build/sysd-rules:213: /build_scripts/glibc/src/build/misc/syslog.o] Error 1
make[2]: Leaving directory '/build_scripts/glibc/src/glibc-2.30/misc'
make[1]: *** [Makefile:259: misc/subdir_lib] Error 2
make[1]: Leaving directory '/build_scripts/glibc/src/glibc-2.30'
make: *** [Makefile:9: all] Error 2
I re-run all LFS instructions from scratch several times and each time it fails at this point. I tried adding "-U_FORTIFY_SOURCE -O2 -fno-stack-protector" to CFLAGS which was suggested somewhere else and it didn't work.
I'm following the instructions in LFS Development. Could it be a bug in LFS Development. My Host system is OpenSuse. I tried it in Fedora and still ran into the same problem.
I've ran out of idea. Any suggestion would be greatly appreciated.