Skip to content

Pixi for FreeBSD. Cargo does not build Pixi from source on FreeBSD 15.0 #5209

@rcghpge

Description

@rcghpge

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Commands I ran and their output:

# Note - this is running in sh Bourne shell. Not Bash shell.
# commands
sudo pkg install rust
cargo install --locked --git https://github.com/prefix-dev/pixi.git pixi

# stdout 
   Compiling rattler_pty v0.2.7
error[E0425]: cannot find function `ptsname_r` in this scope
  --> /home/rc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rattler_pty-0.2.7/src/unix/pty_process.rs:79:26
   |
79 |         let slave_name = ptsname_r(&master_fd)?;
   |                          ^^^^^^^^^ not found in this scope
   |
help: consider importing this function
   |
1  + use libc::ptsname_r;
   |

For more information about this error, try `rustc --explain E0425`.
error: could not compile `rattler_pty` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `pixi v0.62.2 (https://github.com/prefix-dev/pixi.git#ff58e6c9)`, intermediate artifacts can be found at `/tmp/cargo-installoSkSFj`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

pixi.toml/pyproject.toml file that reproduces my issue:

pixi build from source failed to build. No toml file was produced.

pixi info output:

pixi unable to build from source. no pixi info available.

FreeBSD 15.0
Other files (e.g. script files, source files, etc.):

Issue description

Pixi package manager does not build from source with Rust installed. Also tested install.sh shell script installer with no luck.
Image

Expected behavior

pixi available to build from source or shell script installer

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew featuresrattlerRelated to something in the rattler library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions