NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.09k stars 14.08k forks source link

Build failure: gnat11 #311555

Open AkechiShiro opened 5 months ago

AkechiShiro commented 5 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build gnat11

Build log

checking for tirpc/rpc/xdr.h... no
checking for CET support... yes
checking whether the target supports dllexport... yes
config.status: executing libtool commands
no
checking whether the target supports symbol aliases... configure: updating cache ./config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
yes
checking for ld used by /build/build/./gcc/xgcc -B/build/build/./gcc/ -O2 -I/nix/store/62pbcx7vqyjj4yg10cc16ywbzbvrdpsm-glibc-2.38-66-dev/include -B/nix/store/p9ysh5rk109gyjj3cn6jr54znvvlahfl-glibc-2.38-66/lib/ -idirafter /nix/store/62pbcx7vqyjj4yg10cc16ywbzbvrdpsm-glibc-2.38-66-dev/include -idirafter /nix/store/h2abv2l8irqj942i5rq9wbrj42kbsh5y-gcc-12.3.0/lib/gcc/x86_64-unknown-linux-gnu/12.3.0/include-fixed -Wl,-rpath,/nix/store/8iwa506fxkl3qrd0dsrw1sxrqg20dhvw-gnat-11.4.0-lib/lib -Wl,-L/nix/store/p9ysh5rk109gyjj3cn6jr54znvvlahfl-glibc-2.38-66/lib -Wl,-rpath -Wl,/nix/store/p9ysh5rk109gyjj3cn6jr54znvvlahfl-glibc-2.38-66/lib -Wl,-dynamic-linker=/nix/store/p9ysh5rk109gyjj3cn6jr54znvvlahfl-glibc-2.38-66/lib/ld-linux-x86-64.so.2 --sysroot=/  ... (cached) /build/build/./gcc/collect-ld
checking if the linker (/build/build/./gcc/collect-ld) is GNU ld... (cached) yes
checking for -mclear-hwcap... no
checking whether __AVX__ is declared... no
checking for shared libgcc... yes
configure: versioning on shared library symbols is gnu
checking assembler .cfi pseudo-op support... yes
checking how size_t is mangled... m
checking whether the target supports __sync_*_compare_and_swap... yes
checking whether the target supports 64-bit __sync_*_compare_and_swap... yes
checking if the assembler supports AVX... yes
checking if the assembler supports RTM... yes
checking whether weak refs work like ELF... yes
configure: updating cache ./config.cache
checking for CET support... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libsanitizer.spec
config.status: creating libbacktrace/backtrace-supported.h
config.status: creating interception/Makefile
config.status: creating sanitizer_common/Makefile
config.status: creating libbacktrace/Makefile
config.status: creating lsan/Makefile
config.status: creating asan/Makefile
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating libitm.spec
config.status: creating config.h
config.status: executing default-1 commands
config.status: creating ubsan/Makefile
config.status: executing depfiles commands
config.status: creating tsan/Makefile
config.status: executing libtool commands
config.status: executing gstdint.h commands
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing gstdint.h commands
make[1]: Leaving directory '/build/build'
make: *** [Makefile:976: all] Error 2
error: builder for '/nix/store/26l53q6cix0sqx8rryp12vx0s2ir3i5j-gnat-11.4.0.drv' failed with exit code 2;
       last 10 log lines:
       > config.status: creating tsan/Makefile
       > config.status: executing libtool commands
       > config.status: executing gstdint.h commands
       > config.status: creating config.h
       > config.status: executing default-1 commands
       > config.status: executing depfiles commands
       > config.status: executing libtool commands
       > config.status: executing gstdint.h commands
       > make[1]: Leaving directory '/build/build'
       > make: *** [Makefile:976: all] Error 2
       For full logs, run 'nix log /nix/store/26l53q6cix0sqx8rryp12vx0s2ir3i5j-gnat-11.4.0.drv'.
error: 1 dependencies of derivation '/nix/store/zak76hi6bypk1ihqlbzsvljxwa5vkmns-gnat-wrapper-11.4.0.drv' failed to build

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.90, NixOS, 23.11 (Tapir), 23.11.7071.71bae31b7dbc`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"agenix, home-manager-23.11.tar.gz, nixos-23.11, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@vcunat @Synthetica9 @Ericson2314


Add a :+1: reaction to issues you find important.

AkechiShiro commented 2 months ago

For https://nixos.wiki/wiki/Coreboot it is possible to just use pkgs.gnat14 and it is working, this gnat dependency is also optional.