fix: Clean up/fix nix assets #885

Merged
Jade merged 6 commits from Shuroii/continuwuity:the-nix-story into main 2025-07-07 19:48:36 +00:00
Contributor

This PR:

  • Cleans up comments in the flake
  • Updates the flake.lock file
  • Fixes the RocksDB fork in the flake
  • Removes unused nix assets
  • Formats the nix/ files using nixpkgs fmt
  • Formats the flake using nixfmt
  • Makes the flake's default output build successfully on x86_64
This PR: * Cleans up comments in the flake * Updates the flake.lock file * Fixes the RocksDB fork in the flake * Removes unused nix assets * Formats the `nix/` files using `nixpkgs fmt` * Formats the flake using `nixfmt` * Makes the flake's default output build successfully on x86_64
Shuroii added 3 commits 2025-07-01 18:01:12 +00:00
* Removes unused nix assets
* Cleans up flake inputs
* Makes the flake actually build
* Use correct formatters for nix assets
feat: Use rocksdb fork
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prefligit / prefligit (pull_request) Has been cancelled
265cb5703f
Shuroii changed title from the-nix-story to fix: Flake 2025-07-01 18:01:33 +00:00
Shuroii changed title from fix: Flake to chore: Clean up/fix nix assets 2025-07-01 18:02:20 +00:00
Shuroii changed title from chore: Clean up/fix nix assets to WIP: chore: Clean up/fix nix assets 2025-07-01 18:02:23 +00:00
nex added the
Dependencies
Meta/Packaging
labels 2025-07-01 18:02:26 +00:00
Shuroii force-pushed the-nix-story from 265cb5703f to e9bc416b29 2025-07-01 18:02:31 +00:00 Compare
Author
Contributor

Do we use squash commits or merges? Might need to clean up the commits if the latter is true.

Do we use squash commits or merges? Might need to clean up the commits if the latter is true.
Shuroii changed title from WIP: chore: Clean up/fix nix assets to chore: Clean up/fix nix assets 2025-07-01 18:08:47 +00:00
Owner

We usually try to rebase & fast-forward, but squash in exceptional circumstances

We usually try to rebase & fast-forward, but squash in exceptional circumstances
Author
Contributor

Want me to compact my commits into one, then? Or do something else? I should've probably made formatting the files a separate commit.

Want me to compact my commits into one, then? Or do something else? I should've probably made formatting the files a separate commit.
Owner

You didn't change any code, so this entire thing could probably just be a style commit. If you want I can just squash merge and override the commit title, saves you the trouble

You didn't change any code, so this entire thing could probably just be a `style` commit. If you want I can just squash merge and override the commit title, saves you the trouble
Author
Contributor

I did change some parts of the Nix code, which is responsible for allowing the people that import this flake into their NixOS configuration (or similar) to build and run continuwuity. RocksDB wasn't correctly building and I removed a whole bunch of unused packages (OCI containers, mdbook, etc).

Making it a fix commit also works, but I feel like style is wrong here.

I did change some parts of the Nix code, which is responsible for allowing the people that import this flake into their NixOS configuration (or similar) to build and run continuwuity. RocksDB wasn't correctly building and I removed a whole bunch of unused packages (OCI containers, mdbook, etc). Making it a `fix` commit also works, but I feel like `style` is wrong here.
Owner

Oh okay my mistake, I only skimmed for .rs changes lmao. Can merge as a fix if that's proper.

I need to figure out what's causing CI to explode first, I literally don't have the option to merge until preflight is green

Oh okay my mistake, I only skimmed for `.rs` changes lmao. Can merge as a fix if that's proper. I need to figure out what's causing CI to explode first, I literally don't have the option to merge until preflight is green
Author
Contributor

Yep, take your time.

Yep, take your time.
nex requested changes 2025-07-01 18:36:34 +00:00
Dismissed
nex left a comment
Owner

Found what's causing CI to fail

Found what's causing CI to fail
flake.nix Outdated
@ -170,0 +109,4 @@
#
postPatch = ''
# Fix gcc-13 build failures due to missing <cstdint> and
# <system_error> includes, fixed upstyream sice 8.x
Owner
-                 # <system_error> includes, fixed upstyream sice 8.x
+                 # <system_error> includes, fixed upstream since 8.x
```diff - # <system_error> includes, fixed upstyream sice 8.x + # <system_error> includes, fixed upstream since 8.x ```
Author
Contributor

Whoops, slipped by me. That's from nixpkgs.
Gonna fix that.

