New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust: support build under rosetta2 #21015
Conversation
Otherwise it fails. https://trac.macports.org/ticket/68185
Notifying maintainers: |
I am suspicious this error is probably coming from our old friend, the misconfiguration of jemalloc running under rosetta due to LG_VADDR not being detected correctly when running under the rosetta emulator. The block that fixes this in the rust portfile: macports-ports/lang/rust/Portfile Line 156 in 746b2f5
will not be activated when you build it with the terminal set to an x86_64 arch, as IIRC, So another way around this might be to force those env vars that fix this to activate... build.env-append JEMALLOC_SYS_WITH_LG_VADDR=48 |
I'll try this. |
I've tried this and it's not worked. |
That's odd -- because we 100% know that fixes the build of rust when running under rosetta2 and building muniversal with jemalloc enabled...I wonder if the env vars applied... When @MarcusCalhoun-Lopez does come around again, I can't help but feel fairly sure this is going to be reverted, if it is committed. But he's not here, and I'm not going to set up another installation of macports running under an x86_64 terminal just to work on this... Are we sure this PR doesn't break the universal build of rust we have now? We don't want that build to change, for example by building rust two different ways (jemalloc on and jemalloc off). |
I'll be honest, once I changed the Portfile, it stopped building under any circumstances, so I'm not confident anymore. Now I'm trying to figure out how to get any debugging info out of Portfiles. using |
To answer my own question: use |
ui_debug output is visible when you build with the “-d” flag added (debug) |
How do we either finish this or close it? |
This needs to be re-examined from a fresh start. |
@kencu So does that mean we close it and someone starts over? (What is the next concrete action that should be taken?) |
sure, I guess. |
Description
Support building rust under rosetta2 (for x86_64). Otherwise it fails.
See bug report: https://trac.macports.org/ticket/68185
Type(s)
Tested on
macOS 13.6 22G120 arm64
Xcode 15.0.1 15A507
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
?