svn commit: r547371 - head/lang/rust-bootstrap

Tobias Kortkamp tobik at FreeBSD.org
Wed Sep 2 18:15:58 UTC 2020


Author: tobik
Date: Wed Sep  2 18:15:58 2020
New Revision: 547371
URL: https://svnweb.freebsd.org/changeset/ports/547371

Log:
  lang/rust-bootstrap: Unbreak build
  
  error: linking with `/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/aarch64-unknown-freebsd-cc` failed: exit code: 1
    |
    = note: "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/aarch64-unknown-freebsd-cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1/lib/rustlib/aarch64-unknown-freebsd/lib" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/rustc_binary-aee2141e03185e53.rustc_binary.b5znfnzc-cgu.0.rcgu.o" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/rustc_binary-aee2141e03185e53.rustc_binary.b5znfnzc-cgu.1.rcgu.o" "-o" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/rustc_binary-aee2141e03185e53" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs
 " "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/build/psm-b70dc38335c8633c/out" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/build/rustc_llvm-2e64396678b51f1b/out" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/aarch64-unknown-freebsd/llvm/build/lib" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1/lib/rustlib/aarch64-unknown-freebsd/lib" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.4
 6.0-src/build/x86_64-unknown-freebsd/stage1-!
 rustc/aarch64-unknown-freebsd/release/deps" "-lrustc_driver-92f05a38b6344bea" "-Wl,--start-group" "-L" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1/lib/rustlib/aarch64-unknown-freebsd/lib" "-lstd-1f5c5da87793947f" "-Wl,--end-group" "-Wl,-Bstatic" "/wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1/lib/rustlib/aarch64-unknown-freebsd/lib/libcompiler_builtins-8365ea7481741727.rlib" "-Wl,-Bdynamic" "-lc++" "-lutil" "-lutil" "-lexecinfo" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" "-Wl,-rpath,$ORIGIN/../lib"
    = note: ld: error: /wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/librustc_driver-92f05a38b6344bea.so: undefined reference to compress2 [--no-allow-shlib-undefined]
            ld: error: /wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/librustc_driver-92f05a38b6344bea.so: undefined reference to compressBound [--no-allow-shlib-undefined]
            ld: error: /wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/librustc_driver-92f05a38b6344bea.so: undefined reference to crc32 [--no-allow-shlib-undefined]
            ld: error: /wrkdirs/usr/ports/lang/rust-bootstrap/work-aarch64/rustc-1.46.0-src/build/x86_64-unknown-freebsd/stage1-rustc/aarch64-unknown-freebsd/release/deps/librustc_driver-92f05a38b6344bea.so: undefined reference to uncompress [--no-allow-shlib-undefined]
            cc: error: linker command failed with exit code 1 (use -v to see invocation)

Modified:
  head/lang/rust-bootstrap/Makefile

Modified: head/lang/rust-bootstrap/Makefile
==============================================================================
--- head/lang/rust-bootstrap/Makefile	Wed Sep  2 17:47:10 2020	(r547370)
+++ head/lang/rust-bootstrap/Makefile	Wed Sep  2 18:15:58 2020	(r547371)
@@ -146,6 +146,8 @@ do-configure:
 .else
 	@${ECHO_CMD} 'ccache=false' >> ${WRKSRC}/config.toml
 .endif
+# https://github.com/rust-lang/rust/pull/72696#issuecomment-641517185
+	@${ECHO_CMD} 'ldflags="-lz"' >> ${WRKSRC}/config.toml
 # we need to make sure to always build llvm with X86 support to get a
 # host compiler that can build the host->target compiler
 	@${ECHO_CMD} 'targets="${_RUST_LLVM_TARGET};X86"' >> ${WRKSRC}/config.toml


More information about the svn-ports-head mailing list