[MacPorts] #63333: cargo @0.54.0_1 fails to build some crates on 10.9
MacPorts
noreply at macports.org
Tue Aug 3 01:53:08 UTC 2021
#63333: cargo @0.54.0_1 fails to build some crates on 10.9
----------------------------------------+-------------------------
Reporter: fhgwright | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: cargo, rust-compiler-wrap |
----------------------------------------+-------------------------
Comment (by fhgwright):
There isn't a "build log" in the MacPorts sense, but here's the output.
Note that this is in a git repo derived from the project noted above.
{{{
MacPro:~ fw$ cd /Volumes/MacPro-Misc/GitHub/library-loader/ll-cli/
MacPro:ll-cli fw$ cargo build --release --bin library-loader-cli
Compiling bzip2-sys v0.1.9+1.0.8
Compiling serde_derive v1.0.114
Compiling failure_derive v0.1.8
error: linking with `/opt/local/libexec/rust-compiler-wrap/bin/ld-rust`
failed: exit status: 1
|
= note: "/opt/local/libexec/rust-compiler-wrap/bin/ld-rust" "-m64"
"-arch" "x86_64" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/build/bzip2-sys-4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.0.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.1.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.10.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.11.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.12.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.13.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.14.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.15.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.2.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.3.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.4.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.5.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.6.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.7.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.8.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.build_script_build.22t64wl1-cgu.9.rcgu.o" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2-sys-
4025a183244f9380/build_script_build-
4025a183244f9380.3nyps5y8nyv2dd92.rcgu.o" "-L" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps" "-L"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps/libpkg_config-
f472b2c14eb36a1a.rlib" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/libcc-426671f5d7707c4e.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-
b4aa51e1b3a806c5.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libpanic_unwind-b5e0ee5b34899691.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/libobject-b389e7e5aaedc266.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-
c6c30fe85d21a041.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libgimli-df71b1a0f7222dab.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/libstd_detect-8e384ecaefcd351e.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-
73ebcb64354151a4.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libhashbrown-877dea5675c34ac2.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/librustc_std_workspace_alloc-65c1b0a6ae77b061.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libunwind-
4b8c2da58aa4bbee.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libcfg_if-8e613fbb2d10ca79.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/liblibc-1374d24935c09ecf.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/liballoc-844578fece21232b.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/librustc_std_workspace_core-8fa8b753ada45943.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-
58d35d64ccb4eecf.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libcompiler_builtins-a130f34109f01370.rlib" "-lSystem" "-lresolv" "-lc"
"-lm" "-liconv" "-L" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "-o"
"/Volumes/MacPro-Misc/GitHub/library-loader/target/release/build/bzip2
-sys-4025a183244f9380/build_script_build-4025a183244f9380"
"-Wl,-dead_strip" "-nodefaultlibs"
= note: Undefined symbols for architecture x86_64:
"_linkat", referenced from:
std::sys::unix::fs::link::h95dca71bfe26f889 in libstd-
b4aa51e1b3a806c5.rlib(std-b4aa51e1b3a806c5.std.e6zzngrm-cgu.9.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
error: aborting due to previous error
error: could not compile `bzip2-sys`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: linking with `/opt/local/libexec/rust-compiler-wrap/bin/ld-rust`
failed: exit status: 1
|
= note: "/opt/local/libexec/rust-compiler-wrap/bin/ld-rust" "-m64"
"-arch" "x86_64" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.0.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.1.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.10.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.11.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.12.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.13.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.14.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.15.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.2.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.3.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.4.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.5.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.6.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.7.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.8.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-2d65b3ddb607f2d7.failure_derive
.4k1r9wpx-cgu.9.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/failure_derive-
2d65b3ddb607f2d7.1jdvlz2zivmzt2bg.rcgu.o" "/Volumes/MacPro-Misc/GitHub
/library-loader/target/release/deps/failure_derive-
2d65b3ddb607f2d7.2u1glcancic3ar2g.rcgu.o" "-L" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps" "-L"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps/libsynstructure-
09cc56e2c8bd9e58.rlib" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/libsyn-eebee8414f5b9106.rlib" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps/libquote-
3c2d5323625e099f.rlib" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/libproc_macro2-4f4068827287fc39.rlib" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/deps/libunicode_xid-
8ea77799edfa54fd.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libproc_macro-79dc1d8219f18da8.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/libstd-b4aa51e1b3a806c5.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-
b5e0ee5b34899691.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libobject-b389e7e5aaedc266.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/libaddr2line-c6c30fe85d21a041.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libgimli-
df71b1a0f7222dab.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libstd_detect-8e384ecaefcd351e.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/librustc_demangle-73ebcb64354151a4.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-
877dea5675c34ac2.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/librustc_std_workspace_alloc-65c1b0a6ae77b061.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libunwind-
4b8c2da58aa4bbee.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libcfg_if-8e613fbb2d10ca79.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/liblibc-1374d24935c09ecf.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/liballoc-844578fece21232b.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/librustc_std_workspace_core-8fa8b753ada45943.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-
58d35d64ccb4eecf.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libcompiler_builtins-a130f34109f01370.rlib" "-lSystem" "-lresolv" "-lc"
"-lm" "-liconv" "-L" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "-o"
"/Volumes/MacPro-Misc/GitHub/library-loader/target/release/deps
/libfailure_derive-2d65b3ddb607f2d7.dylib" "-Wl,-dead_strip" "-dynamiclib"
"-Wl,-dylib" "-nodefaultlibs"
= note: Undefined symbols for architecture x86_64:
"_linkat", referenced from:
std::sys::unix::fs::link::h95dca71bfe26f889 in libstd-
b4aa51e1b3a806c5.rlib(std-b4aa51e1b3a806c5.std.e6zzngrm-cgu.9.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
error: aborting due to previous error
error: linking with `/opt/local/libexec/rust-compiler-wrap/bin/ld-rust`
failed: exit status: 1
|
= note: "/opt/local/libexec/rust-compiler-wrap/bin/ld-rust" "-m64"
"-arch" "x86_64" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.0.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.1.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.10.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.11.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.12.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.13.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.14.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.15.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.2.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.3.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.4.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.5.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.6.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.7.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.8.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-40265251519554d0.serde_derive
.97u09uqu-cgu.9.rcgu.o" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/serde_derive-
40265251519554d0.5gehjm3gfe0gpjm2.rcgu.o" "/Volumes/MacPro-Misc/GitHub
/library-loader/target/release/deps/serde_derive-
40265251519554d0.2ovazu7y522672fw.rcgu.o" "-L" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps" "-L"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "/Volumes/MacPro-
Misc/GitHub/library-loader/target/release/deps/libsyn-
eebee8414f5b9106.rlib" "/Volumes/MacPro-Misc/GitHub/library-
loader/target/release/deps/libquote-3c2d5323625e099f.rlib" "/Volumes
/MacPro-Misc/GitHub/library-
loader/target/release/deps/libproc_macro2-4f4068827287fc39.rlib" "/Volumes
/MacPro-Misc/GitHub/library-loader/target/release/deps/libunicode_xid-
8ea77799edfa54fd.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libproc_macro-79dc1d8219f18da8.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/libstd-b4aa51e1b3a806c5.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-
b5e0ee5b34899691.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libobject-b389e7e5aaedc266.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/libaddr2line-c6c30fe85d21a041.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libgimli-
df71b1a0f7222dab.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libstd_detect-8e384ecaefcd351e.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/librustc_demangle-73ebcb64354151a4.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-
877dea5675c34ac2.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/librustc_std_workspace_alloc-65c1b0a6ae77b061.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libunwind-
4b8c2da58aa4bbee.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libcfg_if-8e613fbb2d10ca79.rlib" "/opt/local/lib/rustlib/x86_64-apple-
darwin/lib/liblibc-1374d24935c09ecf.rlib" "/opt/local/lib/rustlib/x86_64
-apple-darwin/lib/liballoc-844578fece21232b.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/librustc_std_workspace_core-8fa8b753ada45943.rlib"
"/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-
58d35d64ccb4eecf.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib
/libcompiler_builtins-a130f34109f01370.rlib" "-lSystem" "-lresolv" "-lc"
"-lm" "-liconv" "-L" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "-o"
"/Volumes/MacPro-Misc/GitHub/library-loader/target/release/deps
/libserde_derive-40265251519554d0.dylib" "-Wl,-dead_strip" "-dynamiclib"
"-Wl,-dylib" "-nodefaultlibs"
= note: Undefined symbols for architecture x86_64:
"_linkat", referenced from:
std::sys::unix::fs::link::h95dca71bfe26f889 in libstd-
b4aa51e1b3a806c5.rlib(std-b4aa51e1b3a806c5.std.e6zzngrm-cgu.9.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
error: aborting due to previous error
error: build failed
MacPro:ll-cli fw$
}}}
It seems to me that the missing piece is having the compiler wrapper
provide the legacy-support library for linking. There seem to be three
different ways to do that; I'm not sure which is best in this context.
One can see the "-lSystem" in the linker command line, which is presumably
where it's linking against the standard OS runtime. Merely tweaking this
for the legacy-support version doesn't work, since it doesn't have the
appropriate directory in its library search paths. One question is
whether to add another path here, or to put a symlink in rust's library
directory pointing to the legacy-support library.
--
Ticket URL: <https://trac.macports.org/ticket/63333#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list