m4tx / tundra

MyAnimeList scrobbler for Linux
https://tundra.moe
GNU General Public License v3.0
53 stars 2 forks source link

It does no build on arch linux. #123

Closed ghost closed 3 months ago

ghost commented 3 months ago

tried both packages. getting same error.

          /usr/bin/ld: /tmp/rustcNZXrKm/libring-53479741a03b805e.rlib(996b92d95a4b7917-x86_64-mont-elf.o): in function `bn_sqr8x_mont':
          /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/x86_64-mont-elf.S:788:(.text+0x8b7): undefined reference to `ring_core_0_17_8_OPENSSL_ia32cap_P'
          /usr/bin/ld: /tmp/rustcNZXrKm/libring-53479741a03b805e.rlib(996b92d95a4b7917-x86_64-mont5-elf.o):/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/pregenerated/x86_64-mont5-elf.S:24: more undefined references to `ring_core_0_17_8_OPENSSL_ia32cap_P' follow
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
ghost commented 3 months ago

I was able to compile it locally without yay

m4tx commented 3 months ago

Interesting to see that the error seems to be lying in one of the dependencies that seem to build some assembly code, which is then used via C language FFI. Since building locally helped, I would guess there is some cache stuff going on that could potentially be fixed with cargo clean/removing the package cache altogether. Anyways, glad to see the problem has been resolved for now.