Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: tsv at solvo.ru (Sergey Tikhonov)
Subject: CPU Arch Detection
Date: Sat, 22 Oct 2005 22:35:57 +0400	[thread overview]
Message-ID: <435A868D.1070506@solvo.ru> (raw)
In-Reply-To: <20051022174004.GI862@core.upi.iki.fi>

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



  reply	other threads:[~2005-10-22 18:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
read-only archive

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