-
Notifications
You must be signed in to change notification settings - Fork 112
chore: bump nixpkgs
to recently released
#4793
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
base: master
Are you sure you want to change the base?
Conversation
``` wasm-ld -o mo-rts-non-incremental-debug.wasm \ --import-memory --shared --no-entry --gc-sections --export=__wasm_call_ctors --export=__wasm_apply_data_relocs --export=memcmp --export=tan --export=asin --export=acos --export=atan --export=atan2 --export=pow --export=sin --export=cos --export=exp --export=fmod --export=log --whole-archive --experimental-pic \ _build/wasm32/libmotoko_rts_debug.a _build/libtommath_wasm32.a wasm-ld: error: symbol exported via --export not found: tan wasm-ld: error: symbol exported via --export not found: asin wasm-ld: error: symbol exported via --export not found: acos wasm-ld: error: symbol exported via --export not found: atan wasm-ld: error: symbol exported via --export not found: atan2 wasm-ld: error: symbol exported via --export not found: pow wasm-ld: error: symbol exported via --export not found: sin wasm-ld: error: symbol exported via --export not found: cos wasm-ld: error: symbol exported via --export not found: exp wasm-ld: error: symbol exported via --export not found: log ```
not sure why this is necessary...
this compiles and test apparently, and is basis for upcoming iterations
rts/motoko-rts/Cargo.toml
Outdated
motoko-rts-macros = { path = "../motoko-rts-macros" } | ||
unicode-ident = "=1.0.16" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get rid of this?
@@ -38,3 +38,26 @@ fn written_length(buffer: &[u8]) -> usize { | |||
} | |||
buffer.len() | |||
} | |||
|
|||
#[no_mangle] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how were these part of the library before?
@@ -7,7 +7,8 @@ | |||
proc_macro_hygiene, | |||
// // We do not need simd but this flag enables `core::arch:wasm64`. | |||
// // See https://github.com/rust-lang/rust/issues/90599 | |||
simd_wasm64 | |||
simd_wasm64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
Note: There is a SIMD-Cargo.toml
in the lib/rustlib/src/rust/library/portable-simd
of the nightly
6dc38ef
to
8f8b2e6
Compare
# (self: super: { | ||
# rustPlatform_moz_stable = self.makeRustPlatform rec { | ||
# rustcX = super.rustc; | ||
# rustc = self.moz_overlay.latest.rustChannels.stable.rust // { targetPlatforms = super.rustc.targetPlatforms; badTargetPlatforms = super.rustc.badTargetPlatforms; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which version would this be?
"description": "Nix Packages collection & NixOS", | ||
"homepage": "", | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "0da3c44a9460a26d2025ec3ed2ec60a895eb1114", | ||
"sha256": "1n435wya14pbl04g6n4zrqaslpik4xq0fv1i2g2mz8sq3dqg7dk0", | ||
"rev": "afafb10992acc83f62461068e42a295586b89581", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-bump this!
@@ -36,7 +36,9 @@ enhanced_orthogonal_persistence = ["incremental_gc"] | |||
|
|||
[dependencies] | |||
libc = { version = "0.2.139", default-features = false, optional = true } | |||
libm = "=0.2.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pins it. Done by cargo add libm@=0.2.7
, because we only have a few versions available, following the vendoring of the crates that the nightly pulls in.
rustc = rustc-nightly; | ||
cargo = cargo-nightly; | ||
rustPlatform-nightly = self.makeRustPlatform rec { | ||
rustcX = super.rustc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rustcX = super.rustc; |
remove
Gotchas: