LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-24-2018, 02:38 PM   #1
proy_
LQ Newbie
 
Registered: Jun 2018
Posts: 3

Rep: Reputation: Disabled
Compile time error while building Linux Kernel 4.18


I am trying to disable inlining while compiling Linux kernel 4.18.

For this I have updated the Makefile according to: https://elinux.org/Kernel_dynamic_me...against_gcc.29

But while compiling I am getting following error:

>error: call to ‘__compiletime_assert_1094’ declared with attribute error: BUILD_BUG_ON failed: p4d_large(*p4d)

How can I get rid of the error while disabling inlining during kernel build?

Last edited by proy_; 10-24-2018 at 02:59 PM.
 
Old 10-25-2018, 06:23 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Divide and conquer.

Does it make without those CFLAGS? If so, enable them one at a time. I would say I have always found the kernel diagnostic enough on it's own. I would also read up on inlining. This seems to have interesting links. https://www.kernel.org/doc/local/inline.html

Why are you worried about inlining? AFAICT, gcc is continually a WIP in this area (I gather), and nobody really knows what order the cpu executes improvements anyhow, CPU microcode has been revised many times, so if your elinux docs aren't very up to date I wouldn't trust them.
 
Old 10-25-2018, 06:36 AM   #3
proy_
LQ Newbie
 
Registered: Jun 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the advice. I will try enabling them one at a time.

I want to disable inlining to get the accurate calling context. I am trying to understand some memory issues which can be understood through accurate call context. The observed call context is pointing to last known non-inlined function hiding all the inlined function calls which is not enough for my analysis. In fact, this is the reason for elinux is disabling inlining in https://elinux.org/Kernel_dynamic_me...against_gcc.29
 
Old 10-25-2018, 12:01 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Hey - that kernel Makefile patch dates from August 2012!

IIRC we were on gcc-4.x. I'm now running gcc-8.2.0. Every major version release is a compatibility break in some area. We've had 4 of them, standards have changed and to make a long story short, I would not take that url too seriously. Get something current.
 
  


Reply

Tags
compile error, linux kernels



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
Mandocs Error while building Linux kernel 3.4.6 with Xenomai cryomick Linux - Kernel 2 03-27-2018 08:07 PM
Time to CHOOSE INSTALL CONFIGURE COMPILE the LINUX KERNEL source in gentoo DavidLee1A Gentoo 1 06-03-2013 05:04 PM
Error while building linux kernel 2.6.32 code for HTC G2 samanthapudi Linux - Kernel 0 01-27-2011 05:12 AM
building module in compile kernel 2.6 ptlchetan Programming 1 10-17-2006 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:12 PM.

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