Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] genkernel does not compile the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lithium_wl
n00b
n00b


Joined: 07 Jun 2017
Posts: 6

PostPosted: Wed Jun 07, 2017 10:18 am    Post subject: [SOLVED] genkernel does not compile the kernel Reply with quote

genkernel version: 3.4.52.4
kernel version: 4.9.16-gentoo
log here: https://paste.pound-python.org/show/e3mQyQHlVSDxEykmSP8a/
what am i doing wrong?


Last edited by lithium_wl on Thu Jun 08, 2017 9:10 am; edited 2 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 07, 2017 2:05 pm    Post subject: Reply with quote

My corporate firewall flags your pastebin service as a security risk. Can you use wgetpaste to send the log instead?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
lithium_wl
n00b
n00b


Joined: 07 Jun 2017
Posts: 6

PostPosted: Wed Jun 07, 2017 2:59 pm    Post subject: Reply with quote

John R. Graham wrote:
My corporate firewall flags your pastebin service as a security risk. Can you use wgetpaste to send the log instead?

- John


edited the question
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Wed Jun 07, 2017 3:31 pm    Post subject: Reply with quote

The error in the log is:
Code:

Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler

Try a more recent compiler, or dig through the config file to find out which settings need it.

Will

See also:
https://forums.gentoo.org/viewtopic-t-1060654.html
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 07, 2017 3:39 pm    Post subject: Reply with quote

The important line is
Code:
Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
which indicates that your compiler is too old for the features enabled in the kernel configuration. To see what compilers you have available, can you provide the output of
Code:
gcc-config -l
and
Code:
emerge --info
please?

The stack protection features require at least gcc 4.2 or 4.9, depending on the flavor selected.

An inferior alternative would be to disable the stack protection feature in the kernel .config file. It's under "General setup" in the kernel config, which you can easily edit by adding --menuconfig to your genkernel command line.

But let's check out your available compilers first.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
lithium_wl
n00b
n00b


Joined: 07 Jun 2017
Posts: 6

PostPosted: Wed Jun 07, 2017 3:53 pm    Post subject: Reply with quote

John R. Graham wrote:
Code:
gcc-config -l

Code:
 [1] i686-pc-linux-gnu-5.4.0 *

John R. Graham wrote:
Code:
emerge --info

https://paste.pound-python.org/show/y42dQjHyr4biMIp16e8J/

UPD:
John R. Graham wrote:
An inferior alternative would be to disable the stack protection feature in the kernel .config file. It's under "General setup" in the kernel config, which you can easily edit by adding --menuconfig to your genkernel command line.


didn't work, log here: https://paste.pound-python.org/show/Yrhv5ukaHArszsjiIfab/
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 07, 2017 4:12 pm    Post subject: Reply with quote

Actually, it did work in that the particular error was cleared. Now we have a new error:
Code:
kernel/bounds.c:1:0: ошибка: заданный процессор не поддерживает набор команд x86-64
translated
Code:
kernel/bounds.c:1:0: Error: the specified processor does not support the x86-64 instruction set.
(localization is wonderful, isn't it? ;)).

That means you have more work to do in "genkernel --menuconfig". Under "Processor type and features / Processor family", select a processor that matches what you have, most likely "Atom" (which I see from your "emerge --info").

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
lithium_wl
n00b
n00b


Joined: 07 Jun 2017
Posts: 6

PostPosted: Wed Jun 07, 2017 4:25 pm    Post subject: Reply with quote

compilation failed (yet again)

log here: https://paste.pound-python.org/show/vXArBZwfiWXbJUflNcw1/
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21754
Location: here

PostPosted: Wed Jun 07, 2017 4:41 pm    Post subject: Reply with quote

Look here
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
lithium_wl
n00b
n00b


Joined: 07 Jun 2017
Posts: 6

PostPosted: Wed Jun 07, 2017 5:11 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Look here


it freezes on "compiling 4.9.16-gentoo bzImage"

UPD: no it does not freeze, but just takes very long to compile
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1048
Location: Massachusetts USA

PostPosted: Wed Jun 07, 2017 7:45 pm    Post subject: Reply with quote

Try removing the -pipe option from CFLAGS in MAKEOPTS change -j2 to -j1

You could also try running at the console without X
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 07, 2017 8:13 pm    Post subject: Reply with quote

jburns wrote:
Try removing the -pipe option from CFLAGS in MAKEOPTS change -j2 to -j1
genkernel does not use /etc/portage/make.conf so this has no effect.

lithium_wl wrote:
...UPD: no it does not freeze, but just takes very long to compile
Yes, genkernel kernels are "kitchen sink" compiles and take a long time on modest hardware. If you want to see what's going on, you can increase the LOGLEVEL in /etc/genkernel.conf. For example
Code:
LOGLEVEL=5
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
lithium_wl
n00b
n00b


Joined: 07 Jun 2017
Posts: 6

PostPosted: Thu Jun 08, 2017 9:09 am    Post subject: Reply with quote

alright, thanks, it compiled

how to mark it as solved?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21754
Location: here

PostPosted: Thu Jun 08, 2017 10:04 am    Post subject: Reply with quote

lithium_wl wrote:
how to mark it as solved?

Edit your first post and add to subject [Solved]
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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