Giter Club home page Giter Club logo

ivy's People

Contributors

kladd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ivy's Issues

make gives warning and make run fails

saurabh@raiden:~/ivy$ make
mkdir -p target/kernel
nasm -o target/kernel/start.o -felf32 src/arch/x86/main.asm
ar rvs target/kernel/libstart.a target/kernel/start.o
ar: creating target/kernel/libstart.a
a - target/kernel/start.o
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2023-04-30, rust version 1.71.0-nightly (87b1f891e 2023-04-29)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-src'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
Updating crates.io index
Downloaded addr2line v0.19.0
Downloaded rustc-demangle v0.1.21
Downloaded unicode-width v0.1.10
Downloaded adler v1.0.2
Downloaded cc v1.0.77
Downloaded memchr v2.5.0
Downloaded cfg-if v1.0.0
Downloaded object v0.30.1
Downloaded hashbrown v0.12.3
Downloaded compiler_builtins v0.1.91
Downloaded libc v0.2.142
Downloaded gimli v0.27.2
Downloaded getopts v0.2.21
Downloaded miniz_oxide v0.6.2
Downloaded 14 crates (2.2 MB) in 0.28s
Compiling compiler_builtins v0.1.91
Compiling core v0.0.0 (/home/saurabh/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Compiling rustc-std-workspace-core v1.99.0 (/home/saurabh/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling alloc v0.0.0 (/home/saurabh/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
Compiling ivy v0.1.0 (/home/saurabh/ivy)
warning: extern block uses type FATFileSystem, which is not FFI-safe
--> src/main.rs:68:23
|
68 | fn switch_task(task: &Task) -> u32;
| ^^^^^ not FFI-safe
|
= help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
= note: this struct has unspecified layout
note: the type is defined here
--> src/fat.rs:204:1
|
204 | pub struct FATFileSystem {
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: #[warn(improper_ctypes)] on by default

warning: ivy (bin "ivy") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 10.52s`

saurabh@raiden:~/ivy$ make run
nasm -o target/kernel/start.o -felf32 src/arch/x86/main.asm
ar rvs target/kernel/libstart.a target/kernel/start.o
r - target/kernel/start.o
warning: extern block uses type FATFileSystem, which is not FFI-safe
--> src/main.rs:68:23
|
68 | fn switch_task(task: &Task) -> u32;
| ^^^^^ not FFI-safe
|
= help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
= note: this struct has unspecified layout
note: the type is defined here
--> src/fat.rs:204:1
|
204 | pub struct FATFileSystem {
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: #[warn(improper_ctypes)] on by default

warning: ivy (bin "ivy") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
qemu-img"" create -f raw target/kernel/_disk_image 1g
Formatting 'target/kernel/_disk_image', fmt=raw size=1073741824
mkfs.fat -F 16 target/kernel/_disk_image
make: mkfs.fat: No such file or directory
make: *** [Makefile:26: target/kernel/_disk_image] Error 127

Headless mode

  • Write less verbose logs to the serial port.
  • Input and output through COM1
  • Introduce common file utils for COM1
  • Conditionally run the shell from COM1 if compiled in headless mode

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.