Whoops, slipped by me. That's from [nixpkgs](https://github.com/NixOS/nixpkgs/blob/3016b4b15d13f3089db8a41ef937b13a9e33a8df/pkgs/by-name/ro/rocksdb/package.nix#L86C40-L86C54). Gonna fix that.
Shuroii marked this conversation as resolved
Shuroii changed title from chore: Clean up/fix nix assets to fix: Clean up/fix nix assets 2025-07-01 18:36:59 +00:00
Shuroii added 1 commit 2025-07-01 18:40:01 +00:00
fix: Spelling error causing CI to fail
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Failing after 0s
Checks / Prefligit / prefligit (pull_request) Successful in 39s
647f4c9167
Owner

Hmm, I seem to encounter an error while building RocksDB while using this branch:

rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: unpackPhase
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> unpacking source archive /nix/store/3ds6dqdx9hbz2bpvkk5yzb8mdk7nhmm9-source
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> source root is source
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: patchPhase
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: updateAutotoolsGnuConfigScriptsPhase
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: updateAutotoolsGnuConfigScriptsPhase
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: configurePhase
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> fixing cmake files...
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> cmake flags: -GNinja -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/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/doc/rocksdb -DCMAKE_INSTALL_INFODIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/include -DCMAKE_INSTALL_SBINDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-strip -DCMAKE_RANLIB=/nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-ranlib -DCMAKE_AR=/nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-ar -DCMAKE_C_COMPILER=x86_64-unknown-linux-musl-gcc -DCMAKE_CXX_COMPILER=x86_64-unknown-linux-musl-g++ -DCMAKE_INSTALL_PREFIX=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1 -DWITH_JEMALLOC=1 -DWITH_LIBURING=1 -DWITH_JNI=0 -DWITH_BENCHMARK_TOOLS=0 -DWITH_TOOLS=0 -DWITH_BZ2=1 -DWITH_LZ4=1 -DWITH_ZSTD=1 -DWITH_GFLAGS=0 -DROCKSDB_INSTALL_ON_WINDOWS=YES -DFAIL_ON_WARNINGS=NO -DROCKSDB_BUILD_SHARED=0 -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH=On -DWITH_SNAPPY=0 -DZLIB=0 -DWITH_ZLIB=0 -DWITH_CORE_TOOLS=0 -DWITH_TRACE_TOOLS=0 -DWITH_TESTS=0 -DUSE_RTTI=0 -DPORTABLE=haswell -DWITH_JEMALLOC=1 -DWITH_LIBURING=1 -DWITH_JNI=0 -DWITH_BENCHMARK_TOOLS=0 -DWITH_TOOLS=0 -DWITH_BZ2=1 -DWITH_LZ4=1 -DWITH_ZSTD=1 -DWITH_GFLAGS=0 -DROCKSDB_INSTALL_ON_WINDOWS=YES -DFAIL_ON_WARNINGS=NO -DROCKSDB_BUILD_SHARED=0 -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH=On -DWITH_SNAPPY=0 -DZLIB=0 -DWITH_ZLIB=0 -DWITH_CORE_TOOLS=0 -DWITH_TRACE_TOOLS=0 -DWITH_TESTS=0 -DUSE_RTTI=0 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64 -DCMAKE_CROSSCOMPILING_EMULATOR=env -DCMAKE_LINK_SEARCH_START_STATIC=ON
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- The CXX compiler identification is GNU 14.3.0
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- The C compiler identification is GNU 14.3.0
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- The ASM compiler identification is GNU
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Found assembler: /nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-gcc
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compiler ABI info
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compiler ABI info - done
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Check for working CXX compiler: /nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-g++ - skipped
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compile features
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compile features - done
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compiler ABI info
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compiler ABI info - done
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Check for working C compiler: /nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-gcc - skipped
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compile features
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compile features - done
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> CMake Error at /nix/store/dx4bdrs7mq3jfviqhszrc7l35ps9kg64-cmake-3.31.7/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1>   Could NOT find JeMalloc (missing: JeMalloc_LIBRARIES JeMalloc_INCLUDE_DIRS)
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Call Stack (most recent call first):
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1>   /nix/store/dx4bdrs7mq3jfviqhszrc7l35ps9kg64-cmake-3.31.7/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1>   cmake/modules/FindJeMalloc.cmake:17 (find_package_handle_standard_args)
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1>   CMakeLists.txt:123 (find_package)
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> 
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> 
rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Configuring incomplete, errors occurred!
error: builder for '/nix/store/ax6y634rjj7v32g43vgk6j043x8xcg1y-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/4f9qmv688a0y2jbsrvjbml3vvjsrr7l8-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv' failed to build

