Giter Site home page Giter Site logo

Comments (6)

kloenk avatar kloenk commented on August 15, 2024

This should resolve itself, when #25 gets resolved.

from linux.

wecing avatar wecing commented on August 15, 2024

@kloenk Is it possible to workaround this issue before #25 lands?

from linux.

ojeda avatar ojeda commented on August 15, 2024

@wecing It may work now since we don't depend on shlex anymore and we use our own target. I also rewrote the quick start guide a bit, in case you want to take a look.

from linux.

wecing avatar wecing commented on August 15, 2024

@ojeda Thank you! Unfortunately it still doesn't work for me:

> git log -1
commit 514443c678e50021917dfe5b9e4a427559e9ec82 (HEAD -> rust, origin/rust, origin/HEAD)
Merge: 2874653450f 5c3df5ae897
Author: Miguel Ojeda
Date:   Sun Nov 29 00:03:27 2020 +0100

    Merge pull request #37 from Rust-for-Linux/rust-ci-builddir

    CI: test O= builds too
> make menuconfig
> make clean
> make LLVM=1
  ...
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND  objtool
  CHK     include/generated/compile.h
  CARGO     arch/x86/entry/vdso/libvdso-image.a
error: manifest path `./arch/x86/entry/vdso/Cargo.toml` does not exist
make[3]: *** [scripts/Makefile.build:329: arch/x86/entry/vdso/libvdso-image.a] Error 101
make[2]: *** [scripts/Makefile.build:529: arch/x86/entry/vdso] Error 2
make[1]: *** [scripts/Makefile.build:529: arch/x86/entry] Error 2
make: *** [Makefile:1833: arch/x86] Error 2

Since the previous error message I saw was about rust std, I actually did try to compile that from latest rust source code:

> ./x.py build --stage 1 --host x86_64-unknown-linux-gnu --target x86_64-linux-kernel library/std
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-linux-kernel)
   Compiling libc v0.2.79
   ...
   Compiling object v0.22.0
   Compiling addr2line v0.14.0
   Compiling std v0.0.0 (/home/$USER/Code/sources/rust/library/std)
warning: dropping unsupported crate type `dylib` for target `x86_64-linux-kernel`

error[E0432]: unresolved imports `libc::c_int`, `libc::c_void`
  --> library/std/src/sys_common/net.rs:17:12
   |
17 | use libc::{c_int, c_void};
   |            ^^^^^  ^^^^^^ no `c_void` in the root
   |            |
   |            no `c_int` in the root

Not sure what was causing that failure, but it probably doesn't matter anymore.

from linux.

ojeda avatar ojeda commented on August 15, 2024

@wecing Thanks for trying again!

CARGO arch/x86/entry/vdso/libvdso-image.a

@kloenk This is triggered by the $(obj)/lib%.a change, now it matches things we don't want.

from linux.

kloenk avatar kloenk commented on August 15, 2024

@kloenk This is triggered by the $(obj)/lib%.a change, now it matches things we don't want.

Oh, not good. But without that change it also does not work. So no idea on how to fix it from my side at this time.

I changed it so, it detects if it's a module or a builtin.

from linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.