NetSys / NetBricks

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

compilation errors on build #106

Open seankwalker opened 5 years ago

seankwalker commented 5 years ago

on Ubuntu 18.04 LTS, using Rust nightly,

error[E0588]: packed type cannot transitively contain a `[repr(align)]` type
  --> framework/src/shared_state/directory.rs:13:1
   |
13 | / pub struct DirectoryHeader {
14 | |     entries: AtomicUsize,
15 | |     // Used to signal that snapshotting is in progress.
16 | |     current_version: AtomicUsize,
17 | |     committed_version: AtomicUsize,
18 | |     length: usize,
19 | | }
   | |_^
chenIshi commented 5 years ago

Same problem on Ubuntu 16.04, not able to compile e2d2

error[E0588]: packed type cannot transitively contain a [repr(align)] type --> framework/src/shared_state/directory.rs:13:1 | 13 | / pub struct DirectoryHeader { 14 | | entries: AtomicUsize, 15 | | // Used to signal that snapshotting is in progress. 16 | | current_version: AtomicUsize, 17 | | committedversion: AtomicUsize, 18 | | length: usize, 19 | | } | |^

YangZhou1997 commented 5 years ago

Have anyone solved this problem? It is possible to be solved by using some old packages?

seankwalker commented 5 years ago

@YangZhou1997 I ended up using a fork (specifically this one); if you'd rather not, it'd probably be not too awful to go through the commits of a fork which builds and see how they addressed the build errors

YangZhou1997 commented 5 years ago

Thanks @seankwalker !

I followed your rep and run it successfully. In contrast, there seems something wrong in the latest comcast's version. Hope to fix them and do local deployment in few days.