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

Build fails on aarch64-linux-gnu #64

Closed
cappadokes opened this issue Feb 8, 2022 · 2 comments
Closed

Build fails on aarch64-linux-gnu #64

cappadokes opened this issue Feb 8, 2022 · 2 comments

Comments

@cappadokes
Copy link

cappadokes commented Feb 8, 2022

rustc 1.60.0-nightly
gcc (Ubuntu 9.4.0-1ubuntu1~16.04) 9.4.0
yarn 1.22.17

Error message:

The following warnings were emitted during compilation:

warning: src/arch/aarch64_trampoline.s: Assembler messages:
warning: src/arch/aarch64_trampoline.s:13: Error: bad register expression

error: failed to run custom build command for `nwind v0.1.0 (https://github.com/koute/not-perf.git?rev=51003a4#51003a40)`

Caused by:
  process didn't exit successfully: `/SD_32GB/home/cappadokesm/code/bytehound/target/release/build/nwind-85e5cfcf1e9018ce/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=src/arch/aarch64_get_regs.s
  cargo:rerun-if-changed=src/arch/aarch64_trampoline.s
  TARGET = Some("aarch64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("aarch64-unknown-linux-gnu")
  CC_aarch64-unknown-linux-gnu = None
  CC_aarch64_unknown_linux_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_aarch64-unknown-linux-gnu = None
  CFLAGS_aarch64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fp,neon,pmuv3")
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-o" "/SD_32GB/home/cappadokesm/code/bytehound/target/release/build/nwind-bbe614d31d8d25f4/out/src/arch/aarch64_get_regs.o" "-c" "src/arch/aarch64_get_regs.s"
  exit status: 0
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-o" "/SD_32GB/home/cappadokesm/code/bytehound/target/release/build/nwind-bbe614d31d8d25f4/out/src/arch/aarch64_trampoline.o" "-c" "src/arch/aarch64_trampoline.s"
  cargo:warning=src/arch/aarch64_trampoline.s: Assembler messages:
  cargo:warning=src/arch/aarch64_trampoline.s:13: Error: bad register expression
  exit status: 1

  --- stderr


  error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-o" "/SD_32GB/home/cappadokesm/code/bytehound/target/release/build/nwind-bbe614d31d8d25f4/out/src/arch/aarch64_trampoline.o" "-c" "src/arch/aarch64_trampoline.s" with args "cc" did not execute successfully (status code exit status: 1).

I remain at your disposal in case you need any additional information.

Thanks a lot,
X

Edit: the above came up upon running cargo build --release -p bytehound-preload.

@koute
Copy link
Owner

koute commented Feb 11, 2022

You're most likely using too old version of gas.

That said, it's probably fixed now, so can you try again with the newest master?

@cappadokes
Copy link
Author

Yup, build succeeds now. Thank you!

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

No branches or pull requests

2 participants