This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building glibc-2.4 for alpha fails with "macro requires $at register while noat in effect"


i was trying to cross-compile glibc-2.4 with gcc-4.1.1 when it failed on me 
while building ioperm.c ... poking around a bit, looks like the same issue 
discussed here:
http://gcc.gnu.org/ml/gcc/2005-07/msg00371.html
however, this seems to have stalled ?

the glibc build system appends -Wa,-mev6 to the CFLAGS for ioperm.c, but when 
gcc is run without a -mcpu flag (or with ev4/ev5 specified), the resulting 
asm produced includes '.arch ev4' or '.arch ev5', and then gas aborts with 
the fun errors:
{standard input}: Assembler messages:
{standard input}:181: Error: macro requires $at register while noat in effect
{standard input}:199: Error: macro requires $at register while noat in effect
{standard input}:235: Error: macro requires $at register while noat in effect
{standard input}:255: Error: macro requires $at register while noat in effect

and of course, adding -mcpu=ev6 or better to CFLAGS works just peachy
-mike

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]