Bug 15727 - compiler error (collect2) when compiling gen-devlist.c from linux 2.6.6 kernel
Summary: compiler error (collect2) when compiling gen-devlist.c from linux 2.6.6 kernel
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.3.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 22:47 UTC by Robert Urban
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i386-pc-linux
Target: i386-pc-linux
Build: i386-pc-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments
*.i file produced by "-save-temps" (4.93 KB, application/x-gzip)
2004-05-29 22:49 UTC, Robert Urban
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Urban 2004-05-29 22:47:12 UTC
CMD: gcc -Wp,-MD,drivers/pci/.gen-devlist.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o drivers/pci/gen-devlist drivers/pci/gen-devlist.c
gcc: Internal error: Aborted (program collect2)
Please submit a full bug report.

the "gen-devlist.i" temp file can be found at:

  http://www.spielwiese.de/rob/gen-devlist.i.gz

linux kernel sources:

  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
Comment 1 Robert Urban 2004-05-29 22:49:32 UTC
Created attachment 6429 [details]
*.i file produced by "-save-temps"
Comment 2 Robert Urban 2004-05-29 22:52:38 UTC
the attachment "gen-devlist.i.gz" is the same file as the one pointed at
in the URL.
Comment 3 Andrew Pinski 2004-05-29 22:54:49 UTC
I cannot reproduce this on my i686-pc-linux-gnu box, are you sure that you do not have a hardware 
problem?  Also collect2 cannot just abort, it will print fatal error.
Comment 4 Robert Urban 2004-05-29 23:12:22 UTC
hmm.  I have built a uClibc root-fs using "buildroot" with gcc-3.3.3.  Within
that root-fs using chroot I then attempt to build the linux kernel.  The
compiler seems quite happy to compile the several hundred objects that come
before gen-devlist.c.

I think I can safely rule out a hardware problem.

with respect to what collect2 does, I quoted the output verbatim.

I'd be happy to telephone you to talk about this.  If interested, send your
number...  If fact, I think a short conversation could be very helpful...
Comment 5 Andrew Pinski 2004-05-29 23:15:47 UTC
I do this volunteer, I think this is a bug in your setup rather than GCC.  What it sounds like is uClibc 
cannot handle all the functions that collect2 needs so this is not a GCC bug but rather an uClibc one.
Comment 6 Andrew Pinski 2004-05-29 23:17:07 UTC
Also I do not want to call/get called by anyone, I do this voluntary so ...