Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
03-29-2022, 04:29 PM
#1
Member
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226
mozjs91 build fail on Slackware 15.0
Hiya guys,
I would like to build mozjs91 for Slackware 15.0, because mozjs78 is too old for Gnome 42.
I just customized the SlackBuild script and updated all Fedora patches.
Code:
warning: unnecessary `unsafe` block
--> /tmp/firefox-91.7.0/third_party/rust/encoding_rs/src/mem.rs:1658:8
|
1658 | if unsafe { likely(read == src.len()) } {
| ^^^^^^ unnecessary `unsafe` block
warning: `encoding_rs` (lib) generated 44 warnings (1 duplicate)
Fresh encoding_c v0.9.7
Fresh encoding_c_mem v0.2.5
warning: `extern` fn uses type `char`, which is not FFI-safe
--> /tmp/firefox-91.7.0/third_party/rust/encoding_c_mem/src/lib.rs:198:55
|
198 | pub unsafe extern "C" fn encoding_mem_is_char_bidi(c: char) -> bool {
| ^^^^ not FFI-safe
|
= note: `#[warn(improper_ctypes_definitions)]` on by default
= help: consider using `u32` or `libc::wchar_t` instead
= note: the `char` type has no C equivalent
warning: `encoding_c_mem` (lib) generated 1 warning
Fresh jsrust_shared v0.1.0 (/tmp/firefox-91.7.0/js/src/rust/shared)
Fresh jsrust v0.1.0 (/tmp/firefox-91.7.0/js/src/rust)
Finished release [unoptimized] target(s) in 1.47s
/tmp/firefox-91.7.0/_virtualenvs/common/bin/python -m mozbuild.action.check_binary --target --networking /tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a
TEST-UNEXPECTED-FAIL | check_networking | libjsrust.a | Identified 6 networking function(s) being imported in the rust static library (connect,getsockname,getsockopt,listen,recv,send)
BUILDTASK {"argv": ["/tmp/firefox-91.7.0/python/mozbuild/mozbuild/action/check_binary.py", "--target", "--networking", "/tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a"], "start": 1648587776.7098968, "end": 1648587776.9086227, "context": null}
make[3]: *** [/tmp/firefox-91.7.0/config/makefiles/rust.mk:418: /tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a] Error 1
make[3]: *** Deleting file '/tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a'
make[3]: Leaving directory '/tmp/firefox-91.7.0/js/src/js/src/rust'
make[2]: *** [/tmp/firefox-91.7.0/config/recurse.mk:72: js/src/rust/target] Error 2
make[2]: Leaving directory '/tmp/firefox-91.7.0/js/src'
make[1]: *** [/tmp/firefox-91.7.0/config/recurse.mk:34: compile] Error 2
make[1]: Leaving directory '/tmp/firefox-91.7.0/js/src'
make: *** [/tmp/firefox-91.7.0/config/rules.mk:357: default] Error 2
root@darkstar:/home/lancs/build/mozjs91#
Last edited by lancsuk; 04-01-2022 at 11:33 AM .
03-29-2022, 09:03 PM
#2
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512
Try with the configure option: --disable-warnings-as-errors
03-29-2022, 10:09 PM
#3
Member
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226
Original Poster
Quote:
Originally Posted by
volkerdi
Try with the configure option: --disable-warnings-as-errors
With the configure option --disable-warnings-as-errors I got error below.
Code:
Fresh encoding_c v0.9.7
warning: `encoding_c_mem` (lib) generated 1 warning
Fresh jsrust_shared v0.1.0 (/tmp/firefox-91.7.0/js/src/rust/shared)
Fresh jsrust v0.1.0 (/tmp/firefox-91.7.0/js/src/rust)
Finished release [unoptimized] target(s) in 1.52s
/tmp/firefox-91.7.0/_virtualenvs/common/bin/python -m mozbuild.action.check_binary --target --networking /tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a
TEST-UNEXPECTED-FAIL | check_networking | libjsrust.a | Identified 6 networking function(s) being imported in the rust static library (connect,getsockname,getsockopt,listen,recv,send)
BUILDTASK {"argv": ["/tmp/firefox-91.7.0/python/mozbuild/mozbuild/action/check_binary.py", "--target", "--networking", "/tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a"], "start": 1648606760.5262637, "end": 1648606760.738806, "context": null}
make[3]: *** [/tmp/firefox-91.7.0/config/makefiles/rust.mk:418: /tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a] Error 1
make[3]: *** Deleting file '/tmp/firefox-91.7.0/js/src/x86_64-unknown-linux-gnu/release/libjsrust.a'
make[3]: Leaving directory '/tmp/firefox-91.7.0/js/src/js/src/rust'
make[2]: *** [/tmp/firefox-91.7.0/config/recurse.mk:72: js/src/rust/target] Error 2
make[2]: Leaving directory '/tmp/firefox-91.7.0/js/src'
make[1]: *** [/tmp/firefox-91.7.0/config/recurse.mk:34: compile] Error 2
make[1]: Leaving directory '/tmp/firefox-91.7.0/js/src'
make: *** [/tmp/firefox-91.7.0/config/rules.mk:357: default] Error 2
03-30-2022, 01:06 AM
#4
Senior Member
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Do you build it with this command?
Code:
SHELL=/bin/sh ./*.SlackBuild
The SHELL=/bin/sh is compulsory.
Last edited by nobodino; 03-30-2022 at 01:08 AM .
03-30-2022, 03:13 AM
#5
Member
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226
Original Poster
Quote:
Originally Posted by
nobodino
Do you build it with this command?
Code:
SHELL=/bin/sh ./*.SlackBuild
The SHELL=/bin/sh is compulsory.
Yes
03-30-2022, 12:59 PM
#6
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512
Which Rust compiler did you use? You might try the one in /extra and see if that helps. That's what I'm currently using for all Mozilla related code.
2 members found this post helpful.
03-30-2022, 12:59 PM
#7
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512
Which Rust compiler did you use? You might try the one in /extra and see if that helps. That's what I'm currently using for all Mozilla related code.
2 members found this post helpful.
03-30-2022, 05:05 PM
#8
Member
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226
Original Poster
Quote:
Originally Posted by
volkerdi
Which Rust compiler did you use? You might try the one in /extra and see if that helps. That's what I'm currently using for all Mozilla related code.
mozjs91 build failed with configure option --disable-optimize, with --enable-optimize the build works.
At the moment I am working on current ( Rust 1.59 ), but I will try the one in /extra as well.
https://gitlab.com/slackernetuk/gnom...t-42.0/mozjs91
2 members found this post helpful.
All times are GMT -5. The time now is 08:33 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News