Bug 10058 - 'make check' fails for --target=i686-pc-mingw32
Summary: 'make check' fails for --target=i686-pc-mingw32
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 20:32 UTC by Sergei Steshenko
Modified: 2009-04-17 12:27 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-mingw32
Build: i686-pc-linux-gnu
Last reconfirmed:


Attachments
autogenerated script used to run 'configure' (696 bytes, text/plain)
2009-04-10 20:34 UTC, Sergei Steshenko
Details
configure screen output (807 bytes, text/plain)
2009-04-10 20:35 UTC, Sergei Steshenko
Details
'make check' screen output (3.14 KB, text/plain)
2009-04-10 20:38 UTC, Sergei Steshenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Steshenko 2009-04-10 20:32:30 UTC
First of all, I built binutils-2.19.1 _without_ i686-pc-mingw32, i.e. not having
cross-compilation in mind, and I had no problems whatsoever during the build
process.

Then I changed just one factor - added "--target=i686-pc-mingw32" (I am building
from scratch), and 'make check' failed with these failures:

ERROR: 
/mnt/sdb8/sergei/AFSWD_debug/build/binutils-2.19.1/ld/testsuite/ld-elf/eh-group1.s:
assembly failed
FAIL: Link eh-group.o to eh-group

Running
/mnt/sdb8/sergei/AFSWD_debug/build/binutils-2.19.1/ld/testsuite/ld-scripts/weak.exp
...
FAIL: weak symbols
.

I am about to upload files with details (command lines, etc.)
Comment 1 Sergei Steshenko 2009-04-10 20:34:17 UTC
Created attachment 3871 [details]
autogenerated script used to run 'configure'
Comment 2 Sergei Steshenko 2009-04-10 20:35:54 UTC
Created attachment 3872 [details]
configure screen output
Comment 3 Sergei Steshenko 2009-04-10 20:38:07 UTC
Created attachment 3873 [details]
'make check' screen output
Comment 4 Sergei Steshenko 2009-04-10 20:41:22 UTC
If it matters, my system is:

uname -a
Linux amdam2 2.6.22.19-0.2-default #1 SMP 2008-12-18 10:17:03 +0100 i686 athlon
i386 GNU/Linux

- SUSE 10.3, but I am using self-built gcc-4.3.3 to build binutils-2.19.1.
Comment 5 Nick Clifton 2009-04-17 12:27:19 UTC
Hi Sergei,

  Both of these problems boils down to the fact that the mingw32 target uses a
different binary file format (PE) when compared to your native file format (ELF).

  The eh-group tests only work on ELF targets so they should not have been run
for the i686-pc-mingw32.  (This has been fixed in the mainline sources).

  Support for weak symbols in PE format files is under active development at the
moment, so the tests have been left active, even though they are known to fail
for PE targets.

Cheers
  Nick