facebookarchive / android-jsc Goto Github PK
View Code? Open in Web Editor NEWScripts for building JSC for Android
License: Other
Scripts for building JSC for Android
License: Other
org.webkit.android-jsc.version=r174650
a problem attach to me when i use react native android 0.15.0:
duplicate entry: javax/annotation/Nullable.class
in abjectively case , another maven GAV also has Nullable which the package is also javax.annotation.
even i can exclude an dependence a GAV ,bug i can't exclude all the files in an exist package,opps!
seem to johncarl81/parceler#13
can @kmagiera @mkonicek help me and tell me how to sovle it.
builds-nightly.webkit.org returns 'permanently moved' response. With response save with WebKit-r174650.tar.bz2 name, so it's failed to extract.
Replacing http to https fixes the issue.
why not support armeabi? React Native used this, but not support armeabi, i guess depend on this.
How to support armeabi?
when do you update this android-jsc to support es6?
[-] PROCESSING BUCK FILES...FINISHED 0.5s [100%]
[+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)
[+] BUILDING...3.2s [27%](265/1921 JOBS, 53 UPDATED, 2.8% CACHE MISS)
|=> //icu:common#android-armv7,shared... 2.1s (running c++ link[2.1s])
|=> //jsc:llint_desired_offsets... 2.7s (running genrule[2.7s])
|=> //jsc:wtf#android-x86,compile-pic-WTF_wtf_StringPrintStream.cpp.o... 0.3s (running c++ piped_preprocess_and_compile[0.3s])
|=> //jsc:wtf#android-x86,compile-pic-WTF_wtf_FilePrintStream.cpp.o... 0.9s (running c++ piped_preprocess_and_compile[0.9s])
|=> //jsc:wtf#android-x86,compile-pic-WTF_wtf_FunctionDispatcher.cpp.o... 0.4s (running c++ piped_preprocess_and_compile[0.4s])
|=> //jsc:wtfassertions#android-x86,compile-pic-WTF_wtf_Assertions.cpp.o... 1.1s (running c++ piped_preprocess_and_compile[1.1s])
|=> //jsc:wtf#android-x86,compile-pic-WTF_wtf_GregorianDateTime.cpp.o... 0.3s (running c++ piped_preprocess_and_compile[0.3s])
|=> //jsc:wtf#android-x86,compile-pic-WTF_wtf_dtoa_bignum.cc.o... 0.3s (running c++ piped_preprocess_and_compile[0.3s])
|=> //jsc:wtf#android-x86,compile-pic-WTF_wtf_StackStats.cpp.o... 0.3s (running c++ piped_preprocess_and_compile[0.3s])
|=> //icu:common#android-x86,compile-pic-common_unistr.cpp.o... 1.3s (running c++ piped_preprocess_and_compile[1.3s])
icu/common/brkiter.cpp:426: error: undefined reference to 'icu_56::FilteredBreakIteratorBuilder::createInstance(icu_56::Locale const&, UErrorCode&)'
icu/common/uresbund.cpp:1906: error: undefined reference to 'ures_getAllArrayItems'
icu/common/uresbund.cpp:1908: error: undefined reference to 'ures_getAllTableItems'
icu/common/uresbund.cpp:1984: error: undefined reference to 'icu_56::ResourceDataValue::~ResourceDataValue()'
icu/common/uresbund.cpp:1985: error: undefined reference to 'vtable for icu_56::ResourceDataValue'
/Users/mxw/Programe/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
collect2: error: ld returned 1 exit status
It looks like JSC Android hasn't been updated since 2015. Are there any plans to update android-jsc
?
There are bugs in the Android version of JSC which result in different behavior compared to iOS. A more modern version of JSC on Android would help minimize differences.
org.webkit.android-jsc.version=r174650
a problem attach to me when i use react native android 0.15.0:
duplicate entry: javax/annotation/Nullable.class
in abjectively case , another maven GAV also has Nullable which the package is also javax.annotation.
even i can exclude an dependence a GAV ,bug i can't exclude all the files in an exist package,opps!
seem to johncarl81/parceler#13
can @kmagiera @mkonicek help me and tell me how to sovle it.
https://github.com/yipengmu/react-native-android-lession/blob/master/pics/jsc-bug.png
I cloned the repo and ran ./fetch_sources.sh
and got the following error when extracting JSC:
➜ android-jsc git:(master) ./fetch_sources.sh
Downloading ICU
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 30.0M 0 30.0M 0 0 1545k 0 --:--:-- 0:00:19 --:--:-- 1360k
Extracting ICU
Downloading JSC
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11480 0 11480 0 0 12594 0 --:--:-- --:--:-- --:--:-- 12587
Extracting JSC
tar: Unrecognized archive format
tar: WebKit-r174650/Source/WTF: Not found in archive
tar: WebKit-r174650/Source/JavaScriptCore: Not found in archive
tar: Error exit delayed from previous errors.
According to this page, WebKit nightlies are no longer supported, so seems this script needs to be updated. They have a build archive here but it doesn't seem to have source code, just compiled code.
I'm probably doing something weird, but when I run buck build :android-jsc
I get the following errors
BUILD FAILED: Couldn't get dependency '//jsc:jscoffsetextractor#android-x86,static' of target '//jsc:LLIntAssembly.android-x86.h':
Unrecognized flavor in target //jsc:jscoffsetextractor#android-x86,static while parsing //jsc/BUCK.
Any ideas? Thanks :)
React Native The current license is MIT, but it depends on android-jsc indeed BSD+PATENTS, no one cares about this?
Can someone link me an example project in use since I am using Adrnoid Studio and when link my .so by cmake this shows the following message "Application stopped work"
Recently encountered the jsc issue, which big guy can help solve it, thanks!
armARMv1 vendor(0x49) part(0x4900d450) features: half,thumb,fastmult,vfpv2,edsp,neon,vfpv3,tls,vfpv4,idiva,idivt8 CPUs
Thread 0 (crashed)
0 libjsc.so + 0x612a64
r0 = 0x974b49f4 r1 = 0xffbef340 r2 = 0xffbef3c0 r3 = 0x000000ef
r4 = 0xffbef3c0 r5 = 0x00000008 r6 = 0x00000000 r7 = 0x0000015a
r8 = 0xd8811b0c r9 = 0xd8811ac0 r10 = 0x00000000 r12 = 0xffbef6c0
fp = 0x000000ef sp = 0xffbef328 lr = 0xefe19a90 pc = 0x96bb1a64
Found by: given as instruction pointer in context
1 libc.so + 0x4ea8e
sp = 0xffbef340 pc = 0xefe19a90
Found by: stack scanning
2 boot-framework.oat + 0x8ef1e5
sp = 0xffbef360 pc = 0x71f4c1e7
Found by: stack scanning
3 boot-framework.art + 0x61ccc2
sp = 0xffbef364 pc = 0x70b7fcc4
Found by: stack scanning
4 libart.so + 0xe1bc5
sp = 0xffbef390 pc = 0xec4e4bc7
Found by: stack scanning
5 NotoColorEmoji.ttf + 0x2e5798
sp = 0xffbef39c pc = 0xd697179a
Found by: stack scanning
6 libc.so + 0x5dc7b
sp = 0xffbef41c pc = 0xefe28c7d
Found by: stack scanning
7 libc.so + 0x8bd82
sp = 0xffbef420 pc = 0xefe56d84
Found by: stack scanning
8 libart.so + 0x302b3f
sp = 0xffbef440 pc = 0xec705b41
Found by: stack scanning
9 boot-framework.art + 0x61ccc2
sp = 0xffbef444 pc = 0x70b7fcc4
Found by: stack scanning
10 libart.so + 0x302b3f
sp = 0xffbef470 pc = 0xec705b41
Found by: stack scanning
11 base.art] + 0x35325a
sp = 0xffbef478 pc = 0xbd08f25c
Found by: stack scanning
12 boot-framework.art + 0x61ccc2
sp = 0xffbef498 pc = 0x70b7fcc4
Found by: stack scanning
libjsc.so:7F6AC0C3D3BBAD5DFC106499E4ACD5340
I want to create a build with symbols for debugging. any help?
how can i exclude x86 .so by edit ndk gradle or any config when i use React Native for Android,thks
becase , the .so [4M] is too large for us,and in china machine base on x86 is very rare,so we decide to cut down the x86 support, thanks for tell me how to deal with this project
Tried this on my macOS machine, which failed.
Turns out it was this line:
Baggerss-MBP:android-jsc Baggers$ tar -jxf WebKit-r174650.tar.bz2 -C jsc --strip 2 WebKit-r174650/Source/JavaScriptCore WebKit-r174650/Source/WTF
tar: Unrecognized archive format
tar: WebKit-r174650/Source/WTF: Not found in archive
tar: WebKit-r174650/Source/JavaScriptCore: Not found in archive
tar: Error exit delayed from previous errors.
Also tried on a fresh ubuntu install in a vm. Fails on same line
baggers@bbuntu:~/Code/android-jsc$ tar -jxf WebKit-r174650.tar.bz2 -C jsc --strip 2 WebKit-r174650/Source/JavaScriptCore WebKit-r174650/Source/WTF
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Any advice would be very welcome
buck build :android-jsc
[+] PARSING BUCK FILES...1.1s [100%]
[-] PROCESSING BUCK FILES...FINISHED 1.2s [100%]
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
[-] BUILDING...FINISHED 0.0s
BUILD FAILED: The following flavor(s) are not supported on target //jsc:jscoffsetextractor#android-armv7,static:
android-armv7, static.
- Please check the spelling of the flavor(s).
- If the spelling is correct, please check that the related SDK has been installed.
- android-armv7: Please make sure you have the Android SDK/NDK installed and set up. See https://buckbuild.com/setup/install.html#locate-android-sdk
This error happened while trying to get dependency '//jsc:jscoffsetextractor#android-armv7,static' of target '//jsc:LLIntAssembly.android-armv7.h'
I've updated .buckconfig
to use ndk_version = r15c
NDK is installed and environment variables are setup.
export ANDROID_HOME="$HOME/Library/Android/sdk"
export ANDROID_NDK_REPOSITORY="$HOME/code/android_ndk/android-ndk-r15c"
export ANDROID_SDK="$ANDROID_HOME"
It'd be nice to at least have Travis CI enabled to verify the code builds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.