On Sunday, 8 March 2020 16:20:46 UTC+1, Frank-Rainer Grahl  wrote:
> Hendrik-Jan Heins wrote:
> > On Sunday, 8 March 2020 00:13:51 UTC+1, Frank-Rainer Grahl  wrote:
> >> [email protected] wrote:
> >>> On Saturday, 7 March 2020 23:27:45 UTC+1, [email protected]  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.
> > 
> 
> We are trying to get latest rust support into 2.53.2 at least for Linux. 
> Unfortunately rust is more or less alpha/early beta quality wrt features and 
> deprecation and a constantly moving target.
> 
> FRG

Rust is a pain to have as a dependancy regardless; Every distro has ist own 
versions, and rustup is by no means a standard that works with every (any?) 
packaging tool. Arch is fairly flexible here, but for instance Debian is a real 
issue: I can not create a complete, from source rebuildable package according 
to the Debian package guidelines with this thing in there... 

By the way: thank you for telling me I needed rust 1.36.0, but how would I have 
been able to find out myself?

Hendrik-Jan
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to