Bug 3961 - 32bit PE windres doesn't work on 64bit host
Summary: 32bit PE windres doesn't work on 64bit host
Status: RESOLVED DUPLICATE of bug 2737
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.18
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-03 01:11 UTC by H.J. Lu
Modified: 2007-03-11 16:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2007-02-03 01:11:58 UTC
On Linux/x86-64, I got

# .../configure --target=i386-mingw32
# make
# make check

FAIL: ld-scripts/default-script1
FAIL: ld-scripts/default-script2
FAIL: ld-scripts/default-script3
FAIL: ld-scripts/default-script4
FAIL: windres/bmpalign (compare)
FAIL: windres/capstyle (compare)
FAIL: windres/checkbox (compare)
FAIL: windres/combobox (compare)
FAIL: windres/deflang (compare)
FAIL: windres/dialog0 (compare)
FAIL: windres/dialog1 (compare)
FAIL: windres/dialogid (compare)
FAIL: windres/dialogsignature (compare)
FAIL: windres/dlgfont (compare)
FAIL: windres/edittext (compare)
FAIL: windres/escapea (compare)
FAIL: windres/escapex-2 (compare)
FAIL: windres/escapex (compare)
FAIL: windres/lang (parse)
FAIL: windres/listbox (compare)
FAIL: windres/nocaption (compare)
FAIL: windres/printstyle (compare)
FAIL: weak symbols
FAIL: windres/scrollbar (compare)
FAIL: windres/strtab1 (parse)
FAIL: windres/sublang (compare)
FAIL: i386 secrel reloc
Comment 1 H.J. Lu 2007-02-06 18:25:00 UTC
There are

[hjl@gnu-2 binutils]$ grep long wind*.h        
windres.h:   along with this program; if not, write to the Free Software
windres.h:  unsigned long characteristics;
windres.h:  unsigned long time;
windres.h:    unsigned long id;
windres.h:  unsigned long characteristics;
windres.h:  unsigned long version;
windres.h:  unsigned long codepage;
windres.h:  unsigned long reserved;
windres.h:      unsigned long length;
windres.h:  unsigned long length;
windres.h:  unsigned long bytes;
windres.h:  unsigned long style;
windres.h:  unsigned long exstyle;
windres.h:  unsigned long help;
windres.h:  unsigned long style;
windres.h:  unsigned long exstyle;
windres.h:  unsigned long help;
windres.h:  unsigned long length;
windres.h:  unsigned long bytes;
windres.h:  unsigned long help;
windres.h:  unsigned long type;
windres.h:  unsigned long state;
windres.h:  unsigned long help;
windres.h:    unsigned long dword;
windres.h:      unsigned long length;
windres.h:      unsigned long length;
windres.h:      unsigned long length;
windres.h:  unsigned long file_version_ms;
windres.h:  unsigned long file_version_ls;
windres.h:  unsigned long product_version_ms;
windres.h:  unsigned long product_version_ls;
windres.h:  unsigned long file_flags_mask;
windres.h:  unsigned long file_flags;
windres.h:  unsigned long file_os;
windres.h:  unsigned long file_type;
windres.h:  unsigned long file_subtype;
windres.h:  unsigned long file_date_ms;
windres.h:  unsigned long file_date_ls;
windres.h:  unsigned long length;
windres.h:  (struct res_id, const unsigned char *, unsigned long, int);
windres.h:  (const struct res_id, unsigned long, unsigned long, unsigned long,
windres.h:   unsigned long, unsigned long, unsigned long, unsigned long,
unsigned long);
windres.h:  (struct res_id, unsigned long, unsigned long, unsigned long,
unsigned long,
windres.h:   unsigned long, unsigned long, struct rcdata_item *, struct
dialog_ex *);
windres.h:  (const char *, int, unsigned long, unsigned long, unsigned long,
windres.h:  (const char *, unsigned long);
windres.h:extern struct rcdata_item *define_rcdata_number (unsigned long, int);
windres.h:  (const struct res_res_info *, unsigned long, const char *);
windres.h:  (struct ver_varinfo *, unsigned long, unsigned long);

The problem is long on 32bit host is 32bit and may be 64bit on 64bit host.
Comment 2 H.J. Lu 2007-03-11 16:37:43 UTC

*** This bug has been marked as a duplicate of 2737 ***