Package Details: surfer-waveform-git 0.3.0.r216.gcaab1e0-1

Git Clone URL: https://aur.archlinux.org/surfer-waveform-git.git (read-only, click to copy)
Package Base: surfer-waveform-git
Description: A waveform viewer with a focus on a snappy usable interface, and extensibility.
Upstream URL: https://gitlab.com/surfer-project/surfer
Licenses: EUPL-1.2
Conflicts: surfer-waveform
Provides: surfer-waveform
Submitter: delta64
Maintainer: delta64 (TheZoq2)
Last Packager: delta64
Votes: 2
Popularity: 0.049398
First Submitted: 2024-02-27 23:49 (UTC)
Last Updated: 2025-07-06 17:44 (UTC)

Latest Comments

1 2 Next › Last »

5hayanB commented on 2025-08-10 05:41 (UTC) (edited on 2025-08-10 09:04 (UTC) by 5hayanB)

After debugging, I found that there was indeed a discrepancy in RUSTFLAGS. RUSTFLAGS was not set when building from source, but was getting RUSTFLAGS=-C force-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=$HOME/surfer-waveform-git/src=/usr/src/debug/surfer-waveform-git when using makepkg. Exporting the RUSTFLAGS from the makepkg environment while building from source also results in OOM. Adding !debug to the options array in PKGBUILD fixes the OOM error. Any reason not to add !debug in the PKGBUILD?

delta64 commented on 2025-08-09 13:19 (UTC)

Please try makepkg rather than paru. I can see https://github.com/Morganamilo/paru/issues/1383.

If that still fails I think you need to start dumping RUSTFLAGS and look for discrepancies. This will be hard for me to debug because it Works On My Machine^TM, but any additional information you can gather is greatly appreciated.

5hayanB commented on 2025-08-09 12:47 (UTC)

I am building surfer from source via the following commands.

export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
cargo build --frozen --release --all-features

These commands are also present in the build() function of the PKGBUILD. Building from source compiles successfully but installing via paru gets OOM killed. Following are the flags in my makepkg.conf.

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection \
        -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
         -Wl,-z,pack-relative-relocs"

LTOFLAGS won't matter due to options=(!lto) in PKGBUILD.

Also, https://gitlab.com/surfer-project/surfer/-/issues/424 was resolved so sed -i 's/#!\[deny(unused_crate_dependencies)\]//g' libsurfer/src/lib.rs can be removed now.

delta64 commented on 2025-07-13 23:22 (UTC)

I am getting OOM errors when building surfer via paru.

In my experience the two main factors that determine memory usage during compilation are 1) number of parallel processes used 2) optimisation level (especially LTO).

Please double check that the compilation flags (e.g RUSTFLAGS) are the exact same both times; I suspect you'll find a discrepancy.

5hayanB commented on 2025-07-12 13:44 (UTC)

I am getting OOM errors when building surfer via paru. However, following the build steps defined in the PKGBUILD (exporting the environment variables and executing cargo build --release --frozen --all-features) and building surfer from a freshly cloned repository, it is successfully building and no OOM errors are being reported. What could be going wrong?

delta64 commented on 2025-07-06 17:45 (UTC)

I am getting the following error.

Thanks, I've added a sed to workaround it and reported this upstream: https://gitlab.com/surfer-project/surfer/-/issues/424

5hayanB commented on 2025-07-05 12:55 (UTC)

I am getting the following error.

error: extern crate `serde_stacker` is unused in crate `libsurfer`
  |
  = help: remove the dependency or add `use serde_stacker as _;` to the crate root
note: the lint level is defined here
 --> libsurfer/src/lib.rs:1:9
  |
1 | #![deny(unused_crate_dependencies)]
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused variable: `t`
  --> libsurfer/src/translation/mod.rs:88:35
   |
88 |             AnyTranslator::Python(t) => {}
   |                                   ^ help: if this is intentional, prefix it with an underscore: `_t`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `t`
   --> libsurfer/src/translation/mod.rs:141:35
    |
141 |             AnyTranslator::Python(t) => None,
    |                                   ^ help: if this is intentional, prefix it with an underscore: `_t`

warning: `libsurfer` (lib) generated 2 warnings
error: could not compile `libsurfer` (lib) due to 1 previous error; 2 warnings emitted

However, building surfer with cargo build --release seems to work. I would suggest to temporarily change the cargo build --release --frozen --all-features to cargo build --release

5hayanB commented on 2025-03-22 20:05 (UTC)

Yeah, it was getting OOM killed. Thank you.

delta64 commented on 2025-03-17 23:12 (UTC)

Error while building package.

Still works for me, but I notice a lot of memory usage during the build, so I guess you got OOM killed. Check logs from your system to confirm.

5hayanB commented on 2025-03-10 13:12 (UTC)

Error while building package.

   Compiling surfer v0.4.0-dev ($HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/surfer)
error: could not compile `surfer` (bin "surfer")

Caused by:
  process didn't exit successfully: `$HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name surfer --edition=2021 surfer/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=213 --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="accesskit"' --cfg 'feature="default"' --cfg 'feature="f128"' --cfg 'feature="performance_plot"' --cfg 'feature="python"' --cfg 'feature="spade"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("accesskit", "default", "f128", "performance_plot", "python", "spade"))' -C metadata=cc6bbb88b13ed5c8 -C extra-filename=-916c2736deb11dd8 --out-dir $HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps -C strip=debuginfo -L dependency=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps --extern camino=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libcamino-a76ac63c44c10291.rlib --extern clap=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libclap-57f1e3986e462e51.rlib --extern color_eyre=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libcolor_eyre-f8fb27d0a352dba1.rlib --extern eframe=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libeframe-5ba781b740868e93.rlib --extern egui=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libegui-f8af586033d7ebdd.rlib --extern libsurfer=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/liblibsurfer.rlib --extern log=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/liblog-ce5e422f1983e6e3.rlib --extern ron=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libron-82e1ccbeaff8eba1.rlib --extern surver=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libsurver-f19d3de7808444e8.rlib --extern tokio=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/deps/libtokio-6a0175594563971b.rlib -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=$HOME/.cache/paru/clone/surfer-waveform-git/src=/usr/src/debug/surfer-waveform-git -L native=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/build/f128_internal-8946b4c9b0209d02/out -L native=/usr/lib -L native=$HOME/.cache/paru/clone/surfer-waveform-git/src/surfer-waveform-git/target/release/build/psm-a0dcdf1f4c34aa20/out` (signal: 9, SIGKILL: kill)
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'surfer-waveform-git-0.3.0.r13.gdcee591-1': 
error: packages failed to build: surfer-waveform-git-0.3.0.r13.gdcee591-1