Package Details: fnm 1.38.1-1

Git Clone URL: https://aur.archlinux.org/fnm.git (read-only, click to copy)
Package Base: fnm
Description: Fast and simple Node.js version manager, built with Rust
Upstream URL: https://github.com/Schniz/fnm
Licenses: GPL3
Conflicts: fnm-bin
Submitter: wezm
Maintainer: wezm (hzmi)
Last Packager: hzmi
Votes: 8
Popularity: 0.001178
First Submitted: 2021-09-17 01:47 (UTC)
Last Updated: 2024-11-18 08:27 (UTC)

Required by (1)

Sources (1)

Latest Comments

hzmi commented on 2024-07-17 15:24 (UTC)

@swsnr thanks for the input, applied the change.

swsnr commented on 2024-03-19 22:35 (UTC)

Instead of "options=(!lto)" you can adapt CFLAGS in build via CFLAGS+=' -ffat-lto-objects', see https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/20#note_171807

With this change it builds with LTO on OBS, see https://build.opensuse.org/package/show/home:swsnr:3rdparty/fnm

wezm commented on 2022-11-14 23:17 (UTC)

Thanks for the info and patch phnx47. I've removed provides("nodejs") and applied your patch.

phnx47 commented on 2022-11-13 03:40 (UTC) (edited on 2022-11-13 05:32 (UTC) by phnx47)

One more, I think that better to remove provides("nodejs"), there are some side effects: https://aur.archlinux.org/packages/fnm-bin#comment-877207. I checked nvm, they are not provide nodejs. It is not affect me, but might someone else.

phnx47 commented on 2022-11-13 03:33 (UTC)

@wezm I checked with disabled LTO, can compile. Patch here: https://gist.github.com/phnx47/9ebad182d945775c9f59d236213b6a66

phnx47 commented on 2022-11-13 02:41 (UTC)

@wezm Hey! Did you have chance to check it in clean chroot? I checked today and it is still issue with ring:

          ring.18374ee3-cgu.0:(.text._ZN4ring10arithmetic6bigint11Nonnegative7to_elem17h8aa972c860465aedE+0x2a): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: /build/fnm/src/fnm-1.31.1/target/release/deps/fnm-15f49a5d02bc0aff: hidden symbol `GFp_ia32cap_P' isn't defined
          /usr/bin/ld: final link failed: bad value
          collect2: error: ld returned 1 exit status

  = help: 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)

error: could not compile `fnm` due to previous error

swsnr commented on 2022-10-07 10:04 (UTC)

Indeed the issue looks familiar. Thanks for taking a look, but you don't need to as far as I'm concerned :) I'm now using the fnm-bin PKGBUILD, so I'm in no hurry for a fix here 😊 and I can also take a look at this myself some day😊

wezm commented on 2022-10-06 23:34 (UTC)

@lunaryorn I don't think it's a missing dependency but happy to proven wrong. I think it might be this issue: https://github.com/briansmith/ring/issues/1444 I haven't worked out why it doesn't happen for me yet. I can build it with paru. I'm currently travelling so don't have time to dig into this properly. I should be able to look into it more when I'm back home next week.

swsnr commented on 2022-10-06 09:23 (UTC) (edited on 2022-10-06 09:23 (UTC) by swsnr)

On my system this fails to build in a clean chroot (using aurutils aur build -c), with some linker errors in ring: https://pastebin.mozilla.org/QtU71w5z

I think there might be a missing dependency…