Is that something related to this PR? iirc some hash mismatch was mentioned in the main room at some point, idk if it's related

Hmm, I seem to encounter an error while building RocksDB while using this branch: ``` rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: unpackPhase rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> unpacking source archive /nix/store/3ds6dqdx9hbz2bpvkk5yzb8mdk7nhmm9-source rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> source root is source rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: patchPhase rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: updateAutotoolsGnuConfigScriptsPhase rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: updateAutotoolsGnuConfigScriptsPhase rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Running phase: configurePhase rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> fixing cmake files... rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> cmake flags: -GNinja -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/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/doc/rocksdb -DCMAKE_INSTALL_INFODIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/include -DCMAKE_INSTALL_SBINDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-strip -DCMAKE_RANLIB=/nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-ranlib -DCMAKE_AR=/nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-ar -DCMAKE_C_COMPILER=x86_64-unknown-linux-musl-gcc -DCMAKE_CXX_COMPILER=x86_64-unknown-linux-musl-g++ -DCMAKE_INSTALL_PREFIX=/nix/store/i8rm65lbpxkn3nik324da6k3zl6dvl25-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1 -DWITH_JEMALLOC=1 -DWITH_LIBURING=1 -DWITH_JNI=0 -DWITH_BENCHMARK_TOOLS=0 -DWITH_TOOLS=0 -DWITH_BZ2=1 -DWITH_LZ4=1 -DWITH_ZSTD=1 -DWITH_GFLAGS=0 -DROCKSDB_INSTALL_ON_WINDOWS=YES -DFAIL_ON_WARNINGS=NO -DROCKSDB_BUILD_SHARED=0 -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH=On -DWITH_SNAPPY=0 -DZLIB=0 -DWITH_ZLIB=0 -DWITH_CORE_TOOLS=0 -DWITH_TRACE_TOOLS=0 -DWITH_TESTS=0 -DUSE_RTTI=0 -DPORTABLE=haswell -DWITH_JEMALLOC=1 -DWITH_LIBURING=1 -DWITH_JNI=0 -DWITH_BENCHMARK_TOOLS=0 -DWITH_TOOLS=0 -DWITH_BZ2=1 -DWITH_LZ4=1 -DWITH_ZSTD=1 -DWITH_GFLAGS=0 -DROCKSDB_INSTALL_ON_WINDOWS=YES -DFAIL_ON_WARNINGS=NO -DROCKSDB_BUILD_SHARED=0 -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH=On -DWITH_SNAPPY=0 -DZLIB=0 -DWITH_ZLIB=0 -DWITH_CORE_TOOLS=0 -DWITH_TRACE_TOOLS=0 -DWITH_TESTS=0 -DUSE_RTTI=0 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64 -DCMAKE_CROSSCOMPILING_EMULATOR=env -DCMAKE_LINK_SEARCH_START_STATIC=ON rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- The CXX compiler identification is GNU 14.3.0 rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- The C compiler identification is GNU 14.3.0 rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- The ASM compiler identification is GNU rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Found assembler: /nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-gcc rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compiler ABI info rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compiler ABI info - done rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Check for working CXX compiler: /nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-g++ - skipped rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compile features rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting CXX compile features - done rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compiler ABI info rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compiler ABI info - done rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Check for working C compiler: /nix/store/m8ggqv2dfrw6raz49ipnnab98cljx1k2-x86_64-unknown-linux-musl-gcc-wrapper-14.3.0/bin/x86_64-unknown-linux-musl-gcc - skipped rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compile features rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Detecting C compile features - done rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> CMake Error at /nix/store/dx4bdrs7mq3jfviqhszrc7l35ps9kg64-cmake-3.31.7/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message): rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Could NOT find JeMalloc (missing: JeMalloc_LIBRARIES JeMalloc_INCLUDE_DIRS) rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> Call Stack (most recent call first): rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> /nix/store/dx4bdrs7mq3jfviqhszrc7l35ps9kg64-cmake-3.31.7/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> cmake/modules/FindJeMalloc.cmake:17 (find_package_handle_standard_args) rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> CMakeLists.txt:123 (find_package) rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> rocksdb-static-x86_64-unknown-linux-musl-v9.11.1> -- Configuring incomplete, errors occurred! error: builder for '/nix/store/ax6y634rjj7v32g43vgk6j043x8xcg1y-rocksdb-static-x86_64-unknown-linux-musl-v9.11.1.drv' failed with exit code 1 error: 1 dependencies of derivation '/nix/store/4f9qmv688a0y2jbsrvjbml3vvjsrr7l8-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv' failed to build ``` Is that something related to this PR? iirc some hash mismatch was mentioned in the main room at some point, idk if it's related
Author
Contributor

I'll see if I can build musl binaries on NixOS. Only tried the output of nix build to verify that it worked, which just builds the default output. Hash mismatch is also fixed in this PR but that's not related to this error; RocksDB just fails to build on musl.

I'll see if I can build musl binaries on NixOS. Only tried the output of `nix build` to verify that it worked, which just builds the default output. Hash mismatch is *also* fixed in this PR but that's not related to this error; RocksDB just fails to build on musl.
Owner

FWIW, big formatting commits should be their own commits separate to any changes so they can be added to the git-blame-ignore-revs. Not important when you're rewriting all formatted code in the tho, don't worry about it here

FWIW, big formatting commits should be their own commits separate to any changes so they can be added to the git-blame-ignore-revs. Not important when you're rewriting all formatted code in the tho, don't worry about it here
Shuroii added 1 commit 2025-07-01 20:12:50 +00:00
fix: musl builds
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prefligit / prefligit (pull_request) Successful in 18s
5dba10af21
Author
Contributor

I don't have a great way of testing if it builds, but I did fix the current issue. @nex could you please check if it builds on your system now?

I don't have a great way of testing if it builds, but I *did* fix the current issue. @nex could you please check if it builds on your system now?
First-time contributor

Still fails to compile for nix build .#static-x86_64-linux-musl

error: builder for '/nix/store/ssnz62xik9mny8hmwwc1ryqpwgnqffak-conduwuit-deps-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv' failed with exit code 101;
       last 25 log lines:
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libmvec.so.1'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libdl.so'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libc.so.6'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/ld-linux-x86-64.so.2'
       >           collect2: error: ld returned 1 exit status
       >
       >
       > error: could not compile `portable-atomic` (build script) due to 1 previous error
       > error: linking with `/nix/store/pbqah1qk4b5y14fqinr1h8zvhqy71v81-gcc-wrapper-14.3.0/bin/cc` failed: exit status: 1
       >   |
       >   = note:  "/nix/store/pbqah1qk4b5y14fqinr1h8zvhqy71v81-gcc-wrapper-14.3.0/bin/cc" "-m64" "/build/rustcPt8RNe/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/nix/store/yzzw63vfgjydym410mfg4zipa2ark04g-rust-std-1.87.0-2025-05-15/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-769ac7a9899f22f3.rlib,libpanic_unwind-9832433a93414fcc.rlib,libobject-0b1316cc21128f6f.rlib,libmemchr-55bce6bc065f5472.rlib,libaddr2line-1a9092e792a6424a.rlib,libgimli-0242466ae973a482.rlib,librustc_demangle-284f2a4fdd4266be.rlib,libstd_detect-c69476402635876e.rlib,libhashbrown-792257720060b71c.rlib,librustc_std_workspace_alloc-4e188c4163bc9617.rlib,libminiz_oxide-f8f6320911be5ef7.rlib,libadler2-2807bc05ef275e2c.rlib,libunwind-78df64ba62b23bc9.rlib,libcfg_if-7f2ae27acaea0570.rlib,liblibc-49a34a4000e5b205.rlib,liballoc-c7b16bb34ad937e6.rlib,librustc_std_workspace_core-1a5efd0f865ac6a1.rlib,libcore-fac9c7a264e7edfc.rlib,libcompiler_builtins-b91655ac28a1a56c.rlib}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/build/rustcPt8RNe/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/source/target/release/build/zerocopy-10f7a48a406b3e6e/build_script_build-10f7a48a406b3e6e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-all" "-nodefaultlibs"
       >   = note: some arguments are omitted. use `--verbose` to show all linker arguments
       >   = note: /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/l7d6vwajpfvgsd3j4cr25imd1mzb7d1d-gcc-14.3.0-lib/lib/libgcc_s.so.1'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libutil.so'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/librt.so'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libpthread.so'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libm.so.6'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libmvec.so.1'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libdl.so'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libc.so.6'
       >           /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/ld-linux-x86-64.so.2'
       >           collect2: error: ld returned 1 exit status
       >
       >
       > error: could not compile `zerocopy` (build script) due to 1 previous error
       For full logs, run 'nix log /nix/store/ssnz62xik9mny8hmwwc1ryqpwgnqffak-conduwuit-deps-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv'.
