Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865827 - =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
Summary: =dev-lang/spidermonkey-102.1.0-r1 failes to compile on arm with: ../js/src/ji...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-19 21:29 UTC by tt_1
Modified: 2022-11-06 06:56 UTC (History)
0 users

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


Attachments
compressed build log from armv7-cross (spidermonkey-102-build.log.gz,62.69 KB, application/gzip)
2022-08-19 21:29 UTC, tt_1
Details
output from emerge --info (armv7) (cross-emerge-info,5.24 KB, text/plain)
2022-08-19 21:35 UTC, tt_1
Details
compressed build log (spidermonkey-102.4.0-with-debian-patch.log.gz,61.47 KB, application/gzip)
2022-11-06 06:56 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
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