Skip to content
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

rustc with correct version not working when compiling external/libgotcha #1

Open
yl3469 opened this issue Dec 29, 2021 · 0 comments
Open

Comments

@yl3469
Copy link

yl3469 commented Dec 29, 2021

Dear authors:

Thanks for providing such a good codebase! I really enjoyed the idea.
I have a question: When I did "make" under external/libgotcha, one issue pops up:

Could you help shed some light?

Thank you very much!

rustc -Clink-args="" --edition 2018 -Copt-level=2  --cfg 'stable="once_is_completed"' --crate-type lib --emit obj -o gotcha.o libgotcha.rs
error[E0658]: unions with non-`Copy` fields other than `ManuallyDrop<T>` are unstable
 --> handle.rs:5:125748
  |
5 | ...b union Dl_serinfo__bindgen_ty_1 { pub dls_serpath : __IncompleteArrayField < Dl_serpath > , pub __dls_serpath_pad : [ Dl_serp...
  |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #55149 <https://github.com/rust-lang/rust/issues/55149> for more information

error[E0204]: the trait `Copy` may not be implemented for this type
   --> goot.rs:269:17
    |
269 | #[derive(Debug, Copy, Clone)]
    |                 ^^^^
...
273 |     pub code: __IncompleteArrayField<u8>,
    |     ------------------------------------ this field does not implement `Copy`
    |
    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0204]: the trait `Copy` may not be implemented for this type
 --> handle.rs:5:125694
  |
5 | ...rive ( Copy , Clone ) ] pub union Dl_serinfo__bindgen_ty_1 { pub dls_serpath : __IncompleteArrayField < Dl_serpath > , pub __d...
  |           ^^^^                                                  ------------------------------------------------------- this field does not implement `Copy`
  |
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 3 previous errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant