NetSys / NetBricks

NetBricks: A new network function framework based on Rust.
ISC License
464 stars 75 forks source link

when I am compiling e2d2 , there are some errors, #97

Open luodaidong opened 6 years ago

luodaidong commented 6 years ago

I use clang 3.9 on Ubuntu, when compiling e2d2 , there are errors like following:

SCTP library found ~/NetBricks/framework ~/NetBricks Compiling e2d2 v0.2.0 (file:///home/luo/NetBricks/framework) error[E0432]: unresolved import std::alloc::Alloc --> framework/src/allocators/cache_aligned.rs:1:24 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^ no Alloc in alloc

error[E0432]: unresolved import std::alloc::Global --> framework/src/allocators/cache_aligned.rs:1:31 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^^ no Global in alloc

error[E0432]: unresolved import std::alloc::Layout --> framework/src/allocators/cache_aligned.rs:1:39 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^^ no Layout in alloc

error[E0432]: unresolved import std::alloc::Opaque --> framework/src/allocators/cache_aligned.rs:1:47 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^^ no Opaque in alloc

error[E0603]: module alloc is private --> framework/src/allocators/cache_aligned.rs:1:18 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^

error[E0603]: module alloc is private --> framework/src/allocators/cache_aligned.rs:1:24 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^

error[E0603]: module alloc is private --> framework/src/allocators/cache_aligned.rs:1:31 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^^

error[E0603]: module alloc is private --> framework/src/allocators/cache_aligned.rs:1:39 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^^

error[E0603]: module alloc is private --> framework/src/allocators/cache_aligned.rs:1:47 | 1 | use std::alloc::{self, Alloc, Global, Layout, Opaque}; | ^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:2:1 | 2 | #![feature(asm)] | ^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:3:1 | 3 | #![feature(log_syntax)] | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:4:1 | 4 | #![feature(box_syntax)] | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:5:1 | 5 | #![feature(specialization)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:6:1 | 6 | #![feature(slice_concat_ext)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:7:1 | 7 | #![feature(fnbox)] | ^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:8:1 | 8 | #![feature(alloc)] | ^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:9:1 | 9 | #![feature(heap_api)] | ^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:10:1 | 10 | #![feature(unique)] | ^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:11:1 | 11 | #![feature(const_fn)] | ^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:13:1 | 13 | #![feature(ptr_internals)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:15:1 | 15 | #![feature(allocator_api)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel --> framework/src/lib.rs:17:1 | 17 | #![feature(integer_atomics)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 22 previous errors

error: Could not compile e2d2.

To learn more, run the command again with --verbose.

luodaidong commented 6 years ago

when I install clang-6.0 , The problem is still exist.

rida914-4 commented 6 years ago

@luodaidong Were you able to resolve the issue? I am facing the same error.

chenIshi commented 5 years ago

Same problem when using clang-6.0 I am trying to compile llvm-3.7.1 from source since build.sh indicates that it use llvm-3.7.0 to build ?