Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680200 - >dev-lang/spidermonkey:0/mozjs185 fails to cross-compile
Summary: >dev-lang/spidermonkey:0/mozjs185 fails to cross-compile
Status: RESOLVED OBSOLETE
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: 680210
Blocks:
  Show dependency tree
 
Reported: 2019-03-13 08:42 UTC by tt_1
Modified: 2020-06-13 06:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-03-13 08:42:01 UTC
I tried them all, they fail for various reasons. 

since the errors are different for every version in the tree, I tried to see wether it actually is possible to cross compile from source without the ebuilds help, and it does with these options: 

PKG_CONFIG_LIBDIR=/usr/armv7a-unknown-linux-gnueabihf/usr/lib/pkgconfig CC="armv7a-unknown-linux-gnueabihf-gcc" CXX="armv7a-unknown-linux-gnueabihf-g++" AR=armv7a-unknown-linux-gnueabihf-ar ../configure --target=armv7a-unknown-linux-gnueabihf

/tmp/mozjs-52.9.1pre1/js/src/build_OPT.OBJ/js/src # file libmozjs-52.so 
libmozjs-52.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=c2cca961eb135ccff70f9142f49ae645cc478f09, stripped

I build that from within a build dir inside of the unpacked source code. This is working for stable spidermonkey:52 

Now, before I try to nail this down for the ebuilds, may I ask, which would be the best canidate to work with? Are you going to remove some of the older versions soon?
Comment 1 tt_1 2019-03-13 09:34:03 UTC
this is the closest I can get to what the ebuild does:

PKG_CONFIG_LIBDIR=/usr/armv7a-unknown-linux-gnueabihf/usr/lib/pkgconfig CC="armv7a-unknown-linux-gnueabihf-gcc" CXX="armv7a-unknown-linux-gnueabihf-g++" AR="armv7a-unknown-linux-gnueabihf-ar" ../configure --target=armv7a-unknown-linux-gnueabihf --with-system-nspr --disable-debug --enable-ion --disable-tests --disable-optimize --libdir=/usr/armv7a-unknown-linux-gnueabihf/usr/lib/ --prefix=/usr/armv7a-unknown-linux-gnueabihf/usr/ --with-intl-api --enable-jemalloc --enable-readline

while sytem-nspr workds, system-icu does not but gives linker errors. 

with the patchset applied by hand to the untared source, I had to run /usr/bin/autoconf-2.13 from js/src
Comment 2 Jory A. Pratt gentoo-dev 2019-03-31 20:50:08 UTC

*** This bug has been marked as a duplicate of bug 680210 ***
Comment 3 tt_1 2019-04-01 07:20:08 UTC
This was meant as a kind of tracker bug, because all versions between spidermonkey:0 and >=spidermonkey-52 fail for various reasons. No additional bugs opened, as I haven't got an answer to my question yet - do you want to keep them around for longer? If not, please close this bug, thanks.
Comment 4 tt_1 2020-06-13 06:09:05 UTC
closing as obsolete