error: 1 dependencies of derivation '/nix/store/c8amncwy47f572arm4b0g088mx64lph2-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv' failed to build
Still fails to compile for `nix build .#static-x86_64-linux-musl` ``` error: builder for '/nix/store/ssnz62xik9mny8hmwwc1ryqpwgnqffak-conduwuit-deps-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv' failed with exit code 101; last 25 log lines: > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libmvec.so.1' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libdl.so' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libc.so.6' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/ld-linux-x86-64.so.2' > collect2: error: ld returned 1 exit status > > > error: could not compile `portable-atomic` (build script) due to 1 previous error > error: linking with `/nix/store/pbqah1qk4b5y14fqinr1h8zvhqy71v81-gcc-wrapper-14.3.0/bin/cc` failed: exit status: 1 > | > = note: "/nix/store/pbqah1qk4b5y14fqinr1h8zvhqy71v81-gcc-wrapper-14.3.0/bin/cc" "-m64" "/build/rustcPt8RNe/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/nix/store/yzzw63vfgjydym410mfg4zipa2ark04g-rust-std-1.87.0-2025-05-15/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-769ac7a9899f22f3.rlib,libpanic_unwind-9832433a93414fcc.rlib,libobject-0b1316cc21128f6f.rlib,libmemchr-55bce6bc065f5472.rlib,libaddr2line-1a9092e792a6424a.rlib,libgimli-0242466ae973a482.rlib,librustc_demangle-284f2a4fdd4266be.rlib,libstd_detect-c69476402635876e.rlib,libhashbrown-792257720060b71c.rlib,librustc_std_workspace_alloc-4e188c4163bc9617.rlib,libminiz_oxide-f8f6320911be5ef7.rlib,libadler2-2807bc05ef275e2c.rlib,libunwind-78df64ba62b23bc9.rlib,libcfg_if-7f2ae27acaea0570.rlib,liblibc-49a34a4000e5b205.rlib,liballoc-c7b16bb34ad937e6.rlib,librustc_std_workspace_core-1a5efd0f865ac6a1.rlib,libcore-fac9c7a264e7edfc.rlib,libcompiler_builtins-b91655ac28a1a56c.rlib}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/build/rustcPt8RNe/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/source/target/release/build/zerocopy-10f7a48a406b3e6e/build_script_build-10f7a48a406b3e6e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-all" "-nodefaultlibs" > = note: some arguments are omitted. use `--verbose` to show all linker arguments > = note: /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/l7d6vwajpfvgsd3j4cr25imd1mzb7d1d-gcc-14.3.0-lib/lib/libgcc_s.so.1' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libutil.so' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/librt.so' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libpthread.so' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libm.so.6' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libmvec.so.1' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libdl.so' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/libc.so.6' > /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: attempted static link of dynamic object `/nix/store/q4wq65gl3r8fy746v9bbwgx4gzn0r2kl-glibc-2.40-66/lib/ld-linux-x86-64.so.2' > collect2: error: ld returned 1 exit status > > > error: could not compile `zerocopy` (build script) due to 1 previous error For full logs, run 'nix log /nix/store/ssnz62xik9mny8hmwwc1ryqpwgnqffak-conduwuit-deps-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv'. error: 1 dependencies of derivation '/nix/store/c8amncwy47f572arm4b0g088mx64lph2-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv' failed to build ```
First-time contributor

Re:

FWIW, big formatting commits should be their own commits separate to any changes so they can be added to the git-blame-ignore-revs. Not important when you're rewriting all formatted code in the tho, don't worry about it here

Can we please try to fix up the commits here a bit anyways. It's really hard to review both of the commits with formatting in them and I can't really be sure that nothing slipped through >.<

Re: > FWIW, big formatting commits should be their own commits separate to any changes so they can be added to the git-blame-ignore-revs. Not important when you're rewriting all formatted code in the tho, don't worry about it here Can we please try to fix up the commits here a bit anyways. It's really hard to review both of the commits with formatting in them and I can't really be sure that nothing slipped through >.<
Owner

Difftastic does help with noisy diffs @Aviac, unfortunately, I can't get forgejo to use it.

