Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-8.3.0 compilation caused kernel panic [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zhangyida
n00b
n00b


Joined: 31 Dec 2017
Posts: 12

PostPosted: Wed Mar 13, 2019 5:13 pm    Post subject: gcc-8.3.0 compilation caused kernel panic [Solved] Reply with quote

I've recently started another installation of Gentoo on my new desktop. Hardware configuration is like the following:
CPU: AMD Ryzen 7 1700X Eight-Core, 16 Threads
Memory: Kingston 2*8GB 3200MHz
Main Board: ASUS ROG STRIX B450-F
Video Card: AMD Radeon RX 570
Sound Card: Creative Sound BlasterX AE-5
Hard Drive: Kingston A400 480GB SATA3

I was using gentoo-sources-4.20.12 kernel since my sound card requires core driver included from 4.20.

I used genkernel 3.5.3.3 to do the kernel compilation.

During installation, I did not do the "update world" command but just installed kernel, genkernel and grub. The system restarts normally and I could login, everything was fine.

After rebooting, I tried to "update world" but whenever I get into compiling gcc-8.3.0, kernel panic happens.

I then reformatted hard drive and did re-installation, this time, during the Chroot mode, I tried to install GCC-8.3.0 and succeeded.

Then I reboot and tried "update world" again and for some reason, gcc-8.3.0 got re-built and kernel panic happens again.

I'm just wondering if genkernel had enabled something in Kernel compilation configuration that caused the panic when compiling gcc. The minimum installation CD I used was running kernel 4.19.23 and I've also tried 4.19.23 as my installation kernel and the same scenario happens.

Can somebody shed me some light ahead? Is there any existing experience that could tell what kernel configuration is causing the problem?

Or is there another alternate way like compile the kernel without genkernel but still could get the SSD drive to work? I've tried that option but could not get the correct settings (PATA, SATA options settings) to work, so after kernel compilation and rebooting, no block device could be found.

As an alternative, I'm reading kdump documentations to learn how to generate and read kernel dump in a hope that this will tell me which driver was causing the panic during compiling gcc.


Last edited by zhangyida on Thu Mar 14, 2019 2:03 am; edited 1 time in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5650
Location: Removed by Neddy

PostPosted: Wed Mar 13, 2019 7:21 pm    Post subject: Reply with quote

CPU: AMD Ryzen 7 1700X Eight-Core, 16 Threads

disable Cstates in the bios. check your CFLAGS , update your BIOS
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
zhangyida
n00b
n00b


Joined: 31 Dec 2017
Posts: 12

PostPosted: Thu Mar 14, 2019 2:00 am    Post subject: Problem Solved Reply with quote

Your answer triggered my thought of BIOS settings. I went back and reviewed what I've changed recently and found out that I've turn on the CPU virtualization feature in BIOS.

I turned it off and retried the compilation. Guess what? It passed!

The reason I turned in on before was that I planed to install quemu or virtmgr on my system, so I turned it on. Didn't expect this.

Now my "update world" command was getting executed smoothly and just passed gcc compilation.

Thanks, man. You've directed me to the right area.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum