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

running source codespace-basic-setup like adding2210 added in readme steps, logs are all after running all 3 apt commands #207

Open
FunnyCorgi opened this issue Nov 21, 2024 · 1 comment

Comments

@FunnyCorgi
Copy link

Submodule 'aboutproxy' (https://github.com/MercuryWorkshop/aboutproxy) registered for path 'aboutproxy'
Submodule 'chimerix' (https://github.com/MercuryWorkshop/chimerix.git) registered for path 'chimerix'
Submodule 'dreamlandjs' (https://github.com/mercuryworkshop/dreamlandjs) registered for path 'dreamlandjs'
Submodule 'native-file-system-adapter' (https://github.com/MercuryWorkshop/native-file-system-adapter/) registered for path 'native-file-system-adapter'
Submodule 'v86' (https://github.com/MercuryWorkshop/v86) registered for path 'v86'
Submodule 'x86_image_wizard/epoxy' (https://github.com/MercuryWorkshop/epoxy-tls) registered for path 'x86_image_wizard/epoxy'
Cloning into '/workspaces/anuraOS/aboutproxy'...
Cloning into '/workspaces/anuraOS/chimerix'...
Cloning into '/workspaces/anuraOS/dreamlandjs'...
Cloning into '/workspaces/anuraOS/native-file-system-adapter'...
Cloning into '/workspaces/anuraOS/v86'...
Cloning into '/workspaces/anuraOS/x86_image_wizard/epoxy'...
Submodule path 'aboutproxy': checked out '2858b9f5559cd4dc17bd9ef79b107977cfb5e724'
Submodule path 'chimerix': checked out '605bcf66003483eeb3b2ff30ff7f68011e356cf9'
Submodule path 'dreamlandjs': checked out '0942bf19eac6602ecf6dc57974963f2182aa6c77'
Submodule path 'native-file-system-adapter': checked out 'ccc6626335482ebb5fdcdf5c492e8c1c3c9ac9ce'
Submodule path 'v86': checked out 'e2a45d91a826fc1043223a08bac9b02ce4d5ef3d'
Submodule path 'x86_image_wizard/epoxy': checked out 'b6ba44eaa388ff6d1479d61e4b8310390dedb2b2'
info: downloading installer
info: profile set to 'minimal'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2024-10-17, rust version 1.82.0 (f6e511eec 2024-10-15)
info: downloading component 'cargo'
info: downloading component 'rust-std' for 'i686-unknown-linux-gnu'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std' for 'i686-unknown-linux-gnu'
26.3 MiB / 26.3 MiB (100 %) 15.5 MiB/s in 1s ETA: 0s
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
18.7 MiB / 18.7 MiB (100 %) 15.0 MiB/s in 1s ETA: 0s
info: installing component 'rust-std'
26.0 MiB / 26.0 MiB (100 %) 13.0 MiB/s in 3s ETA: 0s
info: installing component 'rustc'
70.8 MiB / 70.8 MiB (100 %) 14.5 MiB/s in 4s ETA: 0s
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

stable-x86_64-unknown-linux-gnu installed - rustc 1.82.0 (f6e511eec 2024-10-15)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, you need to source
the corresponding env file under $HOME/.cargo.

This is usually done by running one of the following (note the leading DOT):
. "$HOME/.cargo/env" # For sh/bash/zsh/ash/dash/pdksh
source "$HOME/.cargo/env.fish" # For fish
git submodule update
mkdir -p build/lib
npm i
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

added 484 packages, removed 337 packages, changed 131 packages, and audited 799 packages in 17s

161 packages are looking for funding
run npm fund for details

5 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd server; npm i

added 70 packages, and audited 71 packages in 4s

13 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
make hooks
make[1]: Entering directory '/workspaces/anuraOS'
mkdir -p .git/hooks
echo -e "#!/bin/sh\nmake lint\ngit update-index --again" > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
make[1]: Leaving directory '/workspaces/anuraOS'

build/bootstrap
cd v86; make build/libv86.js
make[1]: Entering directory '/workspaces/anuraOS/v86'
mkdir -p closure-compiler

don't upgrade until google/closure-compiler#3972 is fixed

wget -nv -O closure-compiler/compiler.jar https://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20210601/closure-compiler-v20210601.jar
2024-11-21 12:34:29 URL:https://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20210601/closure-compiler-v20210601.jar [12634009/12634009] -> "closure-compiler/compiler.jar" [1]
mkdir -p build
ls -lh build/libv86.js
ls: cannot access 'build/libv86.js': No such file or directory
make[1]: [Makefile:132: build/libv86.js] Error 2 (ignored)
java -jar closure-compiler/compiler.jar
--js_output_file build/libv86.js
--define=DEBUG=false
--generate_exports --externs src/externs.js --warning_level VERBOSE --jscomp_error accessControls --jscomp_error checkRegExp --jscomp_error checkTypes --jscomp_error checkVars --jscomp_error conformanceViolations --jscomp_error const --jscomp_error constantProperty --jscomp_error deprecated --jscomp_error deprecatedAnnotations --jscomp_error duplicateMessage --jscomp_error es5Strict --jscomp_error externsValidation --jscomp_error globalThis --jscomp_error invalidCasts --jscomp_error misplacedTypeAnnotation --jscomp_error missingProperties --jscomp_error missingReturn --jscomp_error msgDescriptions --jscomp_error nonStandardJsDocs --jscomp_error suspiciousCode --jscomp_error strictModuleDepCheck --jscomp_error typeInvalidation --jscomp_error undefinedVars --jscomp_error unknownDefines --jscomp_error visibility --use_types_for_optimization --assume_function_wrapper --summary_detail_level 3 --language_in ECMASCRIPT_2020 --language_out ECMASCRIPT_2020
--compilation_level SIMPLE
--jscomp_off=missingProperties
--output_wrapper ';(function(){%output%}).call(this);'
--js src/const.js src/config.js src/io.js src/main.js src/lib.js src/buffer.js src/ide.js src/pci.js src/floppy.js src/memory.js src/dma.js src/pit.js src/vga.js src/vga_text.js src/ps2.js src/rtc.js src/uart.js src/acpi.js src/apic.js src/ioapic.js src/state.js src/ne2k.js src/sb16.js src/virtio.js src/virtio_console.js src/virtio_net.js src/bus.js src/log.js src/cpu.js src/debug.js src/elf.js src/kernel.js
--js src/browser/screen.js src/browser/keyboard.js src/browser/mouse.js src/browser/speaker.js src/browser/serial.js src/browser/network.js src/browser/starter.js src/browser/worker_bus.js src/browser/dummy_screen.js src/browser/fake_network.js src/browser/wisp_network.js src/browser/fetch_network.js src/browser/print_stats.js src/browser/filestorage.js
--js lib/9p-filer.js lib/filesystem.js lib/jor1k.js lib/marshall.js
0 error(s), 0 warning(s), 79.3% typed
ls -lh build/libv86.js
-rw-rw-rw- 1 codespace codespace 320K Nov 21 12:34 build/libv86.js
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cp v86/build/libv86.js build/lib/libv86.js
cd v86; make src/rust/gen/interpreter.rs
make[1]: Entering directory '/workspaces/anuraOS/v86'
./gen/generate_interpreter.js --output-dir build/ --table interpreter
[+] Wrote table interpreter.rs.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make src/rust/gen/interpreter0f.rs
make[1]: Entering directory '/workspaces/anuraOS/v86'
./gen/generate_interpreter.js --output-dir build/ --table interpreter0f
[+] Wrote table interpreter0f.rs.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make src/rust/gen/jit.rs
make[1]: Entering directory '/workspaces/anuraOS/v86'
./gen/generate_jit.js --output-dir build/ --table jit
[+] Wrote table jit.rs.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make src/rust/gen/jit0f.rs
make[1]: Entering directory '/workspaces/anuraOS/v86'
./gen/generate_jit.js --output-dir build/ --table jit0f
[+] Wrote table jit0f.rs.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make src/rust/gen/analyzer.rs
make[1]: Entering directory '/workspaces/anuraOS/v86'
./gen/generate_analyzer.js --output-dir build/ --table analyzer
[+] Wrote table analyzer.rs.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make src/rust/gen/analyzer0f.rs
make[1]: Entering directory '/workspaces/anuraOS/v86'
./gen/generate_analyzer.js --output-dir build/ --table analyzer0f
[+] Wrote table analyzer0f.rs.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make build/softfloat.o
make[1]: Entering directory '/workspaces/anuraOS/v86'
mkdir -p build
clang -c -Wall
--target=wasm32 -O3 -flto -nostdlib -fvisibility=hidden -ffunction-sections -fdata-sections
-DSOFTFLOAT_FAST_INT64 -DINLINE_LEVEL=5 -DSOFTFLOAT_FAST_DIV32TO16 -DSOFTFLOAT_FAST_DIV64TO32
-o build/softfloat.o
lib/softfloat/softfloat.c
lib/softfloat/softfloat.c:6241:2: warning: unused label 'packReturn' [-Wunused-label]
packReturn:
^~~~~~~~~~~
lib/softfloat/softfloat.c:7072:2: warning: unused label 'packReturn' [-Wunused-label]
packReturn:
^~~~~~~~~~~
lib/softfloat/softfloat.c:7804:2: warning: unused label 'packReturn' [-Wunused-label]
packReturn:
^~~~~~~~~~~
lib/softfloat/softfloat.c:9576:2: warning: unused label 'packReturn' [-Wunused-label]
packReturn:
^~~~~~~~~~~
4 warnings generated.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make build/zstddeclib.o
make[1]: Entering directory '/workspaces/anuraOS/v86'
mkdir -p build
clang -c -Wall
--target=wasm32 -O3 -flto -nostdlib -fvisibility=hidden -ffunction-sections -fdata-sections
-DZSTDLIB_VISIBILITY=""
-o build/zstddeclib.o
lib/zstd/zstddeclib.c
lib/zstd/zstddeclib.c:6507:18: warning: unused variable 'LL_defaultNorm' [-Wunused-const-variable]
static const S16 LL_defaultNorm[MaxLL+1] = { 4, 3, 2, 2, 2, 2, 2, 2,
^
lib/zstd/zstddeclib.c:6513:18: warning: unused variable 'LL_defaultNormLog' [-Wunused-const-variable]
static const U32 LL_defaultNormLog = LL_DEFAULTNORMLOG;
^
lib/zstd/zstddeclib.c:6522:18: warning: unused variable 'ML_defaultNorm' [-Wunused-const-variable]
static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2,
^
lib/zstd/zstddeclib.c:6530:18: warning: unused variable 'ML_defaultNormLog' [-Wunused-const-variable]
static const U32 ML_defaultNormLog = ML_DEFAULTNORMLOG;
^
lib/zstd/zstddeclib.c:6532:18: warning: unused variable 'OF_defaultNorm' [-Wunused-const-variable]
static const S16 OF_defaultNorm[DefaultMaxOff+1] = { 1, 1, 1, 1, 1, 1, 2, 2,
^
lib/zstd/zstddeclib.c:6537:18: warning: unused variable 'OF_defaultNormLog' [-Wunused-const-variable]
static const U32 OF_defaultNormLog = OF_DEFAULTNORMLOG;
^
6 warnings generated.
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cd v86; make build/v86.wasm
make[1]: Entering directory '/workspaces/anuraOS/v86'
mkdir -p build/
BLOCK_SIZE=K ls -l build/v86.wasm
ls: cannot access 'build/v86.wasm': No such file or directory
make[1]: [Makefile:176: build/v86.wasm] Error 2 (ignored)
cargo rustc --release --target wasm32-unknown-unknown -- -C linker=tools/rust-lld-wrapper -C link-args="--import-table --global-base=4096 " -C link-args="build/softfloat.o" -C link-args="build/zstddeclib.o" --verbose -C target-feature=+bulk-memory -C target-feature=+multivalue -C target-feature=+simd128
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2024-11-21, rust version 1.84.0-nightly (3fee0f12e 2024-11-20)
info: downloading component 'cargo'
info: downloading component 'rust-std' for 'i686-unknown-linux-gnu'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std' for 'i686-unknown-linux-gnu'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rust-std'
info: installing component 'rustc'
warning: no edition set: defaulting to the 2015 edition while the latest is 2021
Compiling v86 v0.1.0 (/workspaces/anuraOS/v86)
warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:2126:23
|
2126 | for &entry in tlb_data.iter() {
| ^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
= note: #[warn(static_mut_refs)] on by default

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:2154:23
|
2154 | for &entry in tlb_data.iter() {
| ^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:2194:30
|
2194 | let (code, error_code) = jit_fault.take().unwrap();
| ^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:2926:34
|
2926 | let last_jump_addr = ::cpu::cpu::debug_last_jump.phys_address().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:3410:23
|
3410 | let scratch = jit_paging_scratch_buffer.0.as_mut_ptr() as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:3423:23
|
3423 | let scratch = jit_paging_scratch_buffer.0.as_mut_ptr();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:3569:23
|
3569 | let scratch = jit_paging_scratch_buffer.0.as_mut_ptr() as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/cpu.rs:3585:23
|
3585 | let scratch = jit_paging_scratch_buffer.0.as_mut_ptr() as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/memory.rs:62:9
|
62 | vga::dirty_bitmap.resize((size >> 12 >> 6) as usize, 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:149:17
|
149 | master.set_irq(2)
| ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:152:17
|
152 | master.clear_irq(2)
| ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:289:21
|
289 | let irq = match master.get_irq() {
| ^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:316:5
|
316 | master.check_irqs();
| ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:327:21
|
327 | let irq = match slave.get_irq() {
| ^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:353:5
|
353 | slave.check_irqs();
| ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:364:57
|
364 | dbg_log!("[PIC] set irq {}, irq_value={:x}", i, master.irq_value);
| ^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:368:9
|
368 | master.set_irq(i)
| ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:371:9
|
371 | slave.set_irq(i - 8)
| ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:385:9
|
385 | master.clear_irq(i)
| ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:388:9
|
388 | slave.clear_irq(i - 8)
| ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:393:38
|
393 | pub unsafe fn port20_read() -> u32 { master.port0_read() }
| ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:395:38
|
395 | pub unsafe fn port21_read() -> u32 { master.port1_read() }
| ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:398:38
|
398 | pub unsafe fn portA0_read() -> u32 { slave.port0_read() }
| ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:400:38
|
400 | pub unsafe fn portA1_read() -> u32 { slave.port1_read() }
| ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:403:37
|
403 | pub unsafe fn port20_write(v: u8) { master.port0_write(v) }
| ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:405:37
|
405 | pub unsafe fn port21_write(v: u8) { master.port1_write(v) }
| ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:408:37
|
408 | pub unsafe fn portA0_write(v: u8) { slave.port0_write(v) }
| ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/pic.rs:410:37
|
410 | pub unsafe fn portA1_write(v: u8) { slave.port1_write(v) }
| ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:13:5
|
13 | dest_buffer.resize(size as usize, 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:14:5
|
14 | dest_buffer.as_mut_ptr() as u32
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:20:42
|
20 | dbg_assert!(((page >> 6) as usize) < dirty_bitmap.len());
| ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:21:6
|
21 | *dirty_bitmap.get_unchecked_mut((page >> 6) as usize) |= 1 << (page & 63)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:26:14
|
26 | for v in dirty_bitmap.iter_mut() {
| ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:35:32
|
35 | for (i, &word) in unsafe { dirty_bitmap.iter().enumerate() } {
| ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:68:24
|
68 | let dest = dest_buffer.as_mut_ptr().offset(dest_offset) as *mut u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:73:34
|
73 | isize::min(1024, dest_buffer.len() as isize - dest_offset)
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:82:47
|
82 | dbg_assert!(dest_offset + i < dest_buffer.len() as isize);
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:91:24
|
91 | let dest = dest_buffer.as_mut_ptr().offset(dest_offset) as *mut u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:96:42
|
96 | isize::min(4096 / 3 + 1, dest_buffer.len() as isize - dest_offset)
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:101:47
|
101 | dbg_assert!(dest_offset + i < dest_buffer.len() as isize);
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:109:24
|
109 | let dest = dest_buffer.as_mut_ptr().offset(dest_offset) as *mut u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:114:34
|
114 | isize::min(2048, dest_buffer.len() as isize - dest_offset)
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:123:47
|
123 | dbg_assert!(dest_offset + i < dest_buffer.len() as isize);
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:131:24
|
131 | let dest = dest_buffer.as_mut_ptr().offset(dest_offset) as *mut u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:136:34
|
136 | isize::min(2048, dest_buffer.len() as isize - dest_offset)
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a shared reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:145:47
|
145 | dbg_assert!(dest_offset + i < dest_buffer.len() as isize);
| ^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/cpu/vga.rs:168:14
|
168 | for v in dirty_bitmap.iter_mut() {
| ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/profiler.rs:137:18
|
137 | for x in stat_array.iter_mut() {
| ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/codegen.rs:2651:25
|
2651 | let addr = unsafe { profiler::stat_array.as_mut_ptr().offset(stat as isize) } as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: creating a mutable reference to mutable static is discouraged
--> src/rust/jit.rs:89:60
|
89 | pub fn get_jit_state() -> &'static mut JitState { unsafe { jit_state.as_mut() } }
| ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives

warning: v86 (lib) generated 50 warnings
Finished release profile [optimized] target(s) in 19.07s
cp build/wasm32-unknown-unknown/release/v86.wasm build/v86.wasm
false && wasm-opt -O2 --strip-debug build/v86.wasm -o build/v86.wasm
make[1]: [Makefile:179: build/v86.wasm] Error 1 (ignored)
BLOCK_SIZE=K ls -l build/v86.wasm
-rwxrwxrwx 1 codespace codespace 1933K Nov 21 12:35 build/v86.wasm
make[1]: Leaving directory '/workspaces/anuraOS/v86'
cp v86/build/v86.wasm build/lib/v86.wasm
cp -r v86/bios public
mkdir -p build/libs/filer
cp node_modules/filer/dist/filer.min.js build/libs/filer/filer.min.js
cp node_modules/filer/dist/filer.min.js.map build/libs/filer/filer.min.js.map
jq '.version' node_modules/filer/package.json > build/libs/filer/version
mkdir -p build/libs/mime
cp -r node_modules/mime/dist/* build/libs/mime
npx rollup -f iife build/libs/mime/src/index.js -o build/libs/mime/mime.iife.js -n mime --exports named

build/libs/mime/src/index.js → build/libs/mime/mime.iife.js...
(!) "this" has been rewritten to "undefined"
https://rollupjs.org/troubleshooting/#error-this-is-undefined
build/libs/mime/src/Mime.js
1: var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
^
2: if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3: if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot re...
...and 1 other occurrence
created build/libs/mime/mime.iife.js in 122ms
jq '.version' node_modules/mime/package.json > build/libs/mime/version
cd native-file-system-adapter; npm i; npm run build

added 295 packages, and audited 296 packages in 7s

80 packages are looking for funding
run npm fund for details

5 vulnerabilities (1 moderate, 4 high)

To address all issues, run:
npm audit fix

Run npm audit for details.

[email protected] build
rm -rf dist && rollup -c rollup.config.js

src/es6.js → dist/output.js...
created dist/output.js in 620ms
mkdir -p build/libs/nfsadapter
mkdir -p build/libs/nfsadapter/adapters
cp native-file-system-adapter/dist/output.js build/libs/nfsadapter/nfsadapter.js
cp native-file-system-adapter/src/adapters/filer.js build/libs/nfsadapter/adapters/anuraadapter.js
cp native-file-system-adapter/src/util.js build/libs/nfsadapter/
cp native-file-system-adapter/src/config.js build/libs/nfsadapter/
mkdir -p build/libs/comlink
cp node_modules/comlink/dist/esm/comlink.min.mjs build/libs/comlink/comlink.min.mjs
cp node_modules/comlink/dist/esm/comlink.min.mjs.map build/libs/comlink/comlink.min.mjs.map
cp node_modules/comlink/dist/umd/comlink.min.js build/libs/comlink/comlink.min.umd.js
cp node_modules/comlink/dist/umd/comlink.min.js.map build/libs/comlink/comlink.min.umd.js.map
sed -i build/libs/comlink/comlink.min.umd.js -e 's|//# sourceMappingURL=comlink.min.js.map|//# sourceMappingURL=comlink.min.umd.js.map|'
jq '.version' node_modules/comlink/package.json > build/libs/comlink/version
mkdir -p build/libs/workbox
npx [email protected] copyLibraries build/libs/workbox/
node:internal/modules/package_json_reader:93
throw error;
^

SyntaxError: Error parsing /workspaces/anuraOS/node_modules/@jridgewell/trace-mapping/package.json: Unexpected end of JSON input
at parse ()
at read (node:internal/modules/package_json_reader:80:16)
at readPackage (node:internal/modules/package_json_reader:141:10)
at resolveExports (node:internal/modules/cjs/loader:630:15)
at Module._findPath (node:internal/modules/cjs/loader:724:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object. (/workspaces/anuraOS/node_modules/@jridgewell/source-map/dist/source-map.cjs:5:20) {
path: '/workspaces/anuraOS/node_modules/@jridgewell/trace-mapping/package.json'
}

Node.js v20.17.0
make: *** [Makefile:58: build/libs/workbox/version] Error 1

@FunnyCorgi
Copy link
Author

I also get the same syntax error when running bash ./codespace-basic-setup.sh

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

1 participant