Skip to content

Build failure: lp_solve (cross-compilation) #419102

@synalice

Description

@synalice

https://github.com/NixOS/nixpkgs/blob/nixpkgs-unstable/pkgs/applications/science/math/lp_solve/default.nix

Nixpkgs version

  • Unstable (25.11)

Steps to reproduce

nix-build '<nixpkgs>' -I nixpkgs=channel:nixos-unstable \
--arg crossSystem '{ config = "aarch64-unknown-linux-gnu"; }' \
-A lp_solve

I initially encountered the issue when I tried cross-compiling libreoffice (#419090).

Can Hydra reproduce this build failure?

Hydra doesn’t try to build the package.

Link to Hydra build job

No response

Relevant log output

unpacking 'https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz' into the Git cache...
this derivation will be built:
  /nix/store/90prrhnd23fgdmjb5rq0qfb7dm01nlan-lp_solve-aarch64-unknown-linux-gnu-5.5.2.11.drv
building '/nix/store/90prrhnd23fgdmjb5rq0qfb7dm01nlan-lp_solve-aarch64-unknown-linux-gnu-5.5.2.11.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/d46699jalnkwbk8nq6fzd0g76gqyihiz-lp_solve_5.5.2.11_source.tar.gz
source root is lp_solve_5.5
setting SOURCE_DATE_EPOCH to timestamp 1609404500 of file "lp_solve_5.5/lp_lib.h"
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: buildPhase
+ :
+ src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
+ c=cc
++ mktemp -d /build/lp_solve_XXXXXX
+ MYTMP=/build/lp_solve_UACi8r
+ echo '#include <stdlib.h>'
+ echo '#include <stdio.h>'
+ echo 'main(){printf("ux%d", (int) (sizeof(void *)*8));}'
+ cc /build/lp_solve_UACi8r/platform.c -o /build/lp_solve_UACi8r/platform
ccc: line 12: cc: command not found
error: builder for '/nix/store/90prrhnd23fgdmjb5rq0qfb7dm01nlan-lp_solve-aarch64-unknown-linux-gnu-5.5.2.11.drv' failed with exit code 127;
       last 18 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/d46699jalnkwbk8nq6fzd0g76gqyihiz-lp_solve_5.5.2.11_source.tar.gz
       > source root is lp_solve_5.5
       > setting SOURCE_DATE_EPOCH to timestamp 1609404500 of file "lp_solve_5.5/lp_lib.h"
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: buildPhase
       > + :
       > + src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
       > + c=cc
       > ++ mktemp -d /build/lp_solve_XXXXXX
       > + MYTMP=/build/lp_solve_UACi8r
       > + echo '#include <stdlib.h>'
       > + echo '#include <stdio.h>'
       > + echo 'main(){printf("ux%d", (int) (sizeof(void *)*8));}'
       > + cc /build/lp_solve_UACi8r/platform.c -o /build/lp_solve_UACi8r/platform
       > ccc: line 12: cc: command not found
       For full logs, run:
         nix log /nix/store/90prrhnd23fgdmjb5rq0qfb7dm01nlan-lp_solve-aarch64-unknown-linux-gnu-5.5.2.11.drv

Additional context

"Can Hydra reproduce this build failure?" section needs "I don't know how to use Hydra" answer option... There are some builds, but I can only assume they aren't using cross-compilation?

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.15.1, NixOS, 25.05 (Warbler), 25.05.804391.b2485d569675
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.28.3
  • channels(root): "nixos-25.05, nixos-hardware"
  • nixpkgs: /nix/store/isn4amvqb1q05bmqv3cafximysqgjr4a-nixos-25.05/nixos

Notify maintainers

@sergei-mironov


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions