Skip to content

Support for OpenBSD/adJ #2406

Description

@vtamara

On OpenBSD/adJ 7.6 trying to install from the command line, adapting the instructions of the README, fails with:

 % doas npm install -g @sentry/cli
npm error code 1
npm error path /usr/local/lib/node_modules/@sentry/cli
npm error command failed
npm error command sh -c node ./scripts/install.js
npm error /usr/local/lib/node_modules/@sentry/cli/js/helper.js:96
npm error   throw new Error(
npm error   ^
npm error
npm error Error: Unsupported operating system or architecture! Sentry CLI does not work on this architecture.
npm error
npm error Sentry CLI supports:
npm error - Darwin (macOS)
npm error - Linux and FreeBSD on x64, x86, ia32, arm64, and arm architectures
npm error - Windows x64, x86, and ia32 architectures
npm error     at Object.throwUnsupportedPlatformError (/usr/local/lib/node_modules/@sentry/cli/js/helper.js:96:9)
npm error     at Object.<anonymous> (/usr/local/lib/node_modules/@sentry/cli/scripts/install.js:324:10)
npm error     at Module._compile (node:internal/modules/cjs/loader:1469:14)
npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
npm error     at Module.load (node:internal/modules/cjs/loader:1288:32)
npm error     at Module._load (node:internal/modules/cjs/loader:1104:12)
npm error     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
npm error     at node:internal/main/run_main_module:28:49
npm error
npm error Node.js v20.17.0
npm notice
npm notice New minor version of npm available! 11.0.0 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g npm@11.1.0
npm notice
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-03T10_19_21_277Z-debug-0.log

OpenBSD/adJ 7.6 includes rustc 1.81.0, however the compilation fails with:

% git clone git@github.com:getsentry/sentry-cli.git
...
% cd sentry-cli
% cargo build
...
   Compiling encoding v0.2.33
   Compiling pbkdf2 v0.11.0
   Compiling sentry-anyhow v0.34.0
   Compiling symbolic-symcache v12.13.3
   Compiling zstd v0.11.2+zstd.1.5.2
error[E0658]: use of unstable library feature 'is_none_or'
   --> /home/vtamara/.cargo/registry/src/index.crates.io-6f17d22bba15001f/symbolic-symcache-12.13.3/src/writer.rs:311:22
    |
311 |                     .is_none_or(|next| next.start > current_address)
    |                      ^^^^^^^^^^
    |
    = note: see issue #126383 <https://github.com/rust-lang/rust/issues/126383> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `symbolic-symcache` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Checking rust-lang/rust#129086 it seems this could require rust 1.82.0 (that is missing in the README of sentry-cli). I will be trying with a development version of OpenBSD/adJ with a more updated rust.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions