Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220471 - sys-devel/m4-1.4.11 build error, lib/clean-temp.o and lib/gl_linkedhash_list.o are ASCII
Summary: sys-devel/m4-1.4.11 build error, lib/clean-temp.o and lib/gl_linkedhash_list...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-05 21:49 UTC by Erlend Pedersen :.
Modified: 2008-05-06 23:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The build log (build.log,39.06 KB, text/plain)
2008-05-05 21:51 UTC, Erlend Pedersen :.
Details
The environment. (environment,8.91 KB, text/plain)
2008-05-05 21:51 UTC, Erlend Pedersen :.
Details
lib/clean-temp.o, an ASCII file. (clean-temp.o,6.29 KB, text/plain)
2008-05-05 21:54 UTC, Erlend Pedersen :.
Details
lib/gl_linkedhash_list.o, another ASCII file. (gl_linkedhash_list.o,7.86 KB, text/plain)
2008-05-05 21:55 UTC, Erlend Pedersen :.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erlend Pedersen :. 2008-05-05 21:49:06 UTC
sys-devel/m4-1.4.11 fails to build, while linking together the actual m4 executable. This seems to be because libm4.a contains two bad object files: lib/clean-temp.o and lib/gl_linkedhash_list.o contain ASCII text instead of object code. clean-temp.o even seems to contain XML related C code, something I didn't really think one would find anywhere in the M4 source code :)

I've tried remerging without the nls USE flag, but get the same result. I could not spot any glaring errors in the Makefile.am, but then again I am no automake expert. I just don't know what it could be at this point.


Reproducible: Always

Steps to Reproduce:
1. emerge m4
Comment 1 Erlend Pedersen :. 2008-05-05 21:51:04 UTC
Created attachment 152009 [details]
The build log
Comment 2 Erlend Pedersen :. 2008-05-05 21:51:32 UTC
Created attachment 152011 [details]
The environment.
Comment 3 Erlend Pedersen :. 2008-05-05 21:54:45 UTC
Created attachment 152013 [details]
lib/clean-temp.o, an ASCII file.
Comment 4 Erlend Pedersen :. 2008-05-05 21:55:26 UTC
Created attachment 152015 [details]
lib/gl_linkedhash_list.o, another ASCII file.
Comment 5 SpanKY gentoo-dev 2008-05-06 11:55:39 UTC
every time we've seen this sort of error in the past, it was due to messed up filesystem.  please reboot and force a fsck on the disks in question.
Comment 6 Erlend Pedersen :. 2008-05-06 22:19:45 UTC
(In reply to comment #5)
> every time we've seen this sort of error in the past, it was due to messed up
> filesystem.  please reboot and force a fsck on the disks in question.

I haven't rebooted quite yet, but what I did do was mount a temporary partition from a different disk (LVM LE, specifically created for this test) on /var/tmp/portage. This test partition is formatted with ext3 (the original /var/tmp/portage is reiserfs). The exact same error still occurs even though the files are put on this new, external partition.

Since this test didn't result in a successful build, I will now proceed to rebooting and checking the original partition like you said (and report results here).
Comment 7 Erlend Pedersen :. 2008-05-06 23:06:21 UTC
(In reply to comment #5)
> every time we've seen this sort of error in the past, it was due to messed up
> filesystem.  please reboot and force a fsck on the disks in question.
> 

Rebooted to a Gentoo 2007.0 minimal CD and did the check (plain reiserfsck <dev>). No corruptions found. I am sure I checked the right partition (i.e. that the boot CD didn't detect various /dev/hdX in another order), too, because all others are either 1) another file system type or 2) swap or 3) part of an md device.
Comment 8 Erlend Pedersen :. 2008-05-06 23:36:02 UTC
Found the error.

It was ccache that kept inserting this nonsense into the object files. I guess either the ccache is broken (it's monstrously large, at 871 MB), or the cache hit algorithm isn't completely sane.

I had completely forgotten that ccache was enabled on this machine and feel a bit embarassed about reporting this as a M4 bug without recompiling with it off first. I think I'll just leave ccache disabled from now on.