Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LD .tmp_vmlinux1 error 139 on kernel compile w/gentoo-dev
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
mciann
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 102

PostPosted: Mon Sep 20, 2004 3:48 am    Post subject: LD .tmp_vmlinux1 error 139 on kernel compile w/gentoo-dev Reply with quote

I am getting the error described above upon typing "make". I have seen some information suggesting that this may be related to memory problems in hardware, but I have low confidence that this is actually the case. Hardware diagnostics show no problems, and this machine has been in use in production for some time.

I have also verified that binutils and the 2.6 kernel module_init packages are in place.

Could I have some overly aggressive make.conf settings? If so, what do I do, change the settings and re-run emerge system?

I am using a Pentium 4M processor.

CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Mon Sep 20, 2004 3:49 am    Post subject: Reply with quote

Please post the exact error, if you can. That will help us help you alot more than jsut a description of the error.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
mciann
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 102

PostPosted: Mon Sep 20, 2004 4:42 am    Post subject: Reply with quote

Code:
make
...
     UPD    include/linux/compile.h
     CC     init/version.o
     LD     init/built-in.o
     LD     .tmp_vmlinux1
make: *** [.tmp_vmlinux1] Error 139
Back to top
View user's profile Send private message
mciann
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 102

PostPosted: Mon Sep 20, 2004 2:18 pm    Post subject: Reply with quote

update-

I ran memtest all night - got no memory errors.

more info-

I am trying to get the 2.6.8 gentoo-dev kernel to work on a Dell Inspiron 5150. I get the error described in the previous post when I try to run "make".

On a hunch that using the -pipe CFLAG might cause the system to use more memory than would be the case if tempfiles were used instead, I omitted -pipe and tried again. The problem persisted. I watched top during the compile attempt - no swap was used at all.

Next I am going to try to unmerge and re-emerge the kernel source and compile with the default .config. If this doesn't work, I am going to back off on optimization and re-emerge the system.

Any suggestions would be most welcome and very appreciated.
Back to top
View user's profile Send private message
mciann
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 102

PostPosted: Mon Sep 20, 2004 6:55 pm    Post subject: Reply with quote

update -

CFLAGS="-mcpu=i686 -O2 -fomit-frame-pointer"

fixed the problem. I am now going to backtrack and see which specific optimization causes the problem, for the purposes of documenting the solution. I'll add to this post rather than bumping the thread again.

Okay, here's the final word.

Dell Inspiron 5150 laptop with Pentium 4M processor.

if I use "-march=pentium3 -O3 -fomit-frame-pointer", I get no problems

if I use "-march=pentium3 -O3 -msse2 -fomit-frame-pointer", I get an error 139 trying to compile the 2.6.8-gentoo-r3 kernel, as detailed in an earlier post.

Fixing the problem required changing make.conf to omit the offending parameter (-msse2) and running "emerge -e world".
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