[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Oct 24 07:00:58 BST 2023


--- Comment #174 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Jacob Lifshay from comment #172)
> (In reply to Dmitry Selyutin from comment #171)
> > > I would guess the issue is that uname is being used, but what you actually
> > > need is the arch of the user-space executable, not the kernel, since Luke
> > > seems to have a armhf user-space and aarch64 kernel. after some
> > > experimentation, it looks like you can use:
> > > python3 -c 'import sysconfig;
> > > print(sysconfig.get_config_var("HOST_GNU_TYPE"))'
> > 
> > I'd take a look at this:
> > platform.architecture()[0]
> > sys.maxsize > 2**32
> platform.architecture() on my phone returns:
> ('64bit', 'ELF')
> which has no mention of arm. so imo not very useful.
> presumably aarch64 systems can have both armhf and armel multiarch. x86_64
> likewise can have both i686 and x32.

Yes I know. You have to check both arch and some Python executable information
simultaneously. That's why you need to check not only platform.platform() but
also sys.maxsize (as a cheap way).

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list