Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* gcc on alpha
@ 1999-03-09 22:08 mgraffam
  1999-03-10  9:55 ` Stefan Reinauer
  1999-03-10 12:06 ` Harvey J. Stein
  0 siblings, 2 replies; 3+ messages in thread
From: mgraffam @ 1999-03-09 22:08 UTC (permalink / raw)
  To: axp-list

Hello all..

I am running RH 5.1 on my UDB, with the gcc RPMs from 5.0 installed.

I recently ran into a bit of a problem in compiling some C code with
gcc. It is generating bogus assembler.

I get a bunch of these:

/tmp/cca14951.s:358: Error: macro requires $at register while noat in effect

The C code that I am compiling doesn't do anything too funky (I don't
think :) .. just defines a Complex type consisting of two floats, and
declares a matrix of them, and then I pass them around and do some math.

This code compiles nicely and works fine on Linux/Intel (gcc 2.7.2.3,
same as my Alpha). 

egcs on the Alpha works fine too. 

Is gcc known to have problems?

Michael J. Graffam (mgraffam@idsi.net)
They (who) seek to establish systems of government based on the
regimentation of all human beings by a handful of individual rulers..
call this a new order. It is not new, and it is not order."
				- Franklin Delano Roosevelt


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc on alpha
  1999-03-09 22:08 gcc on alpha mgraffam
@ 1999-03-10  9:55 ` Stefan Reinauer
  1999-03-10 12:06 ` Harvey J. Stein
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Reinauer @ 1999-03-10  9:55 UTC (permalink / raw)
  To: axp-list

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 894 bytes --]

Hi,

On Tue, 9 Mar 1999 mgraffam@idsi.net wrote:

> I get a bunch of these:
> 
> /tmp/cca14951.s:358: Error: macro requires $at register while noat in effect
> 
> The C code that I am compiling doesn't do anything too funky (I don't
> think :) .. just defines a Complex type consisting of two floats, and
> declares a matrix of them, and then I pass them around and do some math.

> Is gcc known to have problems?

It seems gcc is producing EV6 assembler opcodes. Try to specify
-Wa,-mev6 in your CFLAGS and recompile. This worked when I got the same
error messages with egcs-1.1.2 pre-release-2.

Regards
	Stefan Reinauer (stepan@suse.de)

-- 
SuSE GmbH                                       Can you afford *NOT*
Schanzäckerstr. 10                                     to use Linux?
D-90443 Nürnberg                 	
Germany                         			AlphaPowered


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc on alpha
  1999-03-09 22:08 gcc on alpha mgraffam
  1999-03-10  9:55 ` Stefan Reinauer
@ 1999-03-10 12:06 ` Harvey J. Stein
  1 sibling, 0 replies; 3+ messages in thread
From: Harvey J. Stein @ 1999-03-10 12:06 UTC (permalink / raw)
  To: axp-list; +Cc: hjstein


From http://www.alphalinux.org/docs/alpha-notes/alpha-patches-n-bugfixes.html

   3. GCC Bugs and Bug Fixes.

   As far as I know, there are two bugs in the gcc included in Redhat
   4.2 (gcc-2.7.2.1-2). The first is that gcc might produce code which
   the assembler can't assemble. This can be triggered by very large
   stack frames, and manifests itself by the messages such as:

      /tmp/cca01041.s: Assembler messages:
      /tmp/cca01041.s:786: Error: macro requires $at register while noat in effect

   when compiling programs.

   Richard Henderson fixed the problem and posted a patch to
   axp-list@redhat.com.

   The other bug is a profiling failure (which I'm not sure I've
   witnessed). Toon Moene posted a patch for this.

   Here're the two patches as well as an RPM spec file for rebuilding
   gcc-2.7.2.1. They've been tarred, gzipped uuencoded, named
   gcc-new-patches.tar.gz.uue and included in the Patches section.

   You should install the Redhat gcc-2.7.2.1-2.src.rpm (rpm -Uvh
   gcc-2.7.2.1-2.src.rpm), then untar this, put the gcc-2.7.2.1.spec
   included here into /usr/src/redhat/SPECS, put
   rth-gcc-2.7.2-970921.diff.gz and
   gcc-alpha-profiling-patch-2.7.2.1-toon-971001 into
   /usr/src/redhat/SOURCES, and build gcc (rpm -ba
   /usr/src/redhat/SPECS/gcc-2.7.2.1.spec). This will create a binary rpm
   for gcc in /usr/src/redhat/RPMS/alpha named gcc-2.7.2.1-2c.alpha.rpm
   which you can then install.

I don't know which version of gcc is from 5.0, but it might 
have the same bug, in which case you might be able to fix it the same
way.

BTW, said patches are also available in the above doc.

mgraffam@idsi.net writes:

 > Hello all..
 > 
 > I am running RH 5.1 on my UDB, with the gcc RPMs from 5.0 installed.
 > 
 > I recently ran into a bit of a problem in compiling some C code with
 > gcc. It is generating bogus assembler.
 > 
 > I get a bunch of these:
 > 
 > /tmp/cca14951.s:358: Error: macro requires $at register while noat in effect
 > 
 > The C code that I am compiling doesn't do anything too funky (I don't
 > think :) .. just defines a Complex type consisting of two floats, and
 > declares a matrix of them, and then I pass them around and do some math.
 > 
 > This code compiles nicely and works fine on Linux/Intel (gcc 2.7.2.3,
 > same as my Alpha). 
 > 
 > egcs on the Alpha works fine too. 
 > 
 > Is gcc known to have problems?
 > 
 > Michael J. Graffam (mgraffam@idsi.net)
 > They (who) seek to establish systems of government based on the
 > regimentation of all human beings by a handful of individual rulers..
 > call this a new order. It is not new, and it is not order."
 > 				- Franklin Delano Roosevelt
 > 
 > -- 
 > To unsubscribe: send e-mail to axp-list-request@redhat.com with
 > 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
 > 

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-03-10 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-09 22:08 gcc on alpha mgraffam
1999-03-10  9:55 ` Stefan Reinauer
1999-03-10 12:06 ` Harvey J. Stein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox