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

cc 1.0.87 cause build error with warning #971

Closed
sehz opened this issue Feb 24, 2024 · 5 comments · Fixed by #972
Closed

cc 1.0.87 cause build error with warning #971

sehz opened this issue Feb 24, 2024 · 5 comments · Fixed by #972

Comments

@sehz
Copy link

sehz commented Feb 24, 2024

warning: [email protected]+zstd.1.5.5: error: UnknownOperatingSystem
warning: [email protected]+zstd.1.5.5: running: "/home/runner/work/my-project/build-scripts/x86_64-linux-musl-zig-cc" "--version"
warning: [email protected]+zstd.1.5.5: exit status: 0
@sehz
Copy link
Author

sehz commented Feb 24, 2024

Suggest revert back changes to 1.0.83 which was stable

@NobodyXu
Copy link
Collaborator

Duplicate of #970

@NobodyXu NobodyXu marked this as a duplicate of #970 Feb 24, 2024
@NobodyXu
Copy link
Collaborator

Suggest revert back changes to 1.0.83 which was stable

It's not a hard error, just debugging print of internal which might be useful on failure.

@sehz
Copy link
Author

sehz commented Feb 24, 2024

It cause build failure:

warning: [email protected]+zstd.1.5.5: ToolExecError: Command "/home/runner/work/myproject/build-scripts/x86_64-linux-musl-zig-cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "--target=x86_64-unknown-linux-musl" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/home/runner/work/myproject/target/x86_64-unknown-linux-musl/debug/build/zstd-sys-6de595e827a277a5/out/690f776bf7b37aeb-huf_decompress_amd64.o" "-c" "zstd/lib/decompress/huf_decompress_amd64.S" with args "x86_64-linux-musl-zig-cc" did not execute successfully (status code exit status: 1).

error: failed to run custom build command for `zstd-sys v2.0.9+zstd.1.5.5`

@sehz sehz changed the title cc 1.0.87 cause build warning cc 1.0.87 cause build error with warning Feb 24, 2024
@NobodyXu
Copy link
Collaborator

I think this is rhe same issue in #948 , which also has a tracking issue in upstream ziglang/zig#4911

@sehz I recommend you to use https://github.com/rust-cross/cargo-zigbuild , it has workarounds for common issues of zig.

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

Successfully merging a pull request may close this issue.

2 participants