Make Failed
Sparse Way
support at sparseway.com
Mon Feb 25 13:14:54 UTC 2019
Hi,
I am building openjdk for android arm using Ubuntu 64 bit, andoid-ndk-r13b
Followed the guide at the official page (seems outdated) and applied the workarounds from mailing http://mail.openjdk.java.net/pipermail/mobile-dev/2018-August.txt since encountered same issues.
1. android-ndk-r13b doesn't have dependencies needed to make openjdk like sys/signal.h and types.h, even though i found them in /usr/include but for some reason make cannot find them.
2. Linking them using "ln -s" doesn't completely help either; make hotspot problem was fixed but ended having this error:
/media/user/W/mobile-dev/jdk/src/java.base/unix/native/include/bits/byteswap-16.h:31:5: error: invalid 'asm': invalid operand for code 'w'
__asm__ ("rorw $8, %w0" \
^
/media/user/W/mobile-dev/jdk/src/java.base/unix/native/include/netinet/in.h:405:21: note: in expansion of macro '__bswap_16'
# define htons(x) __bswap_16 (x)
^
/media/user/W/mobile-dev/jdk/src/jdk.jdwp.agent/unix/native/libdt_socket/socket_md.c:136:12: note: in expansion of macro 'htons'
return htons(hostshort);
^
{standard input}: Assembler messages:
{standard input}:424: Error: bad instruction `rorw $8,'
make[3]: *** [/media/user/W/mobile-dev/build/android-arm-normal-zero-release/support/native/jdk.jdwp.agent/libdt_socket/socket_md.o] Error 1
make[2]: *** [jdk.jdwp.agent-libs] Error 1
ERROR: Build failed for target 'images' in configuration 'android-arm-normal-zero-release' (exit code 2)
----- Build times -------
Start 2019-02-25 04:34:14
End 2019-02-25 04:34:54
00:00:40 TOTAL
-------------------------
Thanks for your time.
More information about the mobile-dev
mailing list