-
Notifications
You must be signed in to change notification settings - Fork 93
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
Building alloc
does not work with included compiler_builtins
#214
Comments
With latest To fix it, I removed all references to diff --git a/Xargo.toml b/Xargo.toml
index a16927a..cb49458 100644
--- a/Xargo.toml
+++ b/Xargo.toml
@@ -3,9 +3,3 @@ alloc = {}
[target.x86_64-rxinu.dependencies]
alloc = {}
-
-[dependencies.core]
-stage = 0
-
-[dependencies.compiler_builtins]
-stage = 1
diff --git a/src/lib.rs b/src/lib.rs
index dae5ba2..dc9ec7f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -4,7 +4,6 @@
#![feature(const_fn)]
#![feature(const_max_value)]
#![feature(const_unique_new, const_atomic_usize_new)]
-#![feature(compiler_builtins_lib)]
#![feature(const_fn)]
#![feature(lang_items)]
#![feature(naked_functions)]
@@ -25,7 +24,6 @@ extern crate lazy_static;
extern crate once;
extern crate bit_field;
-extern crate compiler_builtins;
extern crate linked_list_allocator;
extern crate multiboot2;
extern crate rlibc; Current
|
@robert-w-gries That's also what I did. |
I see that my workaround does not work if you want to use the My project uses the |
I created a simplified fork of xargo at rust-osdev/cargo-xbuild, which just always compiles core, compiler_builtins and alloc without configuration ability. The advantage of hard-coding those is that we can hack the alloc compilation so that it uses compiler_builtins with the "mem" feature. @lachlansneff @robert-w-gries Could you try if this works for you? |
Was there anything else you wanted me to test? I'm not sure if I need to do something more on my end to make sure the following works:
|
You should be able to remove the |
The
compiler_builtins
crate is now explicitly injected. When building thealloc
crate via a[dependencies.alloc]
key in theXargo.toml
, a “multiple matching crates forcompiler_builtins
” error occurs. The reason is thatalloc
defines its owncompiler_builtins
dependency. Thuscompiler_builtins
in compiled twice, once as version0.0.0
and once as version0.1.0
.The text was updated successfully, but these errors were encountered: