Re: Build error on FreeBSD
BERTRAND Joël a écrit : > Frank-Rainer Grahl a écrit : >> Best to install an additional rust version. 1.36 is tested. >> >> >> rustup toolchain list should list the installed ones and >> >> rustup toolchain install 1.36- installs a second one. >> >> Can be used with >> >> rustup default 1.36.0- >> > Only rust 1.38 is available in ports. Thus, I have tried to build rust > 1.36 (and 1.37) from sources. Rust installation fails on FreeBSD, but I have modified build/mozconfig.rust : oot@pythagore:~/seamonkey/seamonkey-2.53.1b1 # cat build/mozconfig.rust # Options to enable rust in automation builds. TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir} # Tell configure to use the tooltool rustc. #RUSTC="$TOOLTOOL_DIR/rustc/bin/rustc" RUSTC=/root/seamonkey/rust/build/x86_64-unknown-freebsd/stage2/bin/rustc CARGO="$TOOLTOOL_DIR/rustc/bin/cargo" ac_add_options --enable-rust-simd and rust source files are built without error. Some cpp files cannot be compiled as WEBRTC_POSIX and WEBRTC_BUILD_LIBEVENT are not set. I have set both defines in several headers but I suspect FreeBSD is not correctly defined to set these values. Best regards, JKB ___ support-seamonkey mailing list support-seamonkey@lists.mozilla.org https://lists.mozilla.org/listinfo/support-seamonkey
Re: Build error on FreeBSD
Frank-Rainer Grahl a écrit : > Best to install an additional rust version. 1.36 is tested. > > > rustup toolchain list should list the installed ones and > > rustup toolchain install 1.36- installs a second one. > > Can be used with > > rustup default 1.36.0- > Only rust 1.38 is available in ports. Thus, I have tried to build rust 1.36 (and 1.37) from sources. ./x.py build runs as expected but ./x.py install fails with : thread 'main' panicked at 'fs::remove_dir_all(dir) failed with Directory not empty (os error 66)', src/bootstrap/lib.rs:1307:9 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. failed to run: /root/seamonkey/rust/build/bootstrap/debug/bootstrap install I'm not sure I can build rust 1.36 on this workstation. I suppose it will be easy to fix mozilla/third_party/rust/cssparser/src/parser.rs. Regards, JKB ___ support-seamonkey mailing list support-seamonkey@lists.mozilla.org https://lists.mozilla.org/listinfo/support-seamonkey
Re: Build error on FreeBSD
Best to install an additional rust version. 1.36 is tested. rustup toolchain list should list the installed ones and rustup toolchain install 1.36- installs a second one. Can be used with rustup default 1.36.0- Also use ac_add_options --disable-webrender ac_add_options --disable-stylo FRG BERTRAND Joël wrote: Hello, As seamonkey is not available in FreeBSD ports, I have tried to build 2.53.1 from sources. gmake -f client.mk build aborts with following rust (rust 1.38) error: error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed --> /root/seamonkey/seamonkey-2.53.1b1/mozilla/third_party/rust/cssparser/src/parser.rs:388:17 | 364 | pub fn next_including_whitespace_and_comments( self) -> Result<<'i>, BasicParseError<'i>> { | - let's call the lifetime of this reference `'1` ... 377 | Some(ref cached_token) if cached_token.start_position == token_start_position => { | borrow of `self.input.cached_token` occurs here ... 388 | self.input.cached_token = Some(CachedToken { | ^^^ assignment to borrowed `self.input.cached_token` occurs here ... 400 | Ok(token) | - returning this value requires that `self.input.cached_token.0` is borrowed for `'1` How can I fix this issue to build Seamonkey on FreeBSD ? I have found some patches to fix this error but no one seems to works. Best regards, JKB ___ support-seamonkey mailing list support-seamonkey@lists.mozilla.org https://lists.mozilla.org/listinfo/support-seamonkey
Build error on FreeBSD
Hello, As seamonkey is not available in FreeBSD ports, I have tried to build 2.53.1 from sources. gmake -f client.mk build aborts with following rust (rust 1.38) error: error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed --> /root/seamonkey/seamonkey-2.53.1b1/mozilla/third_party/rust/cssparser/src/parser.rs:388:17 | 364 | pub fn next_including_whitespace_and_comments( self) -> Result<<'i>, BasicParseError<'i>> { | - let's call the lifetime of this reference `'1` ... 377 | Some(ref cached_token) if cached_token.start_position == token_start_position => { | borrow of `self.input.cached_token` occurs here ... 388 | self.input.cached_token = Some(CachedToken { | ^^^ assignment to borrowed `self.input.cached_token` occurs here ... 400 | Ok(token) | - returning this value requires that `self.input.cached_token.0` is borrowed for `'1` How can I fix this issue to build Seamonkey on FreeBSD ? I have found some patches to fix this error but no one seems to works. Best regards, JKB ___ support-seamonkey mailing list support-seamonkey@lists.mozilla.org https://lists.mozilla.org/listinfo/support-seamonkey