Opened 3 years ago
Closed 3 years ago
#64587 closed defect (fixed)
MoarVM proposed fix for ppc
Reported by: | barracuda156 | Owned by: | evanmiller (Evan Miller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | powerpc, snowleopard, rosetta | Cc: | evanmiller (Evan Miller) |
Port: | MoarVM |
Description
---> Configuring MoarVM Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2021.07" && /opt/local/bin/perl Configure.pl --prefix=/opt/local --cc=/opt/local/bin/gcc-mp-6 --has-dyncall --has-libatomic_ops --has-libuv Welcome to MoarVM! Configuring native build environment ................... Binary file /opt/local/bin/gcc-mp-6 matches Binary file /opt/local/bin/gcc-mp-6 matches GNU tools detected, despite this not being a GNU-oriented build. Please correct this and retry. See README.markdown for more details. Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2021.07" && /opt/local/bin/perl Configure.pl --prefix=/opt/local --cc=/opt/local/bin/gcc-mp-6 --has-dyncall --has-libatomic_ops --has-libuv Exit code: 255 Error: Failed to configure MoarVM: configure failure: command execution failed
Attachments (1)
Change History (12)
Changed 3 years ago by barracuda156
comment:1 follow-up: 3 Changed 3 years ago by evanmiller (Evan Miller)
Cc: | evanmiller added |
---|
comment:2 Changed 3 years ago by barracuda156
comment:3 Changed 3 years ago by barracuda156
Replying to evanmiller:
I have fixed it:
36-73% port -v installed moarvm The following ports are currently installed: MoarVM @2022.02_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-03-22T08:10:05+0800'
The following changes are needed for ppc. Add this to portfile:
PortGroup legacysupport 1.0 legacysupport.newest_darwin_requires_legacy 10 if {${os.platform} eq "darwin" && ${os.arch} eq "powerpc"} { configure.args-append --no-mimalloc }
And add this patch:
--- Configure.pl.orig 2021-07-24 18:24:40.000000000 +0800 +++ Configure.pl 2022-03-21 18:14:42.000000000 +0800 @@ -187,20 +187,6 @@ $gnu_count += 1; } } - - ## For a GNU toolchain, make sure that they're all GNU. - if ($gnu_toolchain && $gnu_count != scalar @check_tools) { - print "\nNot all tools in the toolchain are GNU. Please correct this and retry.\n" - . "See README.markdown for more details.\n\n"; - exit -1; - } - - ## Otherwise, make sure that none of them are GNU - elsif (!$gnu_toolchain && $gnu_count != 0) { - print "\nGNU tools detected, despite this not being a GNU-oriented build.\n" - ." Please correct this and retry. See README.markdown for more details.\n\n"; - exit -1; - } } # Probe the compiler.
The first addresses a lack of strnlen, arc4random_buf and mimalloc, the latter fixes configure failure.
comment:4 Changed 3 years ago by barracuda156
Summary: | MoarVM configure failure for ppc: GNU tools detected, despite this not being a GNU-oriented build → MoarVM proposed fix for ppc |
---|
comment:5 Changed 3 years ago by barracuda156
And now I have nqp
and rakudo
built:
36-73% port -v installed rakudo The following ports are currently installed: rakudo @2022.02_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-03-22T09:02:19+0800' 36-73% port -v installed nqp The following ports are currently installed: nqp @2022.02_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-03-22T08:43:03+0800'
comment:6 follow-up: 8 Changed 3 years ago by evanmiller (Evan Miller)
Very cool! I will propose the legacysupport stuff first since that affects Intel. Then I'll try your changes on PPC.
comment:7 Changed 3 years ago by evanmiller (Evan Miller)
comment:8 follow-up: 9 Changed 3 years ago by barracuda156
Replying to evanmiller:
Very cool! I will propose the legacysupport stuff first since that affects Intel. Then I'll try your changes on PPC.
Did it work for you on PPC without a patch to configure?
comment:9 follow-up: 10 Changed 3 years ago by evanmiller (Evan Miller)
Replying to barracuda156:
Replying to evanmiller:
Very cool! I will propose the legacysupport stuff first since that affects Intel. Then I'll try your changes on PPC.
Did it work for you on PPC without a patch to configure?
A configure patch is needed for PPC. It is also needed for 10.7/10.8:
https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/83899
I'll see if I can put together a PR this morning.
comment:10 Changed 3 years ago by barracuda156
Replying to evanmiller:
Replying to barracuda156:
Replying to evanmiller:
Very cool! I will propose the legacysupport stuff first since that affects Intel. Then I'll try your changes on PPC.
Did it work for you on PPC without a patch to configure?
A configure patch is needed for PPC. It is also needed for 10.7/10.8:
https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/83899
I'll see if I can put together a PR this morning.
Yes, it fails on Leopard otherwise:
---> Configuring MoarVM Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2021.07" && /opt/local/bin/perl Configure.pl --prefix=/opt/local --cc=/opt/local/bin/gcc-mp-6 --has-dyncall --has-libatomic_ops --has-libuv Welcome to MoarVM! Configuring native build environment ................... Binary file /opt/local/bin/gcc-mp-6 matches Binary file /opt/local/bin/gcc-mp-6 matches GNU tools detected, despite this not being a GNU-oriented build. Please correct this and retry. See README.markdown for more details. Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2021.07" && /opt/local/bin/perl Configure.pl --prefix=/opt/local --cc=/opt/local/bin/gcc-mp-6 --has-dyncall --has-libatomic_ops --has-libuv Exit code: 255 Error: Failed to configure MoarVM: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port moarvm failed
comment:11 Changed 3 years ago by evanmiller (Evan Miller)
Owner: | set to evanmiller |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The same happens when trying to use gcc11.
Config error is solved but the build fails on: