Skip to content

failed to run custom build command for `hopper-harness v1.0.0 #31

@rtczza

Description

@rtczza

通过build.rs编译出hopper后,

执行命令:

./hopper compile --header /include/example_test.h  --library /usr/lib64/libexample_test.so  --output output

报错如下:

warning: hopper-harness@1.0.0: dir=Hopper/output, lib=example_test_fuzz

error: failed to run custom build command for `hopper-harness v1.0.0 (Hopper/hopper-harness)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `Hopper/output/release/build/hopper-harness-e84283c1e2c3727f/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=dir=Hopper/output, lib=example_test_fuzz
  cargo:rustc-link-lib=dylib=example_test_fuzz
  cargo:rustc-link-arg=-Wl,-rpath,Hopper/output
  cargo:rustc-link-search=native=Hopper/output
  cargo:rustc-link-arg=-Wl,--allow-shlib-undefined
  cargo:rerun-if-changed=/include/example_test.h
warning: build failed, waiting for other jobs to finish...
error: failed to compile `hopper-harness v1.0.0 (Hopper/hopper-harness)`, intermediate artifacts can be found at `Hopper/output`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
15:31:49 [ERROR] Meets error: cargo install error
Error: cargo install error

请教大佬们,上述报错,应如何调整?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions