3.8.3 build error, compiler segfault

Gene Heskett gheskett at wdtv.com
Thu Mar 28 12:52:28 UTC 2013


On Thursday 28 March 2013 08:02:28 Nils Kassube did opine:

> Gene Heskett wrote:
> > On Wednesday 27 March 2013 17:57:43 Nils Kassube did opine:
> > > Gene Heskett wrote:
> > > > Adding a few more echo's to the script, and verifying that every
> > > > line
> > > > in it was terminated with " && \\r"  I reran it, and see an error
> > > > that should have stopped it right there, but did not:
> > > > ==========================
> > > > 
> > > >   CC      net/ipv6/icmp.o
> > > > 
> > > > net/ipv4/icmp.c:1115: internal compiler error: Segmentation fault
> > > 
> > > Anyway, it is a strange fault if the compiler segfaults. Is it
> > > repeatedly at that particular file? If it isn't, you should probably
> > > check your RAM.
> > > 
> > > And if it is always the same file, you could try a newer version of
> > > the compiler. If there is none for 10.04 you could use a newer
> > > *Ubuntu version, possibly in a virtual machine.
> > 
> > Gee Nils, that was a week or more ago,
> 
> Sorry for beeing too late, but I didn't see an expiry date for your
> inquiry. And it seems you're living much too fast - IIRC, four days is
> much less than a week, not more than a week. :)

Maybe that explains why at 78, I fell like 98. :)
 
> > and yes it was repeatable on
> > the same file, in the bluetooth tree IIRC.
> 
> net/ipv4/icmp.c doesn't look like bluetooth to me, more like the
> standard network stack. But the compiler crash ist still strange.
> 
> > So I backtracked to 3.0.19, and had that work, once.  But now I cannot
> > make it work again because every time I touch the .config file with a
> > make xconfig, the SOB nukes any and all mention of support for / on
> > an ext4 formatted drive that needs 'sata_nv' built in as a starter.
> 
> Are you sure that it needs 'sata_nv' built in? Wouldn't it be sufficient
> to add it to /etc/modules and run

It is not in etc modules now, and it works with the linuxcnc kernel, 
2.6.32-122-rtai.  Do we have a util that can extract a list of what modules 
are builtin to vmlinuz, and from the currant initrd?  That would be 
extremely helpful in configuring a new kernel build.  Presently, i2c_nforce 
is a dozen entries up from the bottom of the lsmod listing, and sata_nv is 
the bottom entry, with 13 links to it ATM.

 
> sudo update-initramfs -c -k $(uname -r)
> 
> afterwards? Or if want to use it with another kernel than the currently
> running kernel, use the appropriate kernel name instead of the "$(uname
> -r)". As I understand it, the module sata_nv would then be loaded from
> the initrd before the disks are accessed by the kernel.

The problem is that I can edit .config and enable the sata_nv build with 
gedit, but touching it with a "make oldconfig" nukes it, running a "make 
menuconfig" nukes it, and a "make xconfig" nukes it.  And the make 
oldconfig is starting with this kernels working .config unless I am doing 
it wrong. 

So, what are the usual setup pre-req's to do an initial "make oldconfig"?

> > Even a make oldconfdig using this 2.6.32 kernels .config as a starter
> > is a non-starter, falling over because it can't find the root drive's
> > UUID about 4.9 seconds into the boot.  Same old same old for 2 newer
> > kernels in between.  Its plain to me that something in the "make
> > *config" barn is broken.
> > 
> > And its hell to try and get rid of the modules I don't need, but which
> > take another hour to build, with just a 'gedit .config' session.
> 
> Who cares about the extra modules? They will only waste some MB on your
> disk, not in memory (if you don't load them). For me it takes more time
> to remove modules from the configuration than to build them.


BY building only what I need, build time is cut by 50% or more.

What cpu do you have?  This is an older, 2.1 Ghz, Phenom 9550, and a make -
j3 keeps all 4 cores at 70% or more, and 25-30 minutes run time.

> > So ATM I am back on the stock (for linuxcnc) kernel, and swearing at
> > its memory collection because with 4G of dram its 500 megs into swap
> > in 3 or 4 days, running like a plenarium worm at the 25th mile of a
> > marathon, so I have to do yet another *^%#$#@ reboot, so my head
> > doesn't hurt so bad.
> 
> I don't think another kernel would reduce the amount of swap used. That
> is usually a matter of userland applications.

KMail, firefox, 10 workspace screens, and perhaps 20 tabs worth of terminal 
screens, some with log tails running in them, a java .jar that supports a 
networking interface for an old old machine in the basement, a session of 
minicom to it on a serial port, and a copy of kcalc I keep open.  Its 
currently better than usual, up 4d9h, 180 megs into 12Gb of swap, there are 
4 1T drives here, and 3 of them have 4Gb swaps.  Same basic usage pattern 
but booted to a much newer pclos11 kernel which has the BFS scheduler, 
making the desktop very noticeably more realtime, and it might get 20 megs 
into swap in a month.
 
I have added sata_nv to /etc/modules, and will retest a 3.0.19 build using 
these lines in my "makeit" script to make a new initrd:

VER=3.0.19
export MKINITRD=mkinitramfs && \
$MKINITRD -o initrd-$VER.img && \
depmod -a -e -F System.map $VER && \

If something is wrong above, please advise.

I am about 2 days from needing to reboot, things are starting to get laggy.

> Nils

Thanks Nils.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
algorithm, n.:
	Trendy dance for hip programmers.
I was taught to respect my elders, but its getting 
harder and harder to find any...




More information about the ubuntu-users mailing list