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

Fix zig image #1425

Closed
Emilgardis opened this issue Jan 31, 2024 · 0 comments · Fixed by #1432
Closed

Fix zig image #1425

Emilgardis opened this issue Jan 31, 2024 · 0 comments · Fixed by #1432
Labels
Milestone

Comments

@Emilgardis
Copy link
Member

zig - ❌

     Running `/target/debug/build/hellopp-4198e14c1842cfb5/build-script-build`
The following warnings were emitted during compilation:

warning: [email protected]: error: unsupported linker arg: -melf_i386

error: failed to run custom build command for `hellopp v0.1.0 (/tmp/tmp.JaHyf9r5NC)`

Caused by:
  process didn't exit successfully: `/target/debug/build/hellopp-4198e14c1842cfb5/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("i586-unknown-linux-musl")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-unknown-linux-gnu")
  CXX_i586-unknown-linux-musl = None
  CXX_i586_unknown_linux_musl = Some("/target/.zig-cache/cargo-zigbuild/0.17.3/zigcxx-i586-unknown-linux-musl.sh")
  CXXFLAGS_i586-unknown-linux-musl = None
  CXXFLAGS_i586_unknown_linux_musl = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = None
  running: "/target/.zig-cache/cargo-zigbuild/0.17.3/zigcxx-i586-unknown-linux-musl.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m32" "-march=pentium" "-Wl,-melf_i386" "-Wall" "-Wextra" "-o" "/target/i586-unknown-linux-musl/debug/build/hellopp-d2cec04140b3245e/out/hellopp.o" "-c" "hellopp.cc"
  cargo:warning=error: unsupported linker arg: -melf_i386
  exit status: 1

  --- stderr


  error occurred: Command "/target/.zig-cache/cargo-zigbuild/0.17.3/zigcxx-i586-unknown-linux-musl.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m32" "-march=pentium" "-Wl,-melf_i386" "-Wall" "-Wextra" "-o" "/target/i586-unknown-linux-musl/debug/build/hellopp-d2cec04140b3245e/out/hellopp.o" "-c" "hellopp.cc" with args "zigcxx-i586-unknown-linux-musl.sh" did not execute successfully (status code exit status: 1).

this error is rust-cross/cargo-zigbuild#96

I'm not sure if this is our fault or zigbuild

@Emilgardis Emilgardis modified the milestones: v0.3.1, v0.3.0 Jan 31, 2024
@Emilgardis Emilgardis added the bug label Jan 31, 2024
github-merge-queue bot pushed a commit that referenced this issue Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant