Skip to content

Build failing on Linux #189

Open
Open
@angelcaru

Description

@angelcaru

Error message:

warning: unused import: `std::path::Path`
 --> crates/dobby-sys/build.rs:3:5
  |
3 | use std::path::Path;
  |     ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: `dobby-sys` (build script) generated 1 warning
   Compiling dobby-sys v0.1.0 (/home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys)
warning: unused imports: `pattern` and `regex`
  --> crates/lovely-core/src/lib.rs:18:13
   |
18 | use patch::{pattern, regex, Patch, PatchFile, Priority};
   |             ^^^^^^^  ^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `lovely-core` (lib) generated 1 warning (run `cargo fix --lib -p lovely-core` to apply 1 suggestion)
error: failed to run custom build command for `dobby-sys v0.1.0 (/home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys)`

Caused by:
  process didn't exit successfully: `/home/angel/projects/other-peoples/lovely-injector/target/debug/build/dobby-sys-51279cfcc340e44d/build-script-build` (exit status: 101)
  --- stdout
  CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
  CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
  CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
  CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_x86_64-unknown-linux-gnu = None
  CMAKE_x86_64_unknown_linux_gnu = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/home/angel/projects/other-peoples/lovely-injector/target/debug/build/dobby-sys-de7aca0b55c7b096/out/build" && CMAKE_PREFIX_PATH="" LC_ALL="C" "cmake" "/home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby" "-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0" "-DCMAKE_INSTALL_PREFIX=/home/angel/projects/other-peoples/lovely-injector/target/debug/build/dobby-sys-de7aca0b55c7b096/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Debug"
  -- 
  -- ********* build environment check ***********
  -- 	Compiler: 	 GNU
  -- 	Processor:	 x86_64
  -- 	System:   	 Linux
  -- ***************************************
  -- 
  -- CMAKE_C_COMPILER: /usr/bin/cc
  -- CMAKE_CXX_COMPILER: /usr/bin/c++
  -- CMAKE_C_FLAGS:  -ffunction-sections -fdata-sections -fPIC -m64 -fvisibility=hidden -fPIC -fno-stack-check -fno-stack-protector -fno-exceptions -fno-rtti -fno-common -fno-zero-initialized-in-bss -fPIC
  -- CMAKE_CXX_FLAGS:  -ffunction-sections -fdata-sections -fPIC -m64 -fvisibility=hidden -fPIC -fno-stack-check -fno-stack-protector -fno-exceptions -fno-rtti -fno-common -fno-zero-initialized-in-bss -fPIC  -ffunction-sections -fdata-sections -fPIC -m64
  -- CMAKE_SHARED_LINKER_FLAGS: 
  -- [Dobby] CMAKE_BUILD_TYPE: Debug
  -- [Dobby] DOBBY_DEBUG: ON
  -- [Dobby] NearBranch: ON
  -- [Dobby] FullFloatingPointRegisterPack: OFF
  -- [Dobby] Plugin.SymbolResolver: ON
  -- [Dobby] Plugin.ImportTableReplace: OFF
  -- [Dobby] Plugin.Android.BionicLinkerUtil: OFF
  -- [Dobby] DOBBY_BUILD_EXAMPLE: OFF
  -- [Dobby] DOBBY_BUILD_TEST: OFF
  -- [Dobby] DOBBY_BUILD_KERNEL_MODE: OFF
  -- [Dobby] Private.Obfuscation: OFF
  -- [Dobby] Dobby-20250415-5dfc854
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/angel/projects/other-peoples/lovely-injector/target/debug/build/dobby-sys-de7aca0b55c7b096/out/build
  running: cd "/home/angel/projects/other-peoples/lovely-injector/target/debug/build/dobby-sys-de7aca0b55c7b096/out/build" && LC_ALL="C" MAKEFLAGS="-j --jobserver-fds=8,9 --jobserver-auth=8,9" "cmake" "--build" "/home/angel/projects/other-peoples/lovely-injector/target/debug/build/dobby-sys-de7aca0b55c7b096/out/build" "--target" "dobby_static" "--config" "Debug"
  [  4%] Building CXX object CMakeFiles/dobby_static.dir/source/InstructionRelocation/arm64/InstructionRelocationARM64.cc.o
  [  4%] Building CXX object CMakeFiles/dobby_static.dir/source/core/assembler/assembler-x64.cc.o
  [  7%] Building CXX object CMakeFiles/dobby_static.dir/source/InstructionRelocation/x86/InstructionRelocationX86.cc.o
  [  9%] Building CXX object CMakeFiles/dobby_static.dir/source/InstructionRelocation/x86/InstructionRelocationX86Shared.cc.o
  [ 12%] Building CXX object CMakeFiles/dobby_static.dir/source/InstructionRelocation/x64/InstructionRelocationX64.cc.o
  [ 14%] Building C object CMakeFiles/dobby_static.dir/source/InstructionRelocation/x86/x86_insn_decode/x86_insn_decode.c.o

  --- stderr
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/os_arch_features.h:5,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/common.h:12,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/core/assembler/assembler-x64.h:3,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/source/core/assembler/assembler-x64.cc:4:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:7:41: error: missing binary operator before token "("
      7 | #if defined(__arm64e__) || __has_feature(ptrauth_calls)
        |                                         ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:15:18: error: missing binary operator before token "("
     15 | #if __has_feature(ptrauth_calls) || __arm64e__
        |                  ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:30:18: error: missing binary operator before token "("
     30 | #if __has_feature(ptrauth_calls) || __arm64e__
        |                  ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/os_arch_features.h:9:41: error: missing binary operator before token "("
      9 | #if defined(__arm64e__) && __has_feature(ptrauth_calls)
        |                                         ^
  cc1: warning: command-line option '-fno-rtti' is valid for C++/D/ObjC++ but not for C
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/os_arch_features.h:5,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/common.h:12,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/dobby_internal.h:3,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/source/InstructionRelocation/x86/InstructionRelocationX86Shared.cc:5:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:7:41: error: missing binary operator before token "("
      7 | #if defined(__arm64e__) || __has_feature(ptrauth_calls)
        |                                         ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:15:18: error: missing binary operator before token "("
     15 | #if __has_feature(ptrauth_calls) || __arm64e__
        |                  ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:30:18: error: missing binary operator before token "("
     30 | #if __has_feature(ptrauth_calls) || __arm64e__
        |                  ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/os_arch_features.h:9:41: error: missing binary operator before token "("
      9 | #if defined(__arm64e__) && __has_feature(ptrauth_calls)
        |                                         ^
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/os_arch_features.h:5,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/common.h:12,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/dobby_internal.h:3,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/source/InstructionRelocation/x64/InstructionRelocationX64.cc:5:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:7:41: error: missing binary operator before token "("
      7 | #if defined(__arm64e__) || __has_feature(ptrauth_calls)
        |                                         ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:15:18: error: missing binary operator before token "("
     15 | #if __has_feature(ptrauth_calls) || __arm64e__
        |                  ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/pac_kit.h:30:18: error: missing binary operator before token "("
     30 | #if __has_feature(ptrauth_calls) || __arm64e__
        |                  ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./common/os_arch_features.h:9:41: error: missing binary operator before token "("
      9 | #if defined(__arm64e__) && __has_feature(ptrauth_calls)
        |                                         ^
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/source/InstructionRelocation/x64/InstructionRelocationX64.cc:22: warning: "_" redefined
     22 | #define _ turbo_assembler_.
        | 
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/source/InstructionRelocation/x64/InstructionRelocationX64.cc:12:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/core/codegen/codegen-x64.h:16: note: this is the location of the previous definition
     16 | #define _ turbo_assembler_->
        | 
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/source/InstructionRelocation/x64/InstructionRelocationX64.cc:23: warning: "__" redefined
     23 | #define __ turbo_assembler_.code_buffer()->
        | 
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/core/codegen/codegen-x64.h:17: note: this is the location of the previous definition
     17 | #define __ turbo_assembler_->code_buffer_.
        | 
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/common.h:7:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/utility_macro.h:60:16: warning: attributes are not permitted in this position [-Wattributes]
     60 | #define PUBLIC __attribute__((visibility("default")))
        |                ^~~~~~~~~~~~~
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/InterceptRouting/NearBranchTrampoline/NearBranchTrampoline.h:11:1: note: in expansion of macro 'PUBLIC'
     11 | PUBLIC extern "C" inline void dobby_set_near_trampoline(bool enable) {
        | ^~~~~~
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/InterceptRouting/InterceptRouting.h:8,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/dobby_internal.h:13:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/InterceptRouting/NearBranchTrampoline/NearBranchTrampoline.h:11:18: note: attributes may be inserted here
     11 | PUBLIC extern "C" inline void dobby_set_near_trampoline(bool enable) {
        |                  ^
  gmake[3]: *** [CMakeFiles/dobby_static.dir/build.make:104: CMakeFiles/dobby_static.dir/source/core/assembler/assembler-x64.cc.o] Error 1
  gmake[3]: *** Waiting for unfinished jobs....
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/common.h:7:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/utility_macro.h:60:16: warning: attributes are not permitted in this position [-Wattributes]
     60 | #define PUBLIC __attribute__((visibility("default")))
        |                ^~~~~~~~~~~~~
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/InterceptRouting/NearBranchTrampoline/NearBranchTrampoline.h:11:1: note: in expansion of macro 'PUBLIC'
     11 | PUBLIC extern "C" inline void dobby_set_near_trampoline(bool enable) {
        | ^~~~~~
  In file included from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/InterceptRouting/InterceptRouting.h:8,
                   from /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/dobby/dobby_internal.h:13:
  /home/angel/projects/other-peoples/lovely-injector/crates/dobby-sys/dobby/./source/InterceptRouting/NearBranchTrampoline/NearBranchTrampoline.h:11:18: note: attributes may be inserted here
     11 | PUBLIC extern "C" inline void dobby_set_near_trampoline(bool enable) {
        |                  ^
  gmake[3]: *** [CMakeFiles/dobby_static.dir/build.make:188: CMakeFiles/dobby_static.dir/source/InstructionRelocation/x86/InstructionRelocationX86Shared.cc.o] Error 1
  gmake[3]: *** [CMakeFiles/dobby_static.dir/build.make:202: CMakeFiles/dobby_static.dir/source/InstructionRelocation/x64/InstructionRelocationX64.cc.o] Error 1
  gmake[2]: *** [CMakeFiles/Makefile2:164: CMakeFiles/dobby_static.dir/all] Error 2
  gmake[1]: *** [CMakeFiles/Makefile2:171: CMakeFiles/dobby_static.dir/rule] Error 2
  gmake: *** [Makefile:137: dobby_static] Error 2

  thread 'main' panicked at /home/angel/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.54/src/lib.rs:1119:5:

  command did not execute successfully, got: exit status: 2

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

System Configuration:

$ uname -a
Linux debian 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux
a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions