Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774522 - dev-lang/spidermonkey-78.8 fails to build: Error: no such instruction: `mo'
Summary: dev-lang/spidermonkey-78.8 fails to build: Error: no such instruction: `mo'
Status: UNCONFIRMED
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: 2021-03-06 20:08 UTC by Don Wilburn
Modified: 2021-03-08 19:32 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge--info.txt,5.25 KB, text/plain)
2021-03-06 20:10 UTC, Don Wilburn
Details
build log (build.log,355.50 KB, text/plain)
2021-03-06 20:11 UTC, Don Wilburn
Details
environment (spmky.env,138.70 KB, text/plain)
2021-03-06 20:12 UTC, Don Wilburn
Details
emerge -pqv (spmky.pqv,90 bytes, text/plain)
2021-03-06 20:12 UTC, Don Wilburn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Don Wilburn 2021-03-06 20:08:14 UTC
dev-lang/spidermonkey-78.8.0 fails to build for me.  The USE flags are all defaults.  I have 78.6.0 installed currently.  I don't know why 78.8.0 is failing.

Reproducible: Always




I will reopen this bug and attach the info and build log and pqv as text files.
Comment 1 Don Wilburn 2021-03-06 20:10:24 UTC
Created attachment 689700 [details]
emerge --info
Comment 2 Don Wilburn 2021-03-06 20:11:07 UTC
Created attachment 689703 [details]
build log
Comment 3 Don Wilburn 2021-03-06 20:12:14 UTC
Created attachment 689706 [details]
environment
Comment 4 Don Wilburn 2021-03-06 20:12:55 UTC
Created attachment 689709 [details]
emerge -pqv
Comment 5 Thomas Deutschmann gentoo-dev Security 2021-03-07 01:39:23 UTC
From you build.log:

{standard input}: Assembler messages:
{standard input}:669094: Warning: end of file not at end of a line; newline inserted
{standard input}:669273: Error: no such instruction: `mo'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[3]: *** [/var/tmp/portage/dev-lang/spidermonkey-78.8.0/work/firefox-78.8.0/config/rules.mk:750: Unified_cpp_js_src_jit4.o] Error 1



I have no idea at the moment. Please try to rebuild 78.6.0 followed by 78.7.1.
Comment 6 Sam James archtester gentoo-dev Security 2021-03-07 03:10:05 UTC
I think this might actually just be OOM. Please retry with fewer jobs to verify.
Comment 7 Don Wilburn 2021-03-07 19:15:45 UTC
I tried to reinstall 78.6.0 and it failed.  So, I'm in trouble.  I'm just a general user, not a developer.  My wild guess is that something happened when dev-libs/icu went to 68.2, because I think spidermonkey was on the list when emerge @preserved-rebuild failed.  
I don't how to proceed.  Maybe I can try downgrading dev-libs/icu.
Comment 8 Sam James archtester gentoo-dev Security 2021-03-07 19:16:20 UTC
(In reply to Don Wilburn from comment #7)
> I tried to reinstall 78.6.0 and it failed.  So, I'm in trouble.  I'm just a
> general user, not a developer.  My wild guess is that something happened
> when dev-libs/icu went to 68.2, because I think spidermonkey was on the list
> when emerge @preserved-rebuild failed.  
> I don't how to proceed.  Maybe I can try downgrading dev-libs/icu.

Can you please try with MAKEOPTS="-j1"?
Comment 9 Don Wilburn 2021-03-07 19:32:00 UTC
My computer has 4G RAM and 2G swap partition.  Should I try adding a swap file first to increase virtual memory before trying with the new options?
Comment 10 Don Wilburn 2021-03-07 21:30:14 UTC
I changed the MAKEOPTS as advised.  Success!  Thank you.

Also, I added a 4G swap file before the final attempt.  I watched top on another terminal and it showed less than 30% total memory usage.  So, I don't think memory was the problem.  Now I need to read about MAKEOPTS.
Comment 11 Thomas Deutschmann gentoo-dev Security 2021-03-07 22:46:52 UTC
There should be output in "dmesg", too.
Comment 12 Don Wilburn 2021-03-08 19:32:36 UTC
(In reply to Don Wilburn from comment #10)
> I changed the MAKEOPTS as advised.  Success!  Thank you.
> 
> Also, I added a 4G swap file before the final attempt.  I watched top on
> another terminal and it showed less than 30% total memory usage.  So, I
> don't think memory was the problem.  Now I need to read about MAKEOPTS.

For future people finding this via a search engine:
My computer is a quad core Phenom with 4GB RAM.  Currently, it's about 10 years old.  Doesn't seem obsolete to me, but it was built for a certain 32 bit OS many years ago.  Gentoo has been here for many years too.
I had sloppily set MAKEOPTS to -j5, though I'm sure the AMD64 handbook explained that it would be best to set it based on 2GB per core.  So, my previous comment about memory was erroneous.  That has everything to do with why -j1 fixed the problem.  At least, that's what it seems like to me. 
I am surprised that it has taken so many years to cause problems.