Skip to content

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

@luodaidong

Description

@luodaidong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions