LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   4.11.5 kernel compile problems (https://www.linuxquestions.org/questions/linux-newbie-8/4-11-5-kernel-compile-problems-4175607960/)

chaosx2017 06-15-2017 06:16 AM

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.

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

http://s775.photobucket.com/user/Cha...ror_1.jpg.html

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

Thanks In Advance,

Chaos

Jjanel 06-15-2017 11:45 PM

Dup of http://www.linuxquestions.org/questi...ems-4175607987
(Reported, suggesting Mod close THIS, leaving that as ZRT)

Please edit the title of that kernel Forum thread, to include more info, like:
<distro&ver> kernel 4.11.5 make nconfig __gcov_exit undefined errors; GCC <ver>
(I might guess Arch Linux, from: "for a custom arch build", but "arch" might mean architecture, like ARM etc, although your photo shows x86. Also, since photobucket requires JavaScript be enabled to display the image, some people may be reluctant to enable js, to view pic.)

Although including the keyword "undefined" causes no! search results (except android/chromium.googlesource.com, which I'm -guessing- this is NOT your distro!),
a web-search of just: "__gcov_exit" kernel
finds: https://github.com/torvalds/linux/tr...er/kernel/gcov -> https://github.com/torvalds/linux/co...06b80ef8d671ab
Quote:

Starting from GCC 7.1, __gcov_exit is a new symbol expected to be implemented in a profiling runtime.
and: https://patchwork.kernel.org/patch/9445439 (word "missing" vs/= undef!)
Quote:

... I tested your patch with kernel 4.9-rc4 compiled with GCC 7.0.0 20161107 (experimental) and validated that it fixes the build error due to a missing __gcov_exit symbol... Given that GCC 7.1 has not yet been released, I'm wondering if it is safe to program against interfaces that have not yet been fully finalized. Can you provide an indication on whether these gcov-related aspects of GCC might still be changed until release?
I don't know what all this means, but if you'll also indicate the version of GCC in your thread/title, a kernel Guru may be able to help.

A web-search of: "__gcov_exit" undefined (no keyword kernel)
find a few, mostly old, things; I doubt (don't know) if relevant.

Also, tell us, ideally 'exactly', what you did to "customise" it! (change ?profile? CONFIG_... options?? Maybe you can find a way to copy your .config file to wherever you run the browser you used to post this, so you can use the "Go Advanced" options to *attach* it!)

Welcome to LQ, and Best wishes! (Again, distro version info is ESSENTIAL INFO! DistroWatch.com/<distro> shows default gcc version;))

rtmistler 06-16-2017 07:17 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 09:41 PM.