LinuxQuestions.org
Review your favorite Linux distribution.
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 06-15-2017, 02:00 PM   #1
chaosx2017
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
4.11.5 kernel compile problems


Hi all,

I am trying to compile a custom Linux kernel for a custom arch build I am doing. I am getting a compile error on the make command.

ran steps as follows:-

make clean && make mrproper
zcat /proc/config.gz > .config
make nconfig
customise the kernel, save
make

http://i775.photobucket.com/albums/y...ileerror_1.jpg

The image above shows the compile errors. Any help would be greatly appreciated.

Thanks In Advance,

Chaos

Last edited by chaosx2017; 06-15-2017 at 02:03 PM. Reason: invalid link
 
Old 06-16-2017, 07:01 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 14,868

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
I run NoScript, and Photobucket runs so many scripts that I'm not getting your errors, but their errors. Why don't you make your errors more available to us? Rewrite, or attach a small jpeg to the thread. The first few errors usually contain the significant one, the remainder being the tailspin. The exception can be python, but there's not a lot of that in kernel builds.
 
Old 06-16-2017, 07:34 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,751

Rep: Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972
And they insist I stop my adblocker so I can use their site. I'm more than happy not to use their site.

If you have netcat installed, try this; save the errors, then
Code:
cat errors.log | nc termbin.com 9999
Post the link it returns - we can all curl that to see the data without commercial intrusions.

Last edited by syg00; 06-16-2017 at 07:35 AM. Reason: nc
 
Old 06-17-2017, 01:46 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,043

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
@OP

I agree with the others above, that you should find another way for providing error logs and such.

That said, I suggest you to take a look at the response at your other (closed as duplicate) post and apply the patch needed for using gcc-7.1 while compiling a kernel.

Regards
 
Old 06-17-2017, 05:18 AM   #5
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Question @anyone: gcc 7+ ?won't work? for kernel make's?

@bathory: thanks! Could you explain a bit more (or post a link) about:
>"patch[?] needed for using gcc-7.1 while compiling a kernel"
I tried searching it, and found some things like: http://www.linuxfromscratch.org/blfs...neral/gcc.html
I dug some more, using DistroWatch search gcc > 7, and only a few ?rolling? distros use >6.3!
(https://gcc.gnu.org/gcc-7/changes.html mentions -fdiagnostics-generate-patch but I'm clueless!)
Does that address this? Sorry, I'm newbie on the depths of this (although I knew a little C long ago, and successfully `make tinyconfig`'ed a 4.9 on NuTyX gcc 6.2/3 a half year ago).

Still, the question is: whether OP is using gcc 7.x or 6.x

p.s. I managed to download the photo, and attach it here as a .jpg! Yea: now view-able
Attached Thumbnails
Click image for larger version

Name:	compileerror_1.jpg
Views:	11
Size:	82.4 KB
ID:	25265  

Last edited by Jjanel; 06-17-2017 at 05:52 AM.
 
Old 06-17-2017, 08:46 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,043

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Hi Jjanel

Quote:
Could you explain a bit more (or post a link) about:
>"patch[?] needed for using gcc-7.1 while compiling a kernel"
I'm running Slackware64-current that's using gcc-7.1. I also like to compile my own kernels for testing, but I didn't came across the error posted by OP with 4.11.5. So I look deeper and realized that this is because I don't add GCOV support to my kernels.

After enabling GCOV, the kernel failed to compile with the exact same error (even the latest 4.11.6 that came out today). This is because
Quote:
Starting from GCC 7.1, __gcov_exit is a new symbol expected to be implemented in a profiling runtime.
That's also answers your question about the gcc version that OP uses.


FYI, I applied the patch (got it from the bottom of this page) and the new 4.11.6 compiled successfully.

Regards
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel compile problems halfwit Fedora 11 04-12-2006 02:21 PM
Kernel compile problems draggin Linux - Software 4 02-11-2006 03:41 PM
kernel compile problems rj2585 Mandriva 2 05-09-2005 01:50 AM
Kernel Compile 2.6.9 Problems wnaLinux Slackware 2 12-10-2004 06:53 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM

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

All times are GMT -5. The time now is 09:36 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