NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.81k stars 13.91k forks source link

Error building curl 7.83.1 #180123

Closed slococo closed 1 year ago

slococo commented 2 years ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build curl-static-x86_64-unknown-linux-musl-7.83.1 in a docker container running Arch Linux.

Build log

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/a2qkjmdx9rmmnmiy8gdiaihc605niink-curl-7.83.1.tar.bz2
source root is curl-7.83.1
setting SOURCE_DATE_EPOCH to timestamp 1652250163 of file curl-7.83.1/tests/data/Makefile.in
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/gdqnvkbp6nnrvww108adb7nvjgrpdxzb-7.79.1-darwin-no-systemconfiguration.patch
File configure is read-only; trying to patch anyway
patching file configure
Hunk #1 succeeded at 20929 (offset 119 lines).
Hunk #2 succeeded at 22274 with fuzz 2 (offset 63 lines).
patching file lib/curl_setup.h
Hunk #1 succeeded at 239 (offset -8 lines).
applying patch /nix/store/12ifkgi01pxy7cy5chndmwy73kacgd0m-7.83.1-quiche-support-ca-fallback.patch
patching file lib/vquic/quiche.c
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./config.sub
Updating Autotools / GNU config script to a newer upstream version: ./config.guess
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing libtool script ./ltmain.sh
./configure
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j1 -l1 SHELL=/nix/store/j9rc786ylq8cid4zgcn6idknilkbd4ax-bash-5.1-p16/bin/bash
./configure
configure: error: cannot find sources (lib/urldata.h) in . or ..
make: *** [Makefile:24: all] Error 1

Metadata

This won't give any output because I am using flake.nix.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
[...] default.nix [...] No such file or directory
SCOTT-HAMILTON commented 2 years ago

Can't reproduce with current master:

$ git checkout 7945cf18f6a65c53d4d6130c988935451ca26cf0
$ nix-build -A pkgsStatic.curl
/nix/store/y4kjzncwfj3vd8n026m1bg2rljv5nrg3-curl-static-x86_64-unknown-linux-musl-7.84.0-bin
kirillrdy commented 1 year ago

@slococo is this still an issue ? If so can you provide nixpkgs commit ?

vcunat commented 1 year ago

Reopen when reproduced.