* CPU Arch Detection
@ 2005-10-22 11:45 mike
2005-10-22 15:31 ` michal
2005-10-22 17:40 ` upi
0 siblings, 2 replies; 13+ messages in thread
From: mike @ 2005-10-22 11:45 UTC (permalink / raw)
I was building up a few packages for CentOS (I wanted DVD playback,
basically), and noticed something about building for an "alphaev6" target.
The build process works OK - I produced a xine-lib that performs a LOT
better than the default - and things WORK when installed. The snag is
that RPM doesn't recognise alphaev6 as a suitable architecture on my
DS10. I have to use --ignorearch.
I remember hitting this a while back, building an EV6 optimisied glibc
for Alpha Core, and I think we worked out this down to a bug in uname,
not reporting the variation properly, but I can't recall the full details.
Did anyone get this sorted, or does anyone know what might need patching up?
Oh, and if anyone wants the CentOS packages for Xine, see:
http://alphacore.info/files/centos/
DVD playback is fine when using the EV6 xine-lib on a 466MHz DS10. It's
just barely coping, though. Anything faster should be fine. There's a
totem-xine package there too, which seems to run a little better than
Xine itself.
SRPMs are unmodified from the DAG repository, just rebuilt for CentOS
4.2/Alpha. I'll do some Alpha Core builds once 2.0 releases.
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 11:45 CPU Arch Detection mike
@ 2005-10-22 15:31 ` michal
2005-10-22 17:40 ` upi
1 sibling, 0 replies; 13+ messages in thread
From: michal @ 2005-10-22 15:31 UTC (permalink / raw)
On Sat, Oct 22, 2005 at 09:45:06PM +1000, Mike Barnes wrote:
> The snag is
> that RPM doesn't recognise alphaev6 as a suitable architecture on my
> DS10. I have to use --ignorearch.
Which architecture is considered as compatible with what and when is
spelled out in /usr/lib/rpm/rpmrc file. It sounds like something is
forgotten in there; although an interplay of various entries is not always
clear to me and I seem to remember that there were some 'arch_compat'
issues in the past.
This file has also the following in its header comment:
# This is a global RPM configuration file. All changes made here will
# be lost when the rpm package is upgraded. Any per-system configuration
# should be added to /etc/rpmrc, while per-user configuration should
# be added to ~/.rpmrc.
so if you are going to try some adjustments you know where to put
them. :-) "arch_compat: alphaev6: alpha" line should do it, one would
think.
Michal
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 11:45 CPU Arch Detection mike
2005-10-22 15:31 ` michal
@ 2005-10-22 17:40 ` upi
2005-10-22 18:35 ` tsv
1 sibling, 1 reply; 13+ messages in thread
From: upi @ 2005-10-22 17:40 UTC (permalink / raw)
Hi,
On Sat, Oct 22, 2005 at 09:45:06PM +1000, Mike Barnes wrote:
> I was building up a few packages for CentOS (I wanted DVD playback,
> basically), and noticed something about building for an "alphaev6" target.
>
> The build process works OK - I produced a xine-lib that performs a LOT
> better than the default - and things WORK when installed. The snag is
> that RPM doesn't recognise alphaev6 as a suitable architecture on my
> DS10. I have to use --ignorearch.
>
> I remember hitting this a while back, building an EV6 optimisied glibc
> for Alpha Core, and I think we worked out this down to a bug in uname,
> not reporting the variation properly, but I can't recall the full details.
>
> Did anyone get this sorted, or does anyone know what might need patching up?
I haven't been tampering with /usr/lib/rpm magic at all. For me it
seems pretty much like voodoo.
There are something like
arch_compat: alphaev67: alphaev6
arch_compat: alphaev6: alphapca56
arch_compat: alphapca56: alphaev56
arch_compat: alphaev56: alphaev5
arch_compat: alphaev5: alpha
arch_compat: alpha: axp noarch
in /usr/lib/rpm/rpmrc (which was pointed out in other mail). For me it
seems that those macros should eventually translate any alphaev* to
alpha, but i really don't know.
There might be another issue tho, which i didn't remember to verify for
sure. Anaconda is writing /etc/rpm/platform file which might be the
source for your proplem? I am not sure about how this should really be
formatted, but i suspect you dohave have something like
'alphaev6-redhat-linux' there. I do _believe_ a 'alpha-redhat-linux'
should be more right and generally i tend to just remove the file from
my build systems.
I do remember seeing the 'must use --ignorearch' myself too, but i
really don't remember if i just tweaked the /etc/rpm/platform or
something else too.
--
Pasi Pirhonen - upi at iki.fi - http://iki.fi/upi/
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 17:40 ` upi
@ 2005-10-22 18:35 ` tsv
2005-10-22 18:50 ` michal
2005-10-22 18:58 ` upi
0 siblings, 2 replies; 13+ messages in thread
From: tsv @ 2005-10-22 18:35 UTC (permalink / raw)
Pasi Pirhonen wrote:
>Hi,
>
>
>On Sat, Oct 22, 2005 at 09:45:06PM +1000, Mike Barnes wrote:
>
>
>>I was building up a few packages for CentOS (I wanted DVD playback,
>>basically), and noticed something about building for an "alphaev6" target.
>>
>>The build process works OK - I produced a xine-lib that performs a LOT
>>better than the default - and things WORK when installed. The snag is
>>that RPM doesn't recognise alphaev6 as a suitable architecture on my
>>DS10. I have to use --ignorearch.
>>
>>I remember hitting this a while back, building an EV6 optimisied glibc
>>for Alpha Core, and I think we worked out this down to a bug in uname,
>>not reporting the variation properly, but I can't recall the full details.
>>
>>Did anyone get this sorted, or does anyone know what might need patching up?
>>
>>
>
>
>
>I haven't been tampering with /usr/lib/rpm magic at all. For me it
>seems pretty much like voodoo.
>
>There are something like
>
>arch_compat: alphaev67: alphaev6
>arch_compat: alphaev6: alphapca56
>arch_compat: alphapca56: alphaev56
>arch_compat: alphaev56: alphaev5
>arch_compat: alphaev5: alpha
>arch_compat: alpha: axp noarch
>
>
>in /usr/lib/rpm/rpmrc (which was pointed out in other mail). For me it
>seems that those macros should eventually translate any alphaev* to
>alpha, but i really don't know.
>
>There might be another issue tho, which i didn't remember to verify for
>sure. Anaconda is writing /etc/rpm/platform file which might be the
>source for your proplem? I am not sure about how this should really be
>formatted, but i suspect you dohave have something like
>'alphaev6-redhat-linux' there. I do _believe_ a 'alpha-redhat-linux'
>should be more right and generally i tend to just remove the file from
>my build systems.
>
>I do remember seeing the 'must use --ignorearch' myself too, but i
>really don't remember if i just tweaked the /etc/rpm/platform or
>something else too.
>
>
I recall of debugging rpm in order to understand the issue. If I recall
correctly rpm takes arch
from /etc/rpm/platform - if it doesn't exists - it does use asm
instructions to get CPU type.
The above "arch_compat" macros says that "alpha" packages can be
installed on "alphaev6" arch
not the way around. I remember modifying platform file for alphaev6 and
I was able to install
alphaev6 rpm without using --ignorearch flag.
Regards,
Sergey.
tsv at solvo.ru
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 18:35 ` tsv
@ 2005-10-22 18:50 ` michal
2005-10-22 19:17 ` tsv
2005-10-22 18:58 ` upi
1 sibling, 1 reply; 13+ messages in thread
From: michal @ 2005-10-22 18:50 UTC (permalink / raw)
On Sat, Oct 22, 2005 at 10:35:57PM +0400, Sergey Tikhonov wrote:
> The above "arch_compat" macros says that "alpha" packages can be
> installed on "alphaev6" arch not the way around.
Are you sure? 'athlon', for example, seems to follow a similar
chain to 'i386' as 'alphaev6' to alpha and I do not recall ever
seeing complaints that 'athlon', or 'i686', packages are of a wrong
architecture for on an i386 installation.
How this is supposed to behave is described here:
http://www.rpm.org/max-rpm-snapshot/s1-rpm-multi-build-install-detection.html
Michal
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 18:50 ` michal
@ 2005-10-22 19:17 ` tsv
2005-10-22 22:30 ` mike
2005-10-23 17:13 ` tsv
0 siblings, 2 replies; 13+ messages in thread
From: tsv @ 2005-10-22 19:17 UTC (permalink / raw)
Michal Jaegermann wrote:
>On Sat, Oct 22, 2005 at 10:35:57PM +0400, Sergey Tikhonov wrote:
>
>
>>The above "arch_compat" macros says that "alpha" packages can be
>>installed on "alphaev6" arch not the way around.
>>
>>
>
>Are you sure? 'athlon', for example, seems to follow a similar
>chain to 'i386' as 'alphaev6' to alpha and I do not recall ever
>seeing complaints that 'athlon', or 'i686', packages are of a wrong
>architecture for on an i386 installation.
>
>
Well, let me dig into my e-mails (on Monday). I was writing based on my
memory.
I recall I was working on that issue in January in preparation of AC1
release, but was
not able to test it on real ev6 machine. It seemed that everything was
ready in rpm source
code and during debugging I fooled CPU detection code that I had ev6
machine and ev6 package
installed without problems. I could take a look the issue again if I had
access to ev6 class machine
(Mike? :) ).
Thank you,
Sergey.
tsv at solvo.ru
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 19:17 ` tsv
@ 2005-10-22 22:30 ` mike
2005-10-23 17:13 ` tsv
1 sibling, 0 replies; 13+ messages in thread
From: mike @ 2005-10-22 22:30 UTC (permalink / raw)
> Michal Jaegermann wrote:
> I could take a look the issue again if I had
> access to ev6 class machine (Mike? :) ).
I'll sort something out for you when I get home from work. I'll email
login details to you directly. There's another DS10 around here that I
should be able to get online permanently for you, in a couple of weeks.
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 19:17 ` tsv
2005-10-22 22:30 ` mike
@ 2005-10-23 17:13 ` tsv
2005-10-23 17:54 ` michal
2005-10-23 18:11 ` upi
1 sibling, 2 replies; 13+ messages in thread
From: tsv @ 2005-10-23 17:13 UTC (permalink / raw)
Sergey Tikhonov wrote:
> Michal Jaegermann wrote:
>
>> On Sat, Oct 22, 2005 at 10:35:57PM +0400, Sergey Tikhonov wrote:
>>
>>
>>> The above "arch_compat" macros says that "alpha" packages can be
>>> installed on "alphaev6" arch not the way around.
>>>
>>
>>
>> Are you sure? 'athlon', for example, seems to follow a similar
>> chain to 'i386' as 'alphaev6' to alpha and I do not recall ever
>> seeing complaints that 'athlon', or 'i686', packages are of a wrong
>> architecture for on an i386 installation.
>>
>>
> Well, let me dig into my e-mails (on Monday). I was writing based on
> my memory.
> I recall I was working on that issue in January in preparation of AC1
> release, but was
> not able to test it on real ev6 machine. It seemed that everything was
> ready in rpm source
> code and during debugging I fooled CPU detection code that I had ev6
> machine and ev6 package
> installed without problems. I could take a look the issue again if I
> had access to ev6 class machine
> (Mike? :) ).
Ok, here are findings (Mike thank you for access to ev6 machine).
The rpm tries to take value for _host_cpu variable from
/etc/rpm/platform file (it contains machine-vendor-os triplet).
As other mentioned here the file itself is created by anaconda (I didn't
know that).
If the file doesn't exist - the rpm uses "uname" call and then tries to
use implver and amask to find out exact cpu type
and sets _host_cpu variable. So, rpm works correctly - it is just a
matter corretly create /etc/rpm/platform file. :)
I still believe that "arch_compat" macro defines upward compatibility
and has meaning:
alpha_compat: arch2: arch1 - that packages of arch1 can be installed on
arch2 (try to comment out the line with "noarch"
dependency and install noarch package and rpm would reject to install
noarch package).
Regards,
Sergey.
tsv at solvo.ru
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-23 17:13 ` tsv
@ 2005-10-23 17:54 ` michal
2005-10-23 18:11 ` upi
1 sibling, 0 replies; 13+ messages in thread
From: michal @ 2005-10-23 17:54 UTC (permalink / raw)
On Sun, Oct 23, 2005 at 09:13:24PM +0400, Sergey Tikhonov wrote:
>
> I still believe that "arch_compat" macro defines upward compatibility
> and has meaning: alpha_compat: arch2: arch1 - that packages of arch1
> can be installed on arch2
s/alpha_compat/arch_compat/ if somebody got confused. :-)
This is what you can find at
http://www.rpm.org/max-rpm-snapshot/s1-rpm-multi-build-install-detection.html
<quote>
The names in the list are considered compatible to the name specified
in the label.
arch_compat: i586: i486
arch_compat: i486: i386
os_compat: Linux: AIX
The arch_compat lines shown above illustrate how a family of upwardly
compatible architectures may be represented. For example, if the build
architecture was defined as an i586, the compatible architectures would
be i486, and i386. However, if the build system was an i486, the only
compatible architecture would be an i386.
</quote>
and the rest of a text there for more explanations.
An example above seems to support Sergey's interpretation although
apparently this boils down to what "the build system" really means. It
seems to be the same as "build architecture". See if you can make head
or tail from the rest stuff on the quoted page but whatever ultimately
works... Maybe 'arch_canon' or 'buildarchtranslate' could be used
as well?
Michal
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-23 17:13 ` tsv
2005-10-23 17:54 ` michal
@ 2005-10-23 18:11 ` upi
1 sibling, 0 replies; 13+ messages in thread
From: upi @ 2005-10-23 18:11 UTC (permalink / raw)
Hi,
On Sun, Oct 23, 2005 at 09:13:24PM +0400, Sergey Tikhonov wrote:
>
> Ok, here are findings (Mike thank you for access to ev6 machine).
> The rpm tries to take value for _host_cpu variable from
> /etc/rpm/platform file (it contains machine-vendor-os triplet).
> As other mentioned here the file itself is created by anaconda (I didn't
> know that).
> If the file doesn't exist - the rpm uses "uname" call and then tries to
> use implver and amask to find out exact cpu type
> and sets _host_cpu variable. So, rpm works correctly - it is just a
> matter corretly create /etc/rpm/platform file. :)
I think (i was actually tracing it a bit too) it's rhpl which is giving
anaconda the arch/canonarch values for writing the /etc/rpm/platform.
There seems to be quite a lot odd hacks already for different
platforms, so few more for different alpha platforms would not hurt
anymore _more_.
for example
/usr/lib/anaconda/iutil.py defines it like
myarch = rhpl.arch.canonArch
and that
/usr/lib/python2.3/site-packages/rhpl/arch.py
has all kind of weird hacks already in it (among few mods to make alpha
work at all with anaconda).
For alpha it's not that bad when the /etc/rpm/platform would precent
something else than <basearc>-redhat-linux, but there might be side
effects on that area too.
At least when sparc64 is running 64bit kernel and 32bit userspace,
there is obviously sparc64-redhat-linux in /etc/rpm/platform. This has
some side effects when trying to rebuild --target sparc. %_lib tends to
translate to /lib64/ so it wont' work as expected. This is NOT related
to alpha. It's just example of that there might be something more side
effects with this /etc/rpm/platform
--
Pasi Pirhonen - upi at iki.fi - http://iki.fi/upi/
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 18:35 ` tsv
2005-10-22 18:50 ` michal
@ 2005-10-22 18:58 ` upi
2005-10-22 22:41 ` mike
1 sibling, 1 reply; 13+ messages in thread
From: upi @ 2005-10-22 18:58 UTC (permalink / raw)
Hi,
On Sat, Oct 22, 2005 at 10:35:57PM +0400, Sergey Tikhonov wrote:
> >
> I recall of debugging rpm in order to understand the issue. If I recall
> correctly rpm takes arch
> from /etc/rpm/platform - if it doesn't exists - it does use asm
> instructions to get CPU type.
> The above "arch_compat" macros says that "alpha" packages can be
> installed on "alphaev6" arch
> not the way around. I remember modifying platform file for alphaev6 and
> I was able to install
> alphaev6 rpm without using --ignorearch flag.
>
Now, when we are at it, what would be the consensus on this issue. I
don't have my ES45 on right now, so can't check, but i do believe it
writes there 'alphaev68-redhat-linux' to /etc/rpm/platform which makes
it retty much digest anything from above.
I do see on EV45 machine 'alpha-redhat-linux' on my /etc/rpm/platform,
but i don't really remember if i have tampered with it after
installation (did install that from beta-version back Jun).
What i read above, it would be best to mod anaconda not write any
/etc/rpm/platform at all?
--
Pasi Pirhonen - upi at iki.fi - http://iki.fi/upi/
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 18:58 ` upi
@ 2005-10-22 22:41 ` mike
2005-10-23 16:26 ` Jay.Estabrook
0 siblings, 1 reply; 13+ messages in thread
From: mike @ 2005-10-22 22:41 UTC (permalink / raw)
> I do see on EV45 machine 'alpha-redhat-linux' on my /etc/rpm/platform,
> but i don't really remember if i have tampered with it after
> installation (did install that from beta-version back Jun).
I think /etc/rpm/platform is derived from the results of uname. I'd have
to look into the RPM stuff itself to be sure - this is from memory. The
reason we got this idea was a simple compare of the results of "uname -a"
from my main server (dual Athlon). The architecture types are grouped as:
"i686 athlon i386".
On my DS10, the same fields come up as: "alpha alpha alpha". From memory
(and if anyone's got RH7.2 running on an EV6, please confirm), this used
to be "alpha alphaev6 alpha".
^ permalink raw reply [flat|nested] 13+ messages in thread
* CPU Arch Detection
2005-10-22 22:41 ` mike
@ 2005-10-23 16:26 ` Jay.Estabrook
0 siblings, 0 replies; 13+ messages in thread
From: Jay.Estabrook @ 2005-10-23 16:26 UTC (permalink / raw)
On Sun, Oct 23, 2005 at 08:41:36AM +1000, Mike Barnes wrote:
>
> On my DS10, the same fields come up as: "alpha alpha alpha". From memory
> (and if anyone's got RH7.2 running on an EV6, please confirm), this used
> to be "alpha alphaev6 alpha".
DS20 running 7.2 for Alpha plus updates:
>> $ uname -a
>> Linux linux04.mro.cpqcorp.net 2.4.18-27.7.x.hpsmp #1 SMP Mon May 12 23:40 2003 alpha unknown
DS40 running AC-1.0:
>>[jestabro at jaye1 ~]$ uname -a
>> Linux jaye1.zko.hp.com 2.6.11-1.1180axp_FC3smp #1 SMP Mon Apr 18 14:35:11 EEST 2005 alpha alpha alpha GNU/Linux
--Jay++
---------------------------------------------------------------
Jay A Estabrook HPTC - XC I & B
Hewlett-Packard Company - ZKO1-3/D-B.8 (603) 884-0301
110 Spit Brook Road, Nashua NH 03062 Jay.Estabrook at hp.com
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-10-23 18:11 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-22 11:45 CPU Arch Detection mike
2005-10-22 15:31 ` michal
2005-10-22 17:40 ` upi
2005-10-22 18:35 ` tsv
2005-10-22 18:50 ` michal
2005-10-22 19:17 ` tsv
2005-10-22 22:30 ` mike
2005-10-23 17:13 ` tsv
2005-10-23 17:54 ` michal
2005-10-23 18:11 ` upi
2005-10-22 18:58 ` upi
2005-10-22 22:41 ` mike
2005-10-23 16:26 ` Jay.Estabrook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox