LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-01-2019, 08:51 AM   #1
jemzipx
LQ Newbie
 
Registered: Oct 2019
Posts: 2

Rep: Reputation: Disabled
Base System's Glibc Error: inlining failed


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.
 
Old 10-02-2019, 06:01 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,650
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Would perhaps be worth running it in 9.0 and see if you get the same result. If not, tell the developers.
 
Old 10-02-2019, 08:51 AM   #3
jemzipx
LQ Newbie
 
Registered: Oct 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Would perhaps be worth running it in 9.0 and see if you get the same result. If not, tell the developers.
Thank you for your help. I managed to solve the issue. It turned out I had left some CFLAGS somewhere in my scripts that was messing things up. I blame nobody except my own ignorance. A note to future self: Please do not leave CFLAGS in random places.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Error: Cannot find base url for repo: base (CentOS 6) tverbeek Linux - Newbie 8 10-04-2013 10:49 AM
LFS 7.3: 6.9. Glibc-2.17 failed glibc testing after 2 hours running quicktime2004 Linux From Scratch 5 06-12-2013 02:48 AM
[SOLVED] Python Installed; bash command: python base.py. gets syntax error in base.py cre84j Linux - Software 4 01-23-2011 04:46 PM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
Should I disable inlining ? cigarstub Programming 1 09-14-2005 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration