This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Build problem with i686-coff target
- From: Richard Parratt <Richard dot Parratt at netiq dot com>
- To: "'bug-gcc at gnu dot org'" <bug-gcc at gnu dot org>
- Date: Wed, 2 Jun 2004 22:51:42 -0000
- Subject: Build problem with i686-coff target
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