Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attic fails to build with fatal error: uds-remote-store.md: No such file or directory #56

Closed
gador opened this issue Jun 8, 2023 · 3 comments

Comments

@gador
Copy link

gador commented Jun 8, 2023

I tried to update to current master on nixpkgs today for my systems but encountered the following error:

unpacking sources
unpacking source archive /nix/store/qdggd1m9zk6kq29fc3kvf6prb8xabdfr-source
source root is source
patching sources
Executing configureCargoCommonVars
decompressing cargo artifacts from /nix/store/1mck5pp7l9sgivbjqirj6m1c3444gk0r-attic-deps-0.0.1/target.tar.zst to target
configuring
will append /build/source/.cargo-home/config.toml with contents of /nix/store/d2513s4lymp7x92cc76wk4119xpk0qyi-vendor-cargo-deps/config.toml
default configurePhase, nothing to do
building
++ command cargo --version
cargo 1.69.0
++ command cargo build --profile release --message-format json-render-diagnostics -p attic-client -p attic-server
   Compiling bindgen v0.65.1
   Compiling attic v0.1.0 (/build/source/attic)
The following warnings were emitted during compilation:

warning: In file included from /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate/attic/src/nix_store/bindings/nix.hpp:19,
warning:                  from src/nix_store/bindings/nix.cpp:11:
warning: /nix/store/sw5561i42ijhzx8jrbyg33cpnx3rcv2k-nix-2.15.1-dev/include/nix/uds-remote-store.hh:23:20: fatal error: uds-remote-store.md: No such file or directory
warning:    23 |           #include "uds-remote-store.md"
warning:       |                    ^~~~~~~~~~~~~~~~~~~~~
warning: compilation terminated.
warning: In file included from /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate/attic/src/nix_store/bindings/nix.hpp:19,
warning:                  from /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/sources/attic/src/nix_store/bindings/mod.rs.cc:1:
warning: /nix/store/sw5561i42ijhzx8jrbyg33cpnx3rcv2k-nix-2.15.1-dev/include/nix/uds-remote-store.hh:23:20: fatal error: uds-remote-store.md: No such file or directory
warning:    23 |           #include "uds-remote-store.md"
warning:       |                    ^~~~~~~~~~~~~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `attic v0.1.0 (/build/source/attic)`

Caused by:
  process didn't exit successfully: `/build/source/target/release/build/attic-d4ae52706e01b1b3/build-script-build` (exit status: 1)
  --- stdout
  cargo:CXXBRIDGE_PREFIX=attic
  cargo:CXXBRIDGE_DIR0=/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/include
  cargo:CXXBRIDGE_DIR1=/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
  CXX_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
  CXX_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = Some("g++")
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "g++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/include" "-I" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate" "-Wall" "-Wextra" "-std=c++17" "-O2" "-include" "nix/config.h" "-o" "/build/source/target/release/build/attic-510b23bac4c80a60/out/f7f357d16ca57eb4-mod.rs.o" "-c" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/sources/attic/src/nix_store/bindings/mod.rs.cc"
  running: "g++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/include" "-I" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate" "-Wall" "-Wextra" "-std=c++17" "-O2" "-include" "nix/config.h" "-o" "/build/source/target/release/build/attic-510b23bac4c80a60/out/src/nix_store/bindings/nix.o" "-c" "src/nix_store/bindings/nix.cpp"
  cargo:warning=In file included from /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate/attic/src/nix_store/bindings/nix.hpp:19,
  cargo:warning=                 from src/nix_store/bindings/nix.cpp:11:
  cargo:warning=/nix/store/sw5561i42ijhzx8jrbyg33cpnx3rcv2k-nix-2.15.1-dev/include/nix/uds-remote-store.hh:23:20: fatal error: uds-remote-store.md: No such file or directory
  cargo:warning=   23 |           #include "uds-remote-store.md"
  cargo:warning=      |                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  cargo:warning=In file included from /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate/attic/src/nix_store/bindings/nix.hpp:19,
  cargo:warning=                 from /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/sources/attic/src/nix_store/bindings/mod.rs.cc:1:
  cargo:warning=/nix/store/sw5561i42ijhzx8jrbyg33cpnx3rcv2k-nix-2.15.1-dev/include/nix/uds-remote-store.hh:23:20: fatal error: uds-remote-store.md: No such file or directory
  cargo:warning=   23 |           #include "uds-remote-store.md"
  cargo:warning=      |                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit status: 1
  exit status: 1

  --- stderr

  CXX include path:
    /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/include
    /build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate


  error occurred: Command "g++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/include" "-I" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/crate" "-Wall" "-Wextra" "-std=c++17" "-O2" "-include" "nix/config.h" "-o" "/build/source/target/release/build/attic-510b23bac4c80a60/out/f7f357d16ca57eb4-mod.rs.o" "-c" "/build/source/target/release/build/attic-510b23bac4c80a60/out/cxxbridge/sources/attic/src/nix_store/bindings/mod.rs.cc" with args "g++" did not execute successfully (status code exit status: 1).

Maybe this has something to do with the recent nix update?
If I can do something more to help debug this issue, please let me know.

@gador
Copy link
Author

gador commented Jun 9, 2023

So, I guess it does have something to do with the recent update to 2.15.1 on nixpkgs..

When testing the above fix to nix I ran into the following issue:

attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: expected expression
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'me'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'fields1'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'fields2'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: expected expression
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'me'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'fields1'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'fields2'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: expected expression
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'me'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'fields1'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/suggestions.hh:23:5: error: use of undeclared identifier 'fields2'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: expected expression
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: use of undeclared identifier 'me'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: use of undeclared identifier 'fields1'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: use of undeclared identifier 'fields2'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: expected expression
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: use of undeclared identifier 'me'
attic>   /nix/store/n4zhp46qjwmcd0az6pwqs5y6hg7x9ml1-nix-2.18.1-dev/include/nix/content-address.hh:35:5: error: use of undeclared identifier 'fields1

Any idea where this comes from?

EDIT:
Please ignore the version identifier of nix. I overwrote it to test my fork which included the fix

@zhaofengli
Copy link
Owner

I'll take care of this in a bit.

@zhaofengli
Copy link
Owner

For reference, this was fixed upstream in NixOS/nix#8493, but let's work around it downstream while we wait for a release.

linyinfeng added a commit to linyinfeng/dotfiles that referenced this issue Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants