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

Issue building zstd-sys on mips-unknown-linux-musl #1137

Closed
Alexhuszagh opened this issue Nov 15, 2022 Discussed in #1136 · 0 comments · Fixed by #1138
Closed

Issue building zstd-sys on mips-unknown-linux-musl #1137

Alexhuszagh opened this issue Nov 15, 2022 Discussed in #1136 · 0 comments · Fixed by #1138
Labels
A-mips Area: MIPS targets A-musl Area: musl libc targets bug container-images

Comments

@Alexhuszagh
Copy link
Contributor

Alexhuszagh commented Nov 15, 2022

Discussed in #1136

Originally posted by brentalanmiller November 14, 2022
I'm not sure if this is a bug in cross or zstd-sys, but when I try to build a package that depends on zstd-sys, it throws an error:

error occurred: Command "mips-linux-musl-ar" "cq" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/libzstd.a" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/debug.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/entropy_common.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/error_private.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/fse_decompress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/pool.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/threading.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/common/zstd_common.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/fse_compress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/hist.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/huf_compress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_compress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_compress_literals.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_compress_sequences.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_compress_superblock.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_double_fast.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_fast.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_lazy.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_ldm.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstd_opt.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/compress/zstdmt_compress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/decompress/huf_decompress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/decompress/zstd_ddict.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/decompress/zstd_decompress.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/decompress/zstd_decompress_block.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/dictBuilder/cover.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/dictBuilder/divsufsort.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/dictBuilder/fastcover.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/dictBuilder/zdict.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v01.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v02.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v03.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v04.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v05.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v06.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/legacy/zstd_v07.o" "/target/mips-unknown-linux-musl/release/build/zstd-sys-fc191d4aac616782/out/zstd/lib/decompress/huf_decompress_amd64.o" with args "mips-linux-musl-ar" did not execute successfully (status code exit status: 127).

Basically, its looking for the command mips-linux-musl-ar and not mips-linux-muslsf-ar, which is strange because it used the correct version of gcc, mips-linux-muslsf-gcc.

I can work around this by simply adding a pre-build script that links mips-linux-muslsf-ar to mips-linux-musl-ar to my Cross.toml:

[target.mips-unknown-linux-musl]
pre-build = ["ln -s /usr/local/bin/mips-linux-muslsf-ar /usr/local/bin/mips-linux-musl-ar"]

But I wasn't sure if this is an issue that should be raised here or with zstd-sys.

Also related is #1100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mips Area: MIPS targets A-musl Area: musl libc targets bug container-images
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant