LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-29-2022, 04:29 PM   #1
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
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#
Attached Files
File Type: txt mozjs91.SlackBuild.txt (6.3 KB, 11 views)

Last edited by lancsuk; 04-01-2022 at 11:33 AM.
 
Old 03-29-2022, 09:03 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512

Rep: Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478
Try with the configure option: --disable-warnings-as-errors
 
Old 03-29-2022, 10:09 PM   #3
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Original Poster
Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by volkerdi View Post
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
 
Old 03-30-2022, 01:06 AM   #4
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
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.
 
Old 03-30-2022, 03:13 AM   #5
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Original Poster
Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by nobodino View Post
Do you build it with this command?

Code:
SHELL=/bin/sh ./*.SlackBuild
The SHELL=/bin/sh is compulsory.
Yes
 
Old 03-30-2022, 12:59 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512

Rep: Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478
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.
Old 03-30-2022, 12:59 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512

Rep: Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478
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.
Old 03-30-2022, 05:05 PM   #8
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Original Poster
Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by volkerdi View Post
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.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
[SOLVED] if [[ -n "$1" ]]; then FAIL FAIL FAIL rbees Programming 7 03-25-2015 02:39 PM
FreeCAD build fail under slackware 14.0 marbangens Slackware 15 11-03-2012 06:39 AM
Build Chrome on Slackware-current fail--No package 'nss' found grissiom Slackware 12 09-06-2008 04:43 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration