Open realroot2185 opened 8 months ago
Seems that this is a issue with compiling mlua. Not sure why this occurs because we aren't using mlua. I can't test it right now because im on Windows, and im not sure i can very soon. I'll take a look when i can :)
Sorry for the troubles
I have a question about the status of the project. I do not see a release, is it in alpha or is it ready?
Its no where near neither. Currently, Strata isn't usable for daily driving. I have yet to implement a Udev backend which allows for launching from the TTY. There are a lot of bugs especially with tiling. And some really basic features need to be added before its some what usable.
But the good thing is a lot of these are pretty easy to implement. The only limiting factor is time. Currently, only me and @MurdeRM3L0DY are actively working on Strata. We both have exams and stuff which makes finding time to work on this difficult. However I'll get some time during my holidays which start next month.
Overall, it will take a few weeks worth of work. Hope its worth the wait 😄
Hey @realroot2185 i tried compiling Strata on my machine and it works perfectly fine. So im not sure why this is happening. Can you try pulling in the latest main
and try compiling again. Try running cargo run -- -b winit
.
Compiling xdg v2.5.2
Compiling strata v0.0.1 (/path/to/strata)
error: rustc interrupted by SIGSEGV, printing backtrace
/usr/lib/librustc_driver-d2f16079c00fc25e.so(+0x7d98e6)[0x779ca7bd98e6]
/usr/lib/libc.so.6(+0x3c770)[0x779ca725a770]
/usr/lib/libLLVM-17.so(_ZN4llvm9MCContext12createSymbolENS_9StringRefEbb+0x44)[0x779ca175ab24]
/usr/lib/libLLVM-17.so(_ZN4llvm9MCContext16createTempSymbolERKNS_5TwineEb+0x110)[0x779ca175b470]
/usr/lib/libLLVM-17.so(_ZN4llvm9DwarfFile8addRangeERKNS_16DwarfCompileUnitENS_11SmallVectorINS_9RangeSpanELj2EEE+0x4b)[0x779ca0570ddb]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit17addScopeRangeListERNS_3DIEENS_11SmallVectorINS_9RangeSpanELj2EEE+0xd9)[0x779ca0533729]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit23attachRangesOrLowHighPCERNS_3DIEENS_11SmallVectorINS_9RangeSpanELj2EEE+0x6f)[0x779ca053668f]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit23attachRangesOrLowHighPCERNS_3DIEERKNS_15SmallVectorImplISt4pairIPKNS_12MachineInstrES7_EEE+0x427)[0x779ca05371c7]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit24constructLexicalScopeDIEEPNS_12LexicalScopeE+0xa3)[0x779ca053a103]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit17constructScopeDIEEPNS_12LexicalScopeERNS_3DIEE+0x5b)[0x779ca053d93b]
### cycle encountered after 10 frames with period 11
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
### recursed 22 times
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
/usr/lib/libLLVM-17.so(_ZN4llvm16DwarfCompileUnit25createAndAddScopeChildrenEPNS_12LexicalScopeERNS_3DIEE+0xb4c)[0x779ca053c14c]
note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `strata` (bin "strata")
Caused by:
process didn't exit successfully: `rustc --crate-name strata --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=119 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=4fd6d48ea2a4d5ee -C extra-filename=-4fd6d48ea2a4d5ee --out-dir /path/to/strata/target/debug/deps -C incremental=/path/to/strata/target/debug/incremental -L dependency=/path/to/strata/target/debug/deps --extern anyhow=/path/to/strata/target/debug/deps/libanyhow-ef09dfc4af11e07e.rlib --extern bitflags=/path/to/strata/target/debug/deps/libbitflags-ccac00d69696426c.rlib --extern chrono=/path/to/strata/target/debug/deps/libchrono-9d6197320a9d7b91.rlib --extern clap=/path/to/strata/target/debug/deps/libclap-284a6ff1f2e4cc9a.rlib --extern colored=/path/to/strata/target/debug/deps/libcolored-867867eb41e213b2.rlib --extern crossbeam_channel=/path/to/strata/target/debug/deps/libcrossbeam_channel-dfb4664b6d47b603.rlib --extern gc_arena=/path/to/strata/target/debug/deps/libgc_arena-a8d71eb1af94ebb0.rlib --extern log=/path/to/strata/target/debug/deps/liblog-f0495f5908086b20.rlib --extern once_cell=/path/to/strata/target/debug/deps/libonce_cell-c323240b5af2c74d.rlib --extern parking_lot=/path/to/strata/target/debug/deps/libparking_lot-e959d75894119886.rlib --extern piccolo=/path/to/strata/target/debug/deps/libpiccolo-50fbf95533646284.rlib --extern piccolo_util=/path/to/strata/target/debug/deps/libpiccolo_util-be7f0274d0281b8f.rlib --extern smart_default=/path/to/strata/target/debug/deps/libsmart_default-25f5deec1b8c8f7e.so --extern smithay=/path/to/strata/target/debug/deps/libsmithay-907f0512151c49d6.rlib --extern smithay_drm_extras=/path/to/strata/target/debug/deps/libsmithay_drm_extras-25da944fbd5276a9.rlib --extern strata_core=/path/to/strata/target/debug/deps/libstrata_core-e0989e12afce772c.rlib --extern strata_derive=/path/to/strata/target/debug/deps/libstrata_derive-f3f901c6d869c696.so --extern strum=/path/to/strata/target/debug/deps/libstrum-9f9679c4aa05868b.rlib --extern tokio=/path/to/strata/target/debug/deps/libtokio-57785c75d17a9af0.rlib --extern tracing_appender=/path/to/strata/target/debug/deps/libtracing_appender-950c5ff51735c786.rlib --extern tracing_subscriber=/path/to/strata/target/debug/deps/libtracing_subscriber-d9b57ede5768cc65.rlib --extern xdg=/path/to/strata/target/debug/deps/libxdg-943f86c258016709.rlib -L native=/usr/lib -L native=/usr/lib -L native=/usr/lib -L native=/usr/lib -L native=/path/to/strata/target/debug/build/mlua-sys-17c3b22a60647feb/out/luajit-build/lib` (signal: 11, SIGSEGV: invalid memory reference)
Should I report a bug at https://github.com/rust-lang/rust?
Probably should, yeah. Also what version of Rust are you on? You're using Nightly right?
rustc -V rustc 1.76.0 (07dca489a 2024-02-04) (Arch Linux rust 1:1.76.0-2)
No I use stable I think, testing repo is nightly I guess.
Not sure if this bug is already reported. How do I check?
First clear the Cargo cache with cargo clean
. Then install Rust Nightly using rustup toolchain add nightly
. Now cd into the Strata repo. Then check the version. We have a rust-toolchain.toml
file in the root which sets the correct toolchain version to nightly. You should be on 1.78.0-nightly
Will the project always use nightly?
Im not sure. I mainly started using Nightly for some extra formatting options with rustfmt. I dont think we use any unstable features in the actual code. So it should techinically compile fine with Stable. Although i havent tested that
I'd like to try in the future when strata is ready for daily driving.
Can I use world/rust 1:1.76.0-2 [installed]
?
By then, most probably yes.
I quickly made a PKGBUILD to make a package:
But I have an error: