Thank you for the hint! — that work just perfectly.
Best,
Ken
On Nov 3, 2021, at 11:01 AM, Cameron MacPherson <[email protected]> wrote:
you have to add the following to your /etc/apt/sources.list to get the experimental packages
deb http://ftp.ports.debian.org/debian-ports/ <http://ftp.ports.debian.org/debian-ports/> experimental main
see here
https://wiki.debian.org/DebianExperimental <https://wiki.debian.org/DebianExperimental>
On Wed, Nov 3, 2021, 10:42 AM Ken Cunningham <[email protected] <mailto:[email protected]>> wrote:
It appears that when building portable code, the ax_gcc_archflag.m4 macro clears -mcpu for almost every arch except powerpc:
https://github.com/libffi/libffi/blob/master/m4/ax_gcc_archflag.m4#L241 <https://github.com/libffi/libffi/blob/master/m4/ax_gcc_archflag.m4#L241>
case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
The fact that PowerPC is excluded must result in m4 passing the “-mcpu=“ flag matching the buildbot’s CPU, and breaks everything older than the buildbot.
This must happen with any build that uses this ax_gcc_archflag.m4 macro.
I wonder why powerpc* is excluded? Seems like this line should rather be:
case $host_cpu in i*86|x86_64*|powerpc*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
Ken
PS. Although I did not as yet sort out getting the “experimental” packages (I keep getting an error when I try to use that option), building libffi in a couple of minutes on the local machine and installing that of course works easily. — K
On Nov 2, 2021, at 2:01 PM, John Paul Adrian Glaubitz <[email protected] <mailto:[email protected]>> wrote:
On 11/2/21 21:59, Cameron MacPherson wrote:
i got the 3.4.2-3+ports package after apt upgrade -t experimental and there
are no illegal instructions
As I expected. The build log didn't have any traces of "-mcpu=power8".
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - [email protected] <mailto:[email protected]> `. `' Freie Universitaet Berlin - [email protected] <mailto:[email protected]>
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thank you for the hint! — that work just perfectly.<div class=""
<br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">Ken<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 3, 2021, at 11:01 AM, Cameron MacPherson <<a href="mailto:cameron.
[email protected]" class="">
[email protected]</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><div dir="auto" class="">you have to add the following to your /etc/apt/sources.list to get the
experimental packages</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">deb <a href="
http://ftp.ports.debian.org/debian-ports/" target="_blank" rel="noreferrer" class="">
http://ftp.ports.debian.org/debian-ports/</a> experimental
main<br class=""></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">see here</div><div dir="auto" class=""></div><a href="
https://wiki.debian.org/DebianExperimental" rel="noreferrer noreferrer" target="_blank" class="">
https://
wiki.debian.org/DebianExperimental</a><div dir="auto" class=""><br class=""></div><div dir="auto" class=""><br class=""><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, Nov 3, 2021, 10:42 AM Ken Cunningham <<a href="mailto:
[email protected]" rel="noreferrer noreferrer noreferrer" target="_blank" class="">
[email protected]</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-
left:1ex">It appears that when building portable code, the ax_gcc_archflag.m4 macro clears -mcpu for almost every arch except powerpc:<br class="">
<br class="">
<a href="
https://github.com/libffi/libffi/blob/master/m4/ax_gcc_archflag.m4#L241" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank" class="">
https://github.com/libffi/libffi/blob/master/m4/ax_gcc_archflag.m4#L241</a><br class=""
<br class="">
case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac<br class="">
<br class="">
<br class="">
<br class="">
The fact that PowerPC is excluded must result in m4 passing the “-mcpu=“ flag matching the buildbot’s CPU, and breaks everything older than the buildbot.<br class="">
<br class="">
This must happen with any build that uses this ax_gcc_archflag.m4 macro.<br class="">
<br class="">
I wonder why powerpc* is excluded? Seems like this line should rather be:<br class="">
<br class="">
case $host_cpu in i*86|x86_64*|powerpc*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac<br class="">
<br class="">
<br class="">
Ken<br class="">
<br class="">
PS. Although I did not as yet sort out getting the “experimental” packages (I keep getting an error when I try to use that option), building libffi in a couple of minutes on the local machine and installing that of course works easily. — K<br class=
<br class="">
<br class="">
> On Nov 2, 2021, at 2:01 PM, John Paul Adrian Glaubitz <<a href="mailto:
[email protected]" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank" class="">
[email protected]</a>> wrote:<br class="">
> <br class="">
> On 11/2/21 21:59, Cameron MacPherson wrote:<br class="">
>> i got the 3.4.2-3+ports package after apt upgrade -t experimental and there<br class="">
>> are no illegal instructions<br class="">
> <br class="">
> As I expected. The build log didn't have any traces of "-mcpu=power8".<br class="">
> <br class="">
> Adrian<br class="">
> <br class="">
> -- <br class="">
> .''`. John Paul Adrian Glaubitz<br class="">
> : :' : Debian Developer - <a href="mailto:
[email protected]" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank" class="">
[email protected]</a><br class="">
> `. `' Freie Universitaet Berlin - <a href="mailto:
[email protected]" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank" class="">
[email protected]</a><br class="">
> `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913<br class="">
> <br class="">
<br class="">
</blockquote></div></div></div>
</div></blockquote></div><br class=""></div></body></html>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)