nix build not working for linux #61

Open
opened 2026-05-21 14:45:55 +00:00 by ezozbek36 · 0 comments

Bug Description

nix run git+https://git.oss.uzinfocom.uz/uchar/cross#linux --builders ''
error:
       … while evaluating an expression to select 'drvPath' on it
         at «internal»:1:552:
       … while evaluating strict
         at «internal»:1:552:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: access to absolute path '/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/nix-support/dynamic-linker' is forbidden in pure eval mode (use '--impure' to override)

       note: trace involved the following derivations:
       derivation 'uchar-linux-2.4.1'

impure bn

✗ nix run git+https://git.oss.uzinfocom.uz/uchar/cross#linux --builders '' --impure
error: builder for '/nix/store/gq8jl6sral9z7n90r8awippnw0rxrvvs-uchar-linux-2.4.1.drv' failed with exit code 1;
       last 15 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/7yqbwfw62rpbv94mi7j2zm850kn8jlam-kraf4bhaz4vg2r5blvp1dm8ag76wlljf-source
       > source root is kraf4bhaz4vg2r5blvp1dm8ag76wlljf-source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/doc/uchar-linux -DCMAKE_INSTALL_INFODIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/include -DCMAKE_INSTALL_SBINDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/lib -DCMAKE_STRIP=/nix/store/0kh0x0a3ajkzxyy6v8yjvnfh6dnkbxic-llvm-binutils-wrapper-21.1.8/bin/strip -DCMAKE_RANLIB=/nix/store/0kh0x0a3ajkzxyy6v8yjvnfh6dnkbxic-llvm-binutils-wrapper-21.1.8/bin/ranlib -DCMAKE_AR=/nix/store/0kh0x0a3ajkzxyy6v8yjvnfh6dnkbxic-llvm-binutils-wrapper-21.1.8/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1
       > CMake Warning:
       >   Ignoring extra path from command line:
       >
       >    ".."
       >
       >
       > CMake Error: The source directory "/build/kraf4bhaz4vg2r5blvp1dm8ag76wlljf-source" does not appear to contain CMakeLists.txt.
       > Specify --help for usage, or press the help button on the CMake GUI.
       For full logs, run:
          nix log /nix/store/gq8jl6sral9z7n90r8awippnw0rxrvvs-uchar-linux-2.4.1.drv

Steps to Reproduce

Just run nix build git+https://git.oss.uzinfocom.uz/uchar/cross#linux

Expected Behavior

Successful build

App Version

N/A

Platform

Linux (Other)

Additional Platform Information

Acer Swift

Additional Context

nix --version
nix (Lix, like Nix) 2.94.2
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/ezozbek/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/ezozbek/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/ezozbek/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/ezozbek/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/mzlh2ph29fplx5y0glb9rqz9iqcjl772-gnome-settings-daemon-49.1/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/dkg15fqgldf1fl0asczs6fkh6yp72fxl-lix-2.94.2/share
### Bug Description ``` nix run git+https://git.oss.uzinfocom.uz/uchar/cross#linux --builders '' error: … while evaluating an expression to select 'drvPath' on it at «internal»:1:552: … while evaluating strict at «internal»:1:552: (stack trace truncated; use '--show-trace' to show the full trace) error: access to absolute path '/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/nix-support/dynamic-linker' is forbidden in pure eval mode (use '--impure' to override) note: trace involved the following derivations: derivation 'uchar-linux-2.4.1' ``` impure bn ``` ✗ nix run git+https://git.oss.uzinfocom.uz/uchar/cross#linux --builders '' --impure error: builder for '/nix/store/gq8jl6sral9z7n90r8awippnw0rxrvvs-uchar-linux-2.4.1.drv' failed with exit code 1; last 15 log lines: > Running phase: unpackPhase > unpacking source archive /nix/store/7yqbwfw62rpbv94mi7j2zm850kn8jlam-kraf4bhaz4vg2r5blvp1dm8ag76wlljf-source > source root is kraf4bhaz4vg2r5blvp1dm8ag76wlljf-source > Running phase: patchPhase > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/doc/uchar-linux -DCMAKE_INSTALL_INFODIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/include -DCMAKE_INSTALL_SBINDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1/lib -DCMAKE_STRIP=/nix/store/0kh0x0a3ajkzxyy6v8yjvnfh6dnkbxic-llvm-binutils-wrapper-21.1.8/bin/strip -DCMAKE_RANLIB=/nix/store/0kh0x0a3ajkzxyy6v8yjvnfh6dnkbxic-llvm-binutils-wrapper-21.1.8/bin/ranlib -DCMAKE_AR=/nix/store/0kh0x0a3ajkzxyy6v8yjvnfh6dnkbxic-llvm-binutils-wrapper-21.1.8/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/1318a7v9bw1jvjm9lfykadhl4j40alqd-uchar-linux-2.4.1 > CMake Warning: > Ignoring extra path from command line: > > ".." > > > CMake Error: The source directory "/build/kraf4bhaz4vg2r5blvp1dm8ag76wlljf-source" does not appear to contain CMakeLists.txt. > Specify --help for usage, or press the help button on the CMake GUI. For full logs, run: nix log /nix/store/gq8jl6sral9z7n90r8awippnw0rxrvvs-uchar-linux-2.4.1.drv ``` ### Steps to Reproduce Just run `nix build git+https://git.oss.uzinfocom.uz/uchar/cross#linux` ### Expected Behavior Successful build ### App Version N/A ### Platform Linux (Other) ### Additional Platform Information Acer Swift ### Additional Context ``` nix --version nix (Lix, like Nix) 2.94.2 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/ezozbek/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/ezozbek/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/ezozbek/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/ezozbek/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/mzlh2ph29fplx5y0glb9rqz9iqcjl772-gnome-settings-daemon-49.1/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/dkg15fqgldf1fl0asczs6fkh6yp72fxl-lix-2.94.2/share ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
uchar/cross#61
No description provided.