Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831501 - dev-lang/spidermonkey-91.5.0: fails to compile
Summary: dev-lang/spidermonkey-91.5.0: fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-19 17:47 UTC by contactopublico57
Modified: 2022-01-22 09:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
requested info (build_failure_info_spidermonkey-91.5.0.txt,628.20 KB, text/plain)
2022-01-19 17:49 UTC, contactopublico57
Details
use/clang (build_log_use_clang_spidermonkey-91.5.0.txt,626.26 KB, text/plain)
2022-01-20 17:24 UTC, contactopublico57
Details

Note You need to log in before you can comment on or make changes to this bug.
Description contactopublico57 2022-01-19 17:47:17 UTC
emerge spidermonkey-91.5.0 fails

Reproducible: Always

Steps to Reproduce:
1.emerge spidermonkey
2.emerge fails
3.
Actual Results:  
emerge fails

Expected Results:  
emerge spidermonkey-91.5.0

see attachment
Comment 1 contactopublico57 2022-01-19 17:49:13 UTC
Created attachment 762705 [details]
requested info
Comment 2 Joonas Niilola gentoo-dev 2022-01-20 10:06:02 UTC
Can you try with USE="clang" and post the build.log for that? I'd like to think it's -Werror=format related but can't really pinpoint the exact spot. 

Also your setup says
  checking whether the C compiler supports -Wformat-security... no
  checking whether the C++ compiler supports -Wformat-security... no
Comment 3 contactopublico57 2022-01-20 17:24:03 UTC
Created attachment 762879 [details]
use/clang

cli:

USE="clang" sudo emerge spidermonkey
Comment 4 Larry the Git Cow gentoo-dev 2022-01-22 09:00:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d85af4050717832975fe735a7c6bbf73359fe654

commit d85af4050717832975fe735a7c6bbf73359fe654
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-01-22 08:57:46 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-01-22 09:00:01 +0000

    dev-lang/spidermonkey: update patch set for 91.5.0
    
     - disable some gcc-specific sanity checks (since they're not ran for
       clang either),
     - disable -Werror=format.
    
    Closes: https://bugs.gentoo.org/792246
    Closes: https://bugs.gentoo.org/831501
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-lang/spidermonkey/Manifest                   | 2 +-
 dev-lang/spidermonkey/spidermonkey-91.5.0.ebuild | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)
Comment 5 Joonas Niilola gentoo-dev 2022-01-22 09:01:59 UTC
(In reply to contactopublico57 from comment #3)
> Created attachment 762879 [details]
> use/clang
> 
> cli:
> 
> USE="clang" sudo emerge spidermonkey

As you can see from your build.log, clang wasn't enabled. I don't use sudo but there's a weird interaction inputting env variables like that, I believe the correct syntax is:
  sudo USE="clang" emerge spidermonkey

but as said, I don't have sudo installed.

Anyway -Werror=format is now disabled when you re-sync and I hope that fixes it for you. If not, please provide build.logs for clang/-clang so I can diff the configure steps.