Skip to content

could not compile randomx-rs (trying to build on fedora) #7633

@suspicious-pineapple

Description

@suspicious-pineapple

Describe the bug
i cant figure out how to compile this on fedora at all. after manually installing whatever missing things it was complaining about, i got stuck here:

   Compiling tari_common v5.2.0-pre.7 (/home/frog/repos/tari/common)
   Compiling openssl v0.10.72
   Compiling randomx-rs v1.4.0
   Compiling libtor-sys v47.13.0+0.4.7.x
   Compiling libtor v47.13.0+0.4.7.x
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,--version-script=/tmp/rustccdnRNd/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustccdnRNd/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "-lrandomx" "-Wl,-Bdynamic" "-lstdc++" "-Wl,-Bstatic" "/home/frog/repos/tari/target/debug/deps/{libthiserror-db9db37a0a6f0164,libbitflags-d5d71c72d5505341,liblibc-546f19d13738dbde}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustccdnRNd/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/frog/repos/tari/target/debug/build/randomx-rs-a0e1dbcd3173c7f7/out/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/frog/repos/tari/target/debug/deps/librandomx_rs-ef22f4daaf5515c2.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: cannot find -lrandomx: No such file or directory
          /usr/bin/ld: have you installed the static version of the randomx library ?
          collect2: error: ld returned 1 exit status

error: could not compile `randomx-rs` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

I'm running fedora 42. has anyone done this before? i'm probably missing some really simple thing but for now i've given up

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