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

Compilation error with sgx enabled on unix/windows #175

Closed
matevz opened this issue Jan 30, 2019 · 1 comment
Closed

Compilation error with sgx enabled on unix/windows #175

matevz opened this issue Jan 30, 2019 · 1 comment

Comments

@matevz
Copy link

matevz commented Jan 30, 2019

I'm having the following compilation error when compiling with target_family=unix and target_env=sgx flags enabled:

error[E0428]: the name `inner` is defined multiple times
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.42/src/sys.rs:351:1
    |
275 | mod inner {
    | --------- previous definition of the module `inner` here
...
351 | mod inner {
    | ^^^^^^^^^ `inner` redefined here
    |
= note: `inner` must be defined only once in the type namespace of this module
@matevz
Copy link
Author

matevz commented Jan 30, 2019

It seems a trivial fix is required in https://github.com/rust-lang-deprecated/time/blob/master/src/sys.rs#L350
#[cfg(unix)] -> #[cfg(all(unix, not(target_env = "sgx")))]
and in https://github.com/rust-lang-deprecated/time/blob/master/src/sys.rs#L690
#[cfg(windows)] -> #[cfg(all(windows, not(target_env = "sgx")))]

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

2 participants