Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] kernel 3.17.7 build fails - stable AMD64 system
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
Goverp
Guru
Guru


Joined: 07 Mar 2007
Posts: 370

PostPosted: Wed Jan 14, 2015 9:13 pm    Post subject: [SOLVED] kernel 3.17.7 build fails - stable AMD64 system Reply with quote

I emerge --sync on Jan 7, and did the usual world update yesterday. Today I came to build a new kernel 3.17.7. But it won't build.

My first attempt was with -j5; failed with messages about a20.o. I did make clean, and make with -j1, and this time the end of the listing is
Code:

  LD      arch/x86/platform/ce4100/built-in.o
  LD      arch/x86/platform/efi/built-in.o
  LD      arch/x86/platform/geode/built-in.o
  LD      arch/x86/platform/goldfish/built-in.o
  LD      arch/x86/platform/intel-mid/built-in.o
  LD      arch/x86/platform/iris/built-in.o
  LD      arch/x86/platform/olpc/built-in.o
  LD      arch/x86/platform/scx200/built-in.o
  LD      arch/x86/platform/sfi/built-in.o
  LD      arch/x86/platform/ts5500/built-in.o
  LD      arch/x86/platform/uv/built-in.o
  LD      arch/x86/platform/built-in.o
  CC      arch/x86/realmode/init.o
  AS      arch/x86/realmode/rm/header.o
  AS      arch/x86/realmode/rm/trampoline_64.o
scripts/Makefile.build:293: recipe for target 'arch/x86/realmode/rm/trampoline_64.o' failed
make[3]: *** [arch/x86/realmode/rm/trampoline_64.o] Error 2
arch/x86/realmode/Makefile:18: recipe for target 'arch/x86/realmode/rm/realmode.bin' failed
make[2]: *** [arch/x86/realmode/rm/realmode.bin] Error 2
scripts/Makefile.build:404: recipe for target 'arch/x86/realmode' failed
make[1]: *** [arch/x86/realmode] Error 2
Makefile:929: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2

Any suggestions, or should I just open a bug?
_________________
Greybeard


Last edited by Goverp on Sat Feb 14, 2015 10:39 am; edited 1 time in total
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 918

PostPosted: Thu Jan 15, 2015 8:30 pm    Post subject: Reply with quote

I have an AMD quad core stable and was able to make the kernel with -j5 using gcc 4.8.3.
I would check dmesg. I would also see if the failures are reproducible. That is, does -j5 always fail at a20.o and -j1 at trampoline.o.
You might also try cleaning and remaking your current kernel.
Back to top
View user's profile Send private message
Goverp
Guru
Guru


Joined: 07 Mar 2007
Posts: 370

PostPosted: Sat Feb 14, 2015 10:39 am    Post subject: Reply with quote

The problem recurred with the 3.17.8 kernel, so I dug around a bit.
Turns out to be my bad; I had exported KCFLAGS="--march=native -O2", and that appears to screw the assembler processing trampoline_64.S. Removing the KCFLAGS export solves the problem.

I'll wait for kernel 3.18 to appear in stable, as I believe that has march=native support as an option under processor type.
_________________
Greybeard
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