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

Doesn't build in docker :( #39

Open
TheThing opened this issue Aug 16, 2021 · 7 comments
Open

Doesn't build in docker :( #39

TheThing opened this issue Aug 16, 2021 · 7 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@TheThing
Copy link

PS C:\Users\jonatan\Downloads\hello-world-rs> docker build -t hello-world-rs .
Sending build context to Docker daemon  336.9kB
Step 1/5 : FROM rust:1.31
1.31: Pulling from library/rust
cd8eada9c7bb: Pull complete
c2677faec825: Pull complete
fcce419a96b1: Pull complete
045b51e26e75: Pull complete
3b969ad6f147: Pull complete
2074c6bfed7d: Pull complete
Digest: sha256:e2c4e3751290e30c3f130ef3513c7999aee87b5e7ac91e2fc9f3addcdf1f1387
Status: Downloaded newer image for rust:1.31
 ---> 6f61eb35ad91
Step 2/5 : WORKDIR /usr/src/hello-world
 ---> Running in 8b2ee0149c98
Removing intermediate container 8b2ee0149c98
 ---> 434eb3c5aedc
Step 3/5 : COPY . .
 ---> c066cc4b482f
Step 4/5 : RUN cargo install --path .
 ---> Running in 4002919fcf5c
info: syncing channel updates for 'nightly-2021-07-17-x86_64-unknown-linux-gnu'
info: latest update on 2021-07-17, rust version 1.55.0-nightly (74ef0c3e4 2021-07-16)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
  Installing hello-world v0.1.0 (/usr/src/hello-world)
    Updating crates.io index
 Downloading crates ...
<redacted a bunch of download>
   Compiling servo-freetype-sys v4.0.5
   Compiling expat-sys v2.1.6
   Compiling glfw-sys v3.3.4
error: failed to run custom build command for `alsa-sys v0.1.2`

Caused by:
  process didn't exit successfully: `/usr/src/hello-world/target/release/build/alsa-sys-69915628743b9e82/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=ALSA_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=ALSA_STATIC
  cargo:rerun-if-env-changed=ALSA_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"` did not exit successfully: exit status: 1\n--- stderr\nPackage alsa was not found in the pkg-config search path.\nPerhaps you should add the directory containing `alsa.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'alsa' found\n"', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/alsa-sys-0.1.2/build.rs:4:38
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `hello-world v0.1.0 (/usr/src/hello-world)`, intermediate artifacts can be found at `/usr/src/hello-world/target`

Caused by:
  build failed
The command '/bin/sh -c cargo install --path .' returned a non-zero code: 101
@mTvare6
Copy link
Owner

mTvare6 commented Aug 16, 2021

Oh yeah, you need to some dependencies, considering rust docker images uses debian, I need to find the dependencies mentioned in README for debian and add it to docker information

@mTvare6 mTvare6 added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 17, 2021
@nixinator
Copy link

the fact the it doesn't build is a good thing. No application execution, no bugs, no problems!

@youngtrashbag
Copy link

I think we should rewrite Docker(:whale:) in Rust(:rocket:) so we can have

  • zero cost abstractions 🚀
  • move semantics 🚀
  • guaranteed memory safety 🚀
  • threads without data races 🚀
  • trait based generics 🚀
  • pattern matching 🚀

@nixinator
Copy link

docker in rust.... or Rocker as we like to call it.

I think your best writing an operating system that is fit for purpose.... a monumental task.....

but were going to need it as everything out there currently is garbage.

@mTvare6 mTvare6 closed this as completed Sep 26, 2021
@mTvare6 mTvare6 reopened this Sep 26, 2021
@mTvare6 mTvare6 pinned this issue Jul 28, 2022
@MacSlash
Copy link

docker in rust.... or Rocker as we like to call it.

I think your best writing an operating system that is fit for purpose.... a monumental task.....

but were going to need it as everything out there currently is garbage.

https://github.com/AbleTheAbove/ableos/tree/master/ableos
The best operating system, made in rust 🚀 🚀

@SkyfallWasTaken
Copy link

docker in rust.... or Rocker as we like to call it.
I think your best writing an operating system that is fit for purpose.... a monumental task.....
but were going to need it as everything out there currently is garbage.

AbleTheAbove/ableos@master/ableos The best operating system, made in rust rocket rocket

But it uses the memory-unsafe, slow, disgusting, appealing, unsightly, beastly, antique, old-fashioned, terrifying, laggy, buggy c programming language 🤮

@nixinator
Copy link

C is only buggy, it you write bugs, but if you don't write bugs, it's fine. but it's very easy to write bugs!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants