Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 865827

Summary: =dev-lang/spidermonkey-102.1.0-r1 failes to compile on arm with: ../js/src/jit/AtomicOperationsGenerated.h:240:17: error: 'asm' operand has impossible constraints
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: compressed build log from armv7-cross
output from emerge --info (armv7)
compressed build log

Description tt_1 2022-08-19 21:29:09 UTC
Created attachment 800197 [details]
compressed build log from armv7-cross

from the build log: 


In file included from /var/tmp/portage/portage/dev-lang/spidermonkey-102.1.0-r1/work/firefox-102.1.0/js/src/jit/AtomicOperations.h:14,
                 from /var/tmp/portage/portage/dev-lang/spidermonkey-102.1.0-r1/work/firefox-102.1.0/js/src/builtin/AtomicsObject.cpp:24,
                 from Unified_cpp_js_src0.cpp:11:
/var/tmp/portage/portage/dev-lang/spidermonkey-102.1.0-r1/work/build/js/src/jit/AtomicOperationsGenerated.h: In function 'bool atomics_xor(JSContext*, unsigned int, JS::Value*)':
/var/tmp/portage/portage/dev-lang/spidermonkey-102.1.0-r1/work/build/js/src/jit/AtomicOperationsGenerated.h:240:17: error: 'asm' operand has impossible constraints
  240 |                 asm volatile (
      |                 ^~~
/var/tmp/portage/portage/dev-lang/spidermonkey-102.1.0-r1/work/build/js/src/jit/AtomicOperationsGenerated.h:240:17: error: 'asm' operand has impossible constraints
  240 |                 asm volatile (
      |                 ^~~


I've got the compressed build log attached - this is from cross. Will try to reproduce on native compile in the next days, if possible.
Comment 1 tt_1 2022-08-19 21:35:38 UTC
Created attachment 800199 [details]
output from emerge --info (armv7)
Comment 2 tt_1 2022-08-20 10:51:28 UTC
these are my useflags: 

emerge-armv7a-unknown-linux-gnueabihf -pv =spidermonkey-102.1.0-r1 

[ebuild  N    ~] dev-lang/spidermonkey-102.1.0-r1:102::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ USE="jit -clang -debug -lto -test" CPU_FLAGS_ARM="neon" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
Comment 3 Joonas Niilola gentoo-dev 2022-11-06 06:39:24 UTC
https://bugzilla.mozilla.org/show_bug.cgi?id=1792159#c6 Can you test if the patch in this bug fixes it for you? (commit is later in that thread)
Comment 4 tt_1 2022-11-06 06:42:19 UTC
(In reply to Joonas Niilola from comment #3)
> https://bugzilla.mozilla.org/show_bug.cgi?id=1792159#c6 Can you test if the
> patch in this bug fixes it for you? (commit is later in that thread)

Indeed, I saw that patch the other day in the debian patchset and have it on my list. Will report back with results.
Comment 5 tt_1 2022-11-06 06:56:02 UTC
Created attachment 827963 [details]
compressed build log

I'm afraid the patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1792159#c6 didn't fix anything: 

cat build.log | grep error: -b4


635182-/var/tmp/portage/dev-lang/spidermonkey-102.4.0/work/build/js/src/jit/AtomicOperationsGenerated.h: In function 'bool atomics_xor(JSContext*, unsigned int, JS::Value*)':
635378:/var/tmp/portage/dev-lang/spidermonkey-102.4.0/work/build/js/src/jit/AtomicOperationsGenerated.h:242:17: error: 'asm' operand has impossible constraints
635576-  242 |                 asm volatile (
635632-      |                 ^~~
635677:/var/tmp/portage/dev-lang/spidermonkey-102.4.0/work/build/js/src/jit/AtomicOperationsGenerated.h:242:17: error: 'asm' operand has impossible constraints
635875-  242 |                 asm volatile (
635931-      |                 ^~~


full log is attached