[MacPorts] #68028: Rust 1.72.0 released
MacPorts
noreply at macports.org
Sat Nov 4 22:58:24 UTC 2023
#68028: Rust 1.72.0 released
--------------------------+---------------------------------
Reporter: herbygillot | Owner: MarcusCalhoun-Lopez
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: rust |
--------------------------+---------------------------------
Comment (by erikbs):
I had to try one last thing: editing the linker, which is
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/compwrap/ld/opt/local/bin
/clang-mp-17`. This is a bash script that inserts Macports Legacy Support
flags and forwards its input to `/opt/local/bin/clang-mp-17`. I modified
it so that unless the command contained `dynamiclib`, it would set the
stack size to 16 MiB:
{{{
#!/bin/bash
if [[ "${@}" == *"dynamiclib"* ]]; then
exec /opt/local/bin/clang-mp-17 ${MACPORTS_LEGACY_SUPPORT_CPPFLAGS}
"${@}"
else
exec /opt/local/bin/clang-mp-17 ${MACPORTS_LEGACY_SUPPORT_CPPFLAGS}
"${@}" -Wl,-stack_size,0x1000000
fi
}}}
Now otool reports a stack size of 16 MiB:
{{{
$ otool -lV
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_rust/rust/work/rustc-1.71.1-src/build/bootstrap/debug/bootstrap
| grep stack
stacksize 16777216
}}}
Of course I also had to increase the `ulimit -s` value for this to work –
I chose 32 MiB. Still the `bootstrap` binary SEGFAULTs and LLDB still
reports EXC_BAD_ACCESS (code 2) with a RSP difference of about 512 kiB
between the top and bottom frame, just as it did before. I also tried
setting the stack size to 2 MiB, but the result was the same.
I give up, at least for now.
--
Ticket URL: <https://trac.macports.org/ticket/68028#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list