[Difftastic](https://github.com/Wilfred/difftastic) does help with noisy diffs @Aviac, unfortunately, I can't get forgejo to use it.
Shuroii force-pushed the-nix-story from 5dba10af21 to 065b724341 2025-07-03 11:45:34 +00:00 Compare
Author
Contributor

I cleaned up the commits (largely, I think the style commits could be merged into one but I don't know how to do that easily so I'm not gonna touch it) and am now investigating the build issue again.

I cleaned up the commits (largely, I think the style commits could be merged into one but I don't know how to do that easily so I'm not gonna touch it) and am now investigating the build issue again.
Owner

I don't have my rig until the start of next week, so if someone else could review that'd be grand as I don't have the compute to test

I don't have my rig until the start of next week, so if someone else could review that'd be grand as I don't have the compute to test
Owner

Ran a build on my mac. I have no idea what I'm doing, I just ran nix build at the root. I get:

evaluation warning: darwin.apple_sdk_11_0.Security: these stubs do nothing and will be removed in Nixpkgs 25.11; see <https://nixos.org/manual/nixpkgs/stable/#sec-darwin> for documentation and migration instructions.

But it seems to build successfully! Or at least it exited without erroring.

side note: What is nix even doing half the time? Saying it's compiling dependencies whilst using like one core 😭

Ran a build on my mac. I have no idea what I'm doing, I just ran `nix build` at the root. I get: ``` evaluation warning: darwin.apple_sdk_11_0.Security: these stubs do nothing and will be removed in Nixpkgs 25.11; see <https://nixos.org/manual/nixpkgs/stable/#sec-darwin> for documentation and migration instructions. ``` But it seems to build successfully! Or at least it exited without erroring. side note: What is nix even doing half the time? Saying it's compiling dependencies whilst using like one core 😭
First-time contributor

Thanks for cleaning it up. Let me know if I can help you with the musl builds (they are still failing Jade (at least for me))

Thanks for cleaning it up. Let me know if I can help you with the musl builds (they are still failing Jade (at least for me))
Owner

If you give me a specific command to run I can do that tomorrow morning. I haven't used nix before 😅

If you give me a specific command to run I can do that tomorrow morning. I haven't used nix before 😅
First-time contributor

You can try nix build .#static-x86_64-linux-musl although I don't know if and how that works on darwin nix. I have no experience with nix on MacOS ^^'

You can try `nix build .#static-x86_64-linux-musl` although I don't know if and how that works on darwin nix. I have no experience with nix on MacOS ^^'
Owner

Well, different error

ZSH⠀> nix build .#static-x86_64-linux-musl
error: Cannot build '/nix/store/yhrfv2z3isfgc4z2mg0mf4dn1xs5pjx4-liburing-static-x86_64-unknown-linux-musl-2.11.drv'.
       Reason: builder failed with exit code 2.
       Output paths:
         /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev
         /nix/store/r7kgmd6k85nxj74gd88vki2adz931bhr-liburing-static-x86_64-unknown-linux-musl-2.11-debug
         /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11
         /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man
       Last 25 log lines:
       > install -D -m 644 include/liburing.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing.h
       > install -D -m 644 include/liburing/compat.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing/compat.h
       > install -D -m 644 include/liburing/barrier.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing/barrier.h
       > install -D -m 644 include/liburing/io_uring_version.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing/io_uring_version.h
       > install -D -m 644 liburing.a /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.a
       > install -D -m 644 liburing-ffi.a /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.a
       > install -D -m 755 liburing.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.so.2.11
       > install -D -m 755 liburing-ffi.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.so.2.11
       > ln -sf liburing.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.so.2
       > ln -sf liburing.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.so
       > ln -sf liburing-ffi.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.so.2
       > ln -sf liburing-ffi.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.so
       > make[1]: Leaving directory '/private/tmp/nix-build-liburing-static-x86_64-unknown-linux-musl-2.11.drv-0/source/src'
       > install -D -m 644 liburing.pc /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/pkgconfig/liburing.pc
       > install -D -m 644 liburing-ffi.pc /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/pkgconfig/liburing-ffi.pc
       > install -m 755 -d /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man2
       > install -m 644 man/*.2 /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man2
       > install -m 755 -d /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man3
       > install -m 644 man/*.3 /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man3
       > install: cannot stat 'man/IO_URING_CHECK_VERSION.3': Too many levels of symbolic links
       > install: cannot stat 'man/IO_URING_VERSION_MAJOR.3': Too many levels of symbolic links
       > install: cannot stat 'man/IO_URING_VERSION_MINOR.3': Too many levels of symbolic links
       > install: cannot stat 'man/io_uring_major_version.3': Too many levels of symbolic links
       > install: cannot stat 'man/io_uring_minor_version.3': Too many levels of symbolic links
       > make: *** [Makefile:55: install] Error 1
       For full logs, run:
         nix log /nix/store/yhrfv2z3isfgc4z2mg0mf4dn1xs5pjx4-liburing-static-x86_64-unknown-linux-musl-2.11.drv
error: Cannot build '/nix/store/57nlm53y519xw261zz9jcdsvxy5jpglh-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/07jg2gdds5ayib7lzs4cm1miq88h2223-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6
Well, different error <details> <pre> ZSH⠀> nix build .#static-x86_64-linux-musl error: Cannot build '/nix/store/yhrfv2z3isfgc4z2mg0mf4dn1xs5pjx4-liburing-static-x86_64-unknown-linux-musl-2.11.drv'. Reason: builder failed with exit code 2. Output paths: /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev /nix/store/r7kgmd6k85nxj74gd88vki2adz931bhr-liburing-static-x86_64-unknown-linux-musl-2.11-debug /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11 /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man Last 25 log lines: > install -D -m 644 include/liburing.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing.h > install -D -m 644 include/liburing/compat.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing/compat.h > install -D -m 644 include/liburing/barrier.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing/barrier.h > install -D -m 644 include/liburing/io_uring_version.h /nix/store/nfyfyaclzcsqb32xc766x3cgg2pgh9as-liburing-static-x86_64-unknown-linux-musl-2.11-dev/include/liburing/io_uring_version.h > install -D -m 644 liburing.a /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.a > install -D -m 644 liburing-ffi.a /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.a > install -D -m 755 liburing.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.so.2.11 > install -D -m 755 liburing-ffi.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.so.2.11 > ln -sf liburing.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.so.2 > ln -sf liburing.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing.so > ln -sf liburing-ffi.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.so.2 > ln -sf liburing-ffi.so.2.11 /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/liburing-ffi.so > make[1]: Leaving directory '/private/tmp/nix-build-liburing-static-x86_64-unknown-linux-musl-2.11.drv-0/source/src' > install -D -m 644 liburing.pc /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/pkgconfig/liburing.pc > install -D -m 644 liburing-ffi.pc /nix/store/yffbd24cxy68mr4ajddjj65nq7xap927-liburing-static-x86_64-unknown-linux-musl-2.11/lib/pkgconfig/liburing-ffi.pc > install -m 755 -d /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man2 > install -m 644 man/*.2 /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man2 > install -m 755 -d /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man3 > install -m 644 man/*.3 /nix/store/z57shnrf834l071gib4nk9fqkh5kriz9-liburing-static-x86_64-unknown-linux-musl-2.11-man/share/man/man3 > install: cannot stat 'man/IO_URING_CHECK_VERSION.3': Too many levels of symbolic links > install: cannot stat 'man/IO_URING_VERSION_MAJOR.3': Too many levels of symbolic links > install: cannot stat 'man/IO_URING_VERSION_MINOR.3': Too many levels of symbolic links > install: cannot stat 'man/io_uring_major_version.3': Too many levels of symbolic links > install: cannot stat 'man/io_uring_minor_version.3': Too many levels of symbolic links > make: *** [Makefile:55: install] Error 1 For full logs, run: nix log /nix/store/yhrfv2z3isfgc4z2mg0mf4dn1xs5pjx4-liburing-static-x86_64-unknown-linux-musl-2.11.drv error: Cannot build '/nix/store/57nlm53y519xw261zz9jcdsvxy5jpglh-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6.drv'. Reason: 1 dependency failed. Output paths: /nix/store/07jg2gdds5ayib7lzs4cm1miq88h2223-conduwuit-static-x86_64-unknown-linux-musl-0.5.0-rc.6 </pre> </details>
Author
Contributor

Ok, I'm out of my depth now when it comes to fixing the build issue on musl. Can anyone try to reproduce it on main with just the cargo hash changed? I'd like to know if it was my PR that broke it or if it simply never worked to begin with.

Ok, I'm out of my depth now when it comes to fixing the build issue on musl. Can anyone try to reproduce it on main with just the cargo hash changed? I'd like to know if it was my PR that broke it or if it simply never worked to begin with.
Owner

I get the same issue as my last post when building from #891 - I think this is just Nix being unable to cross-build

I get the same issue as my last post when building from https://forgejo.ellis.link/continuwuation/continuwuity/pulls/891 - I think this is just Nix being unable to cross-build
Owner

I don't currently have a linux system with nix to test with right now

I don't currently have a linux system with nix to test with right now
nex approved these changes 2025-07-07 10:53:41 +00:00
nex left a comment
Owner

Yeah, I run into a different issue each time, I don't think it's related to this PR.

Yeah, I run into a different issue each time, I don't think it's related to this PR.
Owner

In that case I'll get this merged today

In that case I'll get this merged today
Contributor

If I may, Im do have a nix linux x86 right now, so I can test with building this

If I may, Im do have a nix linux x86 right now, so I can test with building this
Contributor

I just built from this, and it works successfully

warning: updating lock file '/home/jasmine/.dotfiles/nixos/flake.lock':
• Updated input 'continuwuity':
    'https://forgejo.ellis.link/api/v1/repos/continuwuation/continuwuity/archive/0e2fdc415c96d1fa675e64cc601f6910ef3de4e2.tar.gz?narHash=sha256-w/YTEWmAELofxFguKl/LSeSRkty6aYVqgcsLcFChIH0%3D&rev=0e2fdc415c96d1fa675e64cc601f6910ef3de4e2' (2025-07-07)
  → 'https://forgejo.ellis.link/api/v1/repos/Shuroii/continuwuity/archive/065b7243416c620869e67c6d8d49c8e92c4a83e2.tar.gz?narHash=sha256-EklgHxfgsY/oVhiT91qP4gWw%2BhJrzI0jhvC%2BXD075/M%3D&rev=065b7243416c620869e67c6d8d49c8e92c4a83e2' (2025-07-03)
• Removed input 'continuwuity/complement'
• Removed input 'continuwuity/liburing'
• Updated input 'continuwuity/rocksdb':
    'github:girlbossceo/rocksdb/3ce04794bcfbbb0d2e6f81ae35fc4acf688b6986' (2025-03-07)
  → 'git+https://forgejo.ellis.link/continuwuation/rocksdb?ref=v9.11.1&rev=3ce04794bcfbbb0d2e6f81ae35fc4acf688b6986' (2025-03-07)
I just built from this, and it works successfully ``` warning: updating lock file '/home/jasmine/.dotfiles/nixos/flake.lock': • Updated input 'continuwuity': 'https://forgejo.ellis.link/api/v1/repos/continuwuation/continuwuity/archive/0e2fdc415c96d1fa675e64cc601f6910ef3de4e2.tar.gz?narHash=sha256-w/YTEWmAELofxFguKl/LSeSRkty6aYVqgcsLcFChIH0%3D&rev=0e2fdc415c96d1fa675e64cc601f6910ef3de4e2' (2025-07-07) → 'https://forgejo.ellis.link/api/v1/repos/Shuroii/continuwuity/archive/065b7243416c620869e67c6d8d49c8e92c4a83e2.tar.gz?narHash=sha256-EklgHxfgsY/oVhiT91qP4gWw%2BhJrzI0jhvC%2BXD075/M%3D&rev=065b7243416c620869e67c6d8d49c8e92c4a83e2' (2025-07-03) • Removed input 'continuwuity/complement' • Removed input 'continuwuity/liburing' • Updated input 'continuwuity/rocksdb': 'github:girlbossceo/rocksdb/3ce04794bcfbbb0d2e6f81ae35fc4acf688b6986' (2025-03-07) → 'git+https://forgejo.ellis.link/continuwuation/rocksdb?ref=v9.11.1&rev=3ce04794bcfbbb0d2e6f81ae35fc4acf688b6986' (2025-03-07) ```
transgwender approved these changes 2025-07-07 19:37:52 +00:00
transgwender left a comment
Contributor

Drop-in works fine on my x86-linux nixos server

Drop-in works fine on my x86-linux nixos server
Jade force-pushed the-nix-story from 065b724341 to e6b1de763c 2025-07-07 19:45:13 +00:00 Compare
Jade force-pushed the-nix-story from e6b1de763c to b5bf68b8c8 2025-07-07 19:47:38 +00:00 Compare
Jade scheduled this pull request to auto merge when all checks succeed 2025-07-07 19:48:03 +00:00
Jade merged commit b5bf68b8c8 into main 2025-07-07 19:48:36 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 participants
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: continuwuation/continuwuity#885
No description provided.