On Sunday, 8 March 2020 00:13:51 UTC+1, Frank-Rainer Grahl  wrote:
> hjhe...@gmail.com wrote:
> > On Saturday, 7 March 2020 23:27:45 UTC+1, hjh...@gmail.com  wrote:
> >> Hi All,
> >>
> >> I hope someone here is familiar with this issue and can point me in the 
> >> right direction. I have been trying to build Seamonkey 2.53.1 for a while 
> >> now, but to no avail. Whichever mozconfig settings I take, I always get 
> >> kicked off the build with an error on nsstring v0.10.
> >> The error is:
> >>
> >> ______________________________________________________________________________
> >>
> >>     Compiling nsstring v0.1.0 
> >> (/home/hjheins/build/Seamonkey/src/seamonkey-2.53.1/mozilla/xpcom/rust/nsstring)
> >> error: use of deprecated item 'try': use the `?` operator instead
> >>     --> 
> >> /home/hjheins/build/Seamonkey/src/seamonkey-2.53.1/mozilla/xpcom/rust/nsstring/src/lib.rs:138:5
> >>      |
> >> 138 | /     bitflags! {
> >> 139 | |         // While this has the same layout as u16, it cannot be 
> >> passed
> >> 140 | |         // over FFI safely as a u16.
> >> 141 | |         #[repr(C)]
> >> ...   |
> >> 149 | |         }
> >> 150 | |     }
> >>      | |_____^
> >>      |
> >> note: lint level defined here
> >>     --> 
> >> /home/hjheins/build/Seamonkey/src/seamonkey-2.53.1/mozilla/xpcom/rust/nsstring/src/lib.rs:116:9
> >>      |
> >> 116 | #![deny(warnings)]
> >>      |         ^^^^^^^^
> >>      = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]`
> >>      = note: this error originates in a macro outside of the current crate 
> >> (in Nightly builds, run with -Z external-macro-backtrace for more info)
> >>
> >> error: use of deprecated item 'try': use the `?` operator instead
> >>     --> 
> >> /home/hjheins/build/Seamonkey/src/seamonkey-2.53.1/mozilla/xpcom/rust/nsstring/src/lib.rs:138:5
> >>      |
> >> 138 | /     bitflags! {
> >> 139 | |         // While this has the same layout as u16, it cannot be 
> >> passed
> >> 140 | |         // over FFI safely as a u16.
> >> 141 | |         #[repr(C)]
> >> ...   |
> >> 149 | |         }
> >> 150 | |     }
> >>      | |_____^
> >>      |
> >>      = note: this error originates in a macro outside of the current crate 
> >> (in Nightly builds, run with -Z external-macro-backtrace for more info)
> >>
> >> error: use of deprecated item 'try': use the `?` operator instead
> >>     --> 
> >> /home/hjheins/build/Seamonkey/src/seamonkey-2.53.1/mozilla/xpcom/rust/nsstring/src/lib.rs:154:5
> >>      |
> >> 154 | /     bitflags! {
> >> 155 | |         // While this has the same layout as u16, it cannot be 
> >> passed
> >> 156 | |         // over FFI safely as a u16.
> >> 157 | |         #[repr(C)]
> >> ...   |
> >> 161 | |         }
> >> 162 | |     }
> >>      | |_____^
> >>      |
> >>      = note: this error originates in a macro outside of the current crate 
> >> (in Nightly builds, run with -Z external-macro-backtrace for more info)
> >>
> >> error: use of deprecated item 'try': use the `?` operator instead
> >>     --> 
> >> /home/hjheins/build/Seamonkey/src/seamonkey-2.53.1/mozilla/xpcom/rust/nsstring/src/lib.rs:154:5
> >>      |
> >> 154 | /     bitflags! {
> >> 155 | |         // While this has the same layout as u16, it cannot be 
> >> passed
> >> 156 | |         // over FFI safely as a u16.
> >> 157 | |         #[repr(C)]
> >> ...   |
> >> 161 | |         }
> >> 162 | |     }
> >>      | |_____^
> >>      |
> >>      = note: this error originates in a macro outside of the current crate 
> >> (in Nightly builds, run with -Z external-macro-backtrace for more info)
> >>
> >> error: aborting due to 4 previous errors
> >>
> >> error: could not compile `nsstring`.
> >>
> >> _______________________________________________________________________________
> >>
> >> Could someone please tell me what I am doing wrong? I have cargo and rustc 
> >> installed, and am compiling with gcc.
> >>
> >> Thank you for any input!
> >>
> >> regards,
> >>
> >> Hendrik-Jan Heins
> > 
> > Not sure if it is impportant: gcc on Arch is 9.2.0, on Debian 8.3.0.
> > But both produce the same error (as mentioned above)
> > 
> 
> Use rust 1.36. rust 1.37 might also work.
> 
> FRG

Thank you FRG!

For anyone with the same issue:
I ended up installing "rustup"
Within rustup, I installed and set rustc 1.36.0 as default
Then I built the package and after quite some time (single thread as I needed 
to see where it would potentially fail), I now have a working seamonkey-2.53.1 
on Arch.
_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to