[MacPorts] #65942: mrustc with GCC for PowerPC
MacPorts
noreply at macports.org
Wed Apr 12 23:02:48 UTC 2023
#65942: mrustc with GCC for PowerPC
---------------------------+----------------------
Reporter: barracuda156 | Owner: catap
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc
Port: mrustc |
---------------------------+----------------------
Comment (by barracuda156):
Quick updates:
1. `mrustc` builds as a ppc binary, but with totally wrong target
settings: that explains why `rust` was picking x86.
{{{
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_mrustc/mrustc/work
/thepowersgang-mrustc-1b1416b/bin/mrustc -Z print-cfgs
sergey-fedorovs-power-mac-g5:~ svacchanda$
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_mrustc/mrustc/work
/thepowersgang-mrustc-1b1416b/bin/mrustc -Z print-cfgs
Setup: V V V
(0.00 s) Setup: DONE
Target Load: V V V
(0.00 s) Target Load: DONE
>rust_compiler=mrustc
>target_arch=x86_64
>target_endian=little
>target_env=gnu
>target_family=unix
>target_has_atomic=8
>target_has_atomic=16
>target_has_atomic=32
>target_has_atomic=64
>target_has_atomic=ptr
>target_has_atomic=cas
>target_has_atomic_equal_alignment=8
>target_has_atomic_equal_alignment=16
>target_has_atomic_equal_alignment=32
>target_has_atomic_equal_alignment=64
>target_has_atomic_equal_alignment=ptr
>target_has_atomic_load_store=8
>target_has_atomic_load_store=16
>target_has_atomic_load_store=32
>target_has_atomic_load_store=64
>target_has_atomic_load_store=ptr
>target_os=macos
>target_pointer_width=64
>target_vendor=apple
>target_vendor=
>apple
>unix
}}}
2. Latest update to `mrustc` has broken some patch:
{{{
make[1]: Nothing to be done for `all'.
test -e bin/minicargo
tar -xf rustc-1.54.0-src.tar.gz
cd rustc-1.54.0-src/ && patch -p0 < ../rustc-1.54.0-src.patch;
/bin/sh: ../rustc-1.54.0-src.patch: No such file or directory
make: *** [rustc-1.54.0-src//dl-version] Error 1
Command failed: cd
"/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_mrustc/mrustc/work
/thepowersgang-mrustc-1b1416b" && /usr/bin/make -j2 -w -f minicargo.mk -j2
bin/mrustc bin/minicargo && /usr/bin/make -j2 -C tools/dump_hirfile &&
/usr/bin/make -j2 -C tools/standalone_miri && /usr/bin/make -j1 -f
minicargo.mk LIBS
Exit code: 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65942#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list