Skip to content
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 1.10 fails to build with local rust on OS X #35149

Closed
bcully opened this issue Jul 31, 2016 · 0 comments
Closed

rust 1.10 fails to build with local rust on OS X #35149

bcully opened this issue Jul 31, 2016 · 0 comments

Comments

@bcully
Copy link
Contributor

bcully commented Jul 31, 2016

I'm the maintainer of fink's rust package, trying to update it to 1.10.0. It currently fails trying to run the stage0 compiler:

rustc: x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/libcore
dyld: Library not loaded: @rpath/libarena-d16b8f0e.dylib
  Referenced from: /Users/brendan/tmp/rustc-1.10.0/x86_64-apple-darwin/stage0/bin/rustc
  Reason: image not found
make: *** [x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/stamp.core] Trace/BPT trap: 5

As far as I can tell, this is due to a bug in src/etc/local_stage0.sh. The following patch fixes it for me:

diff --git a/src/etc/local_stage0.sh b/src/etc/local_stage0.sh
index 354be34..9109df0 100755
--- a/src/etc/local_stage0.sh
+++ b/src/etc/local_stage0.sh
@@ -59,6 +59,7 @@ case "$TARG_DIR" in
 cp ${PREFIX}/bin/rustc${BIN_SUF} ${TARG_DIR}/stage0/bin/
 cp ${PREFIX}/${LIB_DIR}/${RUSTLIBDIR}/${TARG_DIR}/${LIB_DIR}/* ${TARG_DIR}/stage0/${LIB_DIR}/
 cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}extra*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
+cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}arena*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
 cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}rust*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
 cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}std*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
 cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}syntax*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/

though honestly it looks a bit fragile this way and I wonder if there's a reason not to copy everything in that matches ${LIB_PREFIX}*${LIB_SUF}.

bors added a commit that referenced this issue Aug 1, 2016
Add libarena from local rust to stage0

This was needed at least when local rust was 1.9.0 on darwin.

Fixes #35149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant