* RH XFree86 spec file question
@ 1999-12-03 4:01 Craig P Prescott
1999-12-03 4:35 ` Jay.Estabrook
0 siblings, 1 reply; 4+ messages in thread
From: Craig P Prescott @ 1999-12-03 4:01 UTC (permalink / raw)
To: axp-list
Greets;
Was building XFree86 on my EV45 (aka 21064A) AlphaStation 250 last
night, and I was wondering why everything was getting compiled with
"-Wa,-m21164a". Then saw this in the spec file:
<snip>
%build
%ifarch alpha
make World -C xc CDEBUGFLAGS="$RPM_OPT_FLAGS -Wa,-m21164a"
%else
</snip>
This was from
ftp://updates.redhat.com/6.0/SRPMS/XFree86-3.3.5-1.6.0.src.rpm
So I went over and grabbed XFree sources from Rawhide...
ftp://ftp.redhat.com/pub/rawhide/SRPMS/SRPMS/XFree86-3.3.5-15.src.rpm
and took a look at the spec file. The alpha stanza of %build is thus:
%build
%ifarch alpha
make World -C xc CDEBUGFLAGS="$RPM_OPT_FLAGS -Wa,-m21164a"
# we are having problems with the compiler on alpha.
make -C xc/programs/xterm CDEBUGFLAGS="-Wa,-m21164a"
make -C xc
rm xc/programs/xfs/os/io.o
pushd xc/programs/xfs/os
make CDEBUGFLAGS=""
cd ..
rm xfs
make CDEBUGFLAGS=""
popd
%else
In the spec file from XFree86-3.3.3.1-49.src.rpm (source rpm from
RH6.0), it is there, too:
%build
%ifarch alpha
make World -C xc CDEBUGFLAGS="$RPM_OPT_FLAGS -Wa,-m21164a"
%else
Anyway, this just seemed kinda weird, so I thought I'd ask about it
(I'm sure I'll learn something). Anybody know what is up with this?
Just seems like a bad idea to tell the assembler (in my case) the
wrong chip...
Thanks in advance,
Craig
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RH XFree86 spec file question
1999-12-03 4:01 RH XFree86 spec file question Craig P Prescott
@ 1999-12-03 4:35 ` Jay.Estabrook
1999-12-03 5:04 ` Craig P Prescott
1999-12-03 19:08 ` Jamesvi
0 siblings, 2 replies; 4+ messages in thread
From: Jay.Estabrook @ 1999-12-03 4:35 UTC (permalink / raw)
To: axp-list
>>> Craig P Prescott said:
>
> Was building XFree86 on my EV45 (aka 21064A) AlphaStation 250 last
> night, and I was wondering why everything was getting compiled with
> "-Wa,-m21164a". Then saw this in the spec file:
>
> %ifarch alpha
> make World -C xc CDEBUGFLAGS="$RPM_OPT_FLAGS -Wa,-m21164a"
> # we are having problems with the compiler on alpha.
> make -C xc/programs/xterm CDEBUGFLAGS="-Wa,-m21164a"
>
> Anyway, this just seemed kinda weird, so I thought I'd ask about it
> (I'm sure I'll learn something). Anybody know what is up with this?
> Just seems like a bad idea to tell the assembler (in my case) the
> wrong chip...
First off, the -Wa,-m21164a is a flag for GAS, the assembler. It says to
allow instructions that are supported on the 21164A, aka EV56 CPU, or later
ones, to be processed if found in the assembly code the compiler
generates. Without this flag, the assembler will give an error if it finds
any instructions that are not supported on the base EV4/EV5 CPUs, which
would include the byte/word ones. And the compiler is not being told to
generate those instructions; that requires the -mcpu= flag, IIRC.
Secondly, those byte/word ones are *required* in order for certain
operations, that the Xserver needs to do, to work correctly on the EV6
CPU. They appear only in "__asm__" constructs, and they will only be
executed if the Xserver is actually running on an EV6 machine, so there's no
problem on older ones. They are there because we want a single Xserver
binary to work on all the Alpha CPUs, much along the same lines as the
"generic" kernels that are now available.
--Jay++
---------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RH XFree86 spec file question
1999-12-03 4:35 ` Jay.Estabrook
@ 1999-12-03 5:04 ` Craig P Prescott
1999-12-03 19:08 ` Jamesvi
1 sibling, 0 replies; 4+ messages in thread
From: Craig P Prescott @ 1999-12-03 5:04 UTC (permalink / raw)
To: axp-list
>First off, the -Wa,-m21164a is a flag for GAS, the assembler. It says to
>allow instructions that are supported on the 21164A, aka EV56 CPU, or later
>ones, to be processed if found in the assembly code the compiler
>generates. Without this flag, the assembler will give an error if it finds
>any instructions that are not supported on the base EV4/EV5 CPUs, which
>would include the byte/word ones. And the compiler is not being told to
>generate those instructions; that requires the -mcpu= flag, IIRC.
>
>Secondly, those byte/word ones are *required* in order for certain
>operations, that the Xserver needs to do, to work correctly on the EV6
>CPU. They appear only in "__asm__" constructs, and they will only be
>executed if the Xserver is actually running on an EV6 machine, so there's no
>problem on older ones. They are there because we want a single Xserver
>binary to work on all the Alpha CPUs, much along the same lines as the
>"generic" kernels that are now available.
Ack - sorry about that. Thanks the good explanation and for
straightening me out. Was thinking something silly (confused gas'
-m<cpu_type> with the compiler's -mcpu option... *bonk*)
Thanks again,
Craig
---
Craig P Prescott (352) 846-3145 (Phone)
2011 New Physics Building (352) 392-8863 (Fax)
University of Florida, Gainesville, FL 32611 prescott@phys.ufl.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RH XFree86 spec file question
1999-12-03 4:35 ` Jay.Estabrook
1999-12-03 5:04 ` Craig P Prescott
@ 1999-12-03 19:08 ` Jamesvi
1 sibling, 0 replies; 4+ messages in thread
From: Jamesvi @ 1999-12-03 19:08 UTC (permalink / raw)
To: axp-list
Thanks for the info! This is good stuff to learn - I appreciate you posting
it.
James
------------------------------------------------------------------------------
James Fowler
Graduate Student Political Science & Latin America
Arizona State University
jamesvi@asu.edu ICQ: 22088266
-----------------------------------------------------------------------------
On Thu, 2 Dec 1999 Jay.Estabrook@compaq.com wrote:
>
> >>> Craig P Prescott said:
> >
> > Was building XFree86 on my EV45 (aka 21064A) AlphaStation 250 last
> > night, and I was wondering why everything was getting compiled with
> > "-Wa,-m21164a". Then saw this in the spec file:
> >
> > %ifarch alpha
> > make World -C xc CDEBUGFLAGS="$RPM_OPT_FLAGS -Wa,-m21164a"
> > # we are having problems with the compiler on alpha.
> > make -C xc/programs/xterm CDEBUGFLAGS="-Wa,-m21164a"
> >
> > Anyway, this just seemed kinda weird, so I thought I'd ask about it
> > (I'm sure I'll learn something). Anybody know what is up with this?
> > Just seems like a bad idea to tell the assembler (in my case) the
> > wrong chip...
>
> First off, the -Wa,-m21164a is a flag for GAS, the assembler. It says to
> allow instructions that are supported on the 21164A, aka EV56 CPU, or later
> ones, to be processed if found in the assembly code the compiler
> generates. Without this flag, the assembler will give an error if it finds
> any instructions that are not supported on the base EV4/EV5 CPUs, which
> would include the byte/word ones. And the compiler is not being told to
> generate those instructions; that requires the -mcpu= flag, IIRC.
>
> Secondly, those byte/word ones are *required* in order for certain
> operations, that the Xserver needs to do, to work correctly on the EV6
> CPU. They appear only in "__asm__" constructs, and they will only be
> executed if the Xserver is actually running on an EV6 machine, so there's no
> problem on older ones. They are there because we want a single Xserver
> binary to work on all the Alpha CPUs, much along the same lines as the
> "generic" kernels that are now available.
>
> --Jay++
>
> ---------------------------------------------------------------
> Jay A Estabrook Alpha Engineering - LINUX
> Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
> 200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
> ---------------------------------------------------------------
>
> --
> 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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-12-03 19:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-03 4:01 RH XFree86 spec file question Craig P Prescott
1999-12-03 4:35 ` Jay.Estabrook
1999-12-03 5:04 ` Craig P Prescott
1999-12-03 19:08 ` Jamesvi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox