makedeb / mist

The official command-line interface for the makedeb Package Repository
GNU General Public License v3.0
73 stars 7 forks source link

Unable to install from MPR #24

Closed emmatebibyte closed 2 years ago

emmatebibyte commented 2 years ago

I was unable to install mist from the MPR manually with makedeb. Here is the output:

error: failed to run custom build command for `rust-apt v0.3.0`

Caused by:
  process didn't exit successfully: `/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-0f28b79758bb7da8/build-script-build` (exit status: 1)
  --- stdout
  cargo:CXXBRIDGE_PREFIX=rust-apt
  cargo:CXXBRIDGE_DIR0=/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/include
  cargo:CXXBRIDGE_DIR1=/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/crate
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-gnu")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = Some("-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS")
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = Some("-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS")
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-march=x86-64" "-mtune=generic" "-O2" "-pipe" "-fno-plt" "-fexceptions" "-Wp,-D_FORTIFY_SOURCE=2" "-Wformat" "-Werror=format-security" "-fstack-clash-protection" "-fcf-protection" "-Wp,-D_GLIBCXX_ASSERTIONS" "-I" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/include" "-I" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/crate" "-std=c++14" "-o" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/sources/rust-apt/src/raw.rs.o" "-c" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/sources/rust-apt/src/raw.rs.cc"
  cargo:warning=In file included from /home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/sources/rust-apt/src/raw.rs.cc:1:
  cargo:warning=/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/crate/rust-apt/apt-pkg-c/apt-pkg.h:3:10: fatal error: apt-pkg/cachefile.h: No such file or directory
  cargo:warning=    3 | #include <apt-pkg/cachefile.h>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit status: 1
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-march=x86-64" "-mtune=generic" "-O2" "-pipe" "-fno-plt" "-fexceptions" "-Wp,-D_FORTIFY_SOURCE=2" "-Wformat" "-Werror=format-security" "-fstack-clash-protection" "-fcf-protection" "-Wp,-D_GLIBCXX_ASSERTIONS" "-I" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/include" "-I" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/crate" "-std=c++14" "-o" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/apt-pkg-c/apt-pkg.o" "-c" "apt-pkg-c/apt-pkg.cc"
  cargo:warning=apt-pkg-c/apt-pkg.cc:1:10: fatal error: apt-pkg/acquire-item.h: No such file or directory
  cargo:warning=    1 | #include <apt-pkg/acquire-item.h>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit status: 1

  --- stderr

  CXX include path:
    /home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/include
    /home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/crate

  error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-march=x86-64" "-mtune=generic" "-O2" "-pipe" "-fno-plt" "-fexceptions" "-Wp,-D_FORTIFY_SOURCE=2" "-Wformat" "-Werror=format-security" "-fstack-clash-protection" "-fcf-protection" "-Wp,-D_GLIBCXX_ASSERTIONS" "-I" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/include" "-I" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/crate" "-std=c++14" "-o" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/sources/rust-apt/src/raw.rs.o" "-c" "/home/emma/mist/src/mist-0.8.0/target/release/build/rust-apt-545f23bdf7bea3d0/out/cxxbridge/sources/rust-apt/src/raw.rs.cc" with args "c++" did not execute successfully (status code exit status: 1).
hwittenborn commented 2 years ago

What distribution/distro version are you on? I suspect it might be related to that

emmatebibyte commented 2 years ago

What distribution/distro version are you on? I suspect it might be related to that

Debian 11

hwittenborn commented 2 years ago

Sorry for the late response @emmatebibyte - What does this command show for you though?

ls /usr/include/apt-pkg
emmatebibyte commented 2 years ago

Screenshot_20220912_175253

hwittenborn commented 2 years ago

Sorry for the wait on this. I'm currently doing a pretty hefty addition in #22, and I'm also doing a lot of stuff in the APT library this program uses, so I'm probably gonna wait to check on this until after that's merged so I can see if everything works fine.

emmatebibyte commented 2 years ago

No worries! I've been very busy myself.

hwittenborn commented 2 years ago

Hey! I've gotten #22 merged now, could you see if the issue keeps happening still after updating your version of Mist?

hwittenborn commented 2 years ago

@emmatebibyte: I'm gonna get this closed since there hasn't been any response - if you're still having the issue feel free to open up a new issue though!