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

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

Closed
mneumann opened this issue Dec 28, 2015 · 17 comments

Comments

@mneumann
Copy link
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

@huonw
Copy link
Member

huonw commented Jan 5, 2016

@dhuseby is the brokenness #30628 refers to?

@huonw huonw added the A-bsd label Jan 5, 2016
@dhuseby
Copy link

dhuseby commented Jan 6, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 7, 2016

@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
Copy link

dhuseby commented Jan 7, 2016

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
Copy link

dhuseby commented Jan 7, 2016

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

@mneumann
Copy link
Contributor Author

mneumann commented Jan 8, 2016

@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
Copy link

dhuseby commented Jan 8, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 8, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 8, 2016

@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
Copy link
Contributor Author

mneumann commented Jan 8, 2016

@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
Copy link

dhuseby commented Jan 8, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 8, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 8, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 8, 2016

@mneumann PR #30781

@dhuseby
Copy link

dhuseby commented Jan 8, 2016

@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
Copy link
Contributor Author

mneumann commented Jan 9, 2016

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

@dhuseby
Copy link

dhuseby commented Jan 18, 2016

fixed by #30781

@dhuseby dhuseby closed this as completed Jan 18, 2016
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

3 participants