Skip to content

Snapshot 3391630 fails to build on DragonFly: liblibc - binary operation + cannot be applied #30596

@mneumann

Description

@mneumann
Contributor

When I compile I get the following error:

src/liblibc/src/unix/bsd/freebsdlike/dragonfly.rs:3:32: 3:36 error: binary operation `+` cannot be applied to type `_` [E0369]
src/liblibc/src/unix/bsd/freebsdlike/dragonfly.rs:3 pub const SIGSTKSZ: ::size_t = 8192 /* MINSIGSTKSZ */ + 32768;
                                                                                   ^~~~
src/liblibc/src/macros.rs:26:9: 26:75 note: in this expansion of __cfg_if_apply! (defined in src/liblibc/src/macros.rs)

I can fix it by performing the addition myself and expanding it to: 40960

Activity

huonw

huonw commented on Jan 5, 2016

@huonw
Member

@dhuseby is the brokenness #30628 refers to?

dhuseby

dhuseby commented on Jan 6, 2016

@dhuseby

@mneumann if you try building at the most recent snapshot revision 3391630, you'll see different errors.

dhuseby

dhuseby commented on Jan 7, 2016

@dhuseby

@mneumann I'm getting a bunch of errors like this:

rustc: x86_64-unknown-dragonfly/stage2/lib/rustlib/x86_64-unknown-dragonfly/lib/libsyntax
../src/libsyntax/util/interner.rs:95:34: 95:44 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/interner.rs:95 #[derive(Clone, PartialEq, Hash, PartialOrd)]
                                                                      ^~~~~~~~~~
../src/libsyntax/util/interner.rs:95:34: 95:44 note: in this expansion of #[derive_PartialOrd] (defined in ../src/libsyntax/util/interner.rs)
../src/libsyntax/util/interner.rs:95:28: 95:32 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/interner.rs:95 #[derive(Clone, PartialEq, Hash, PartialOrd)]
                                                                ^~~~
../src/libsyntax/util/interner.rs:95:28: 95:32 note: in this expansion of #[derive_Hash] (defined in ../src/libsyntax/util/interner.rs)
../src/libsyntax/util/interner.rs:95:17: 95:26 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/interner.rs:95 #[derive(Clone, PartialEq, Hash, PartialOrd)]
                                                     ^~~~~~~~~
../src/libsyntax/util/interner.rs:95:17: 95:26 note: in this expansion of #[derive_PartialEq] (defined in ../src/libsyntax/util/interner.rs)
../src/libsyntax/util/interner.rs:95:10: 95:15 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/interner.rs:95 #[derive(Clone, PartialEq, Hash, PartialOrd)]
                                              ^~~~~
../src/libsyntax/util/interner.rs:95:10: 95:15 note: in this expansion of #[derive_Clone] (defined in ../src/libsyntax/util/interner.rs)
../src/libsyntax/util/parser.rs:16:28: 16:30 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/parser.rs:16 #[derive(Debug, PartialEq, Eq)]
                                                              ^~
../src/libsyntax/util/parser.rs:16:28: 16:30 note: in this expansion of #[derive_Eq] (defined in ../src/libsyntax/util/parser.rs)
../src/libsyntax/util/parser.rs:16:17: 16:26 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/parser.rs:16 #[derive(Debug, PartialEq, Eq)]
                                                   ^~~~~~~~~
../src/libsyntax/util/parser.rs:16:17: 16:26 note: in this expansion of #[derive_PartialEq] (defined in ../src/libsyntax/util/parser.rs)
../src/libsyntax/util/parser.rs:16:10: 16:15 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/parser.rs:16 #[derive(Debug, PartialEq, Eq)]
                                            ^~~~~
../src/libsyntax/util/parser.rs:16:10: 16:15 note: in this expansion of #[derive_Debug] (defined in ../src/libsyntax/util/parser.rs)
../src/libsyntax/util/parser.rs:66:28: 66:30 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/parser.rs:66 #[derive(Debug, PartialEq, Eq)]
                                                              ^~
../src/libsyntax/util/parser.rs:66:28: 66:30 note: in this expansion of #[derive_Eq] (defined in ../src/libsyntax/util/parser.rs)
../src/libsyntax/util/parser.rs:66:17: 66:26 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/parser.rs:66 #[derive(Debug, PartialEq, Eq)]
                                                   ^~~~~~~~~
../src/libsyntax/util/parser.rs:66:17: 66:26 note: in this expansion of #[derive_PartialEq] (defined in ../src/libsyntax/util/parser.rs)
../src/libsyntax/util/parser.rs:66:10: 66:15 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/util/parser.rs:66 #[derive(Debug, PartialEq, Eq)] 
                                            ^~~~~
../src/libsyntax/util/parser.rs:66:10: 66:15 note: in this expansion of #[derive_Debug] (defined in ../src/libsyntax/util/parser.rs)
../src/libsyntax/diagnostics/registry.rs:13:10: 13:15 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/diagnostics/registry.rs:13 #[derive(Clone)]
                                                     ^~~~~
../src/libsyntax/diagnostics/registry.rs:13:10: 13:15 note: in this expansion of #[derive_Clone] (defined in ../src/libsyntax/diagnostics/registry.rs)
../src/libsyntax/diagnostics/metadata.rs:31:37: 31:51 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/diagnostics/metadata.rs:31 #[derive(PartialEq, RustcDecodable, RustcEncodable)]
                                                                                ^~~~~~~~~~~~~~
../src/libsyntax/diagnostics/metadata.rs:31:37: 31:51 note: in this expansion of #[derive_RustcEncodable] (defined in ../src/libsyntax/diagnostics/metadata.rs)
../src/libsyntax/diagnostics/metadata.rs:31:21: 31:35 error: unknown `allow` attribute: `unused_qualifications`, #[deny(unknown_lints)] on by default
../src/libsyntax/diagnostics/metadata.rs:31 #[derive(PartialEq, RustcDecodable, RustcEncodable)]
                                                                ^~~~~~~~~~~~~~
dhuseby

dhuseby commented on Jan 7, 2016

@dhuseby

AFAICT, for some reason the allow attribute is not defined/enabled in this build. I'm trying to figure out where the attribute code is defined in the compiler so I can figure out why #[allow] is unknown.

dhuseby

dhuseby commented on Jan 7, 2016

@dhuseby

Oh! it's the unused_qualifications allow attribute that is missing. Hrm, what is this error happening only on DragonflyBSD at this revision?

mneumann

mneumann commented on Jan 8, 2016

@mneumann
ContributorAuthor

@dhuseby : IIRC I built 3391630, and for me it worked. With which version are you building the snapshot? Maybe we use different version of rust?

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

@mneumann it should be downloading the last snapshot 1af31d4 to build it with.

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

(I don't have rust installed on the host)

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

@mneumann if you can successfully build a snapshot at 3391630, then clone my https://github.com/dhuseby/rust-manual-snapshots repo, add it there, send me a PR and then send a PR to rust and I'll merge it. Just ping @alexcrichton with the link to the file in the rust-manual-snapshots repo and ask him to upload it.

mneumann

mneumann commented on Jan 8, 2016

@mneumann
ContributorAuthor

@dhuseby : I posted a link to my snapshot here #30643 (you can read in that thread the problem I encountered). http://www.ntecs.de/downloads/rust/rust-stage0-2015-12-18-3391630-dragonfly-x86_64-e74d79488e88ac2de3bd03afd5959d2ae6e2b628.tar.bz2. I will clone your repo and push it there.

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

@mneumann i'll do it, it's morning for me and I can merge it all.

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

@mneumann i saw your PR, did you make a PR for rust to update src/snapshot.txt ?

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

@mneumann it looks like you haven't done a rust PR yet. i'll do that.

dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby
dhuseby

dhuseby commented on Jan 8, 2016

@dhuseby

@mneumann what version of dragonfly bsd are you running? i recently updated my build machine to the latest 4.4 version. maybe that's why you can build it and i can't?

mneumann

mneumann commented on Jan 9, 2016

@mneumann
ContributorAuthor

@dhuseby I am running HEAD, but at the time I was compiling, it should have been pretty close to 4.4.

dhuseby

dhuseby commented on Jan 18, 2016

@dhuseby

fixed by #30781

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @mneumann@huonw@dhuseby

        Issue actions

          Snapshot 3391630 fails to build on DragonFly: liblibc - binary operation + cannot be applied · Issue #30596 · rust-lang/rust