Build problem with i686-coff target
Richard Parratt
Richard.Parratt@netiq.com
Wed Jun 2 22:52:00 GMT 2004
Version: 3.3.1
Configuration: --target=i686-coff
System: cygwin (on XP)
I was trying to build a GCC cross compiler with a target of "i686-coff".
It failed with "Error: Alignment not a power of 2"
I found various references to this, e.g.
http://sources.redhat.com/ml/crossgcc/2001-03/msg00176.html
from Kai Ruottu <kai.ruottu@luukku.com>
The fix given there was to add lines as follows to i386-coff.h:
#undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
This worked.
As this seems to be an old chestnut (it was already one in 2001) could the
fix be added to the reference source, so that everyone making a
cross-compiler doesn't have to patch?
Cheers,
Richard
More information about the Gcc-bugs
mailing list