1. USE=ftdi emerge arduino-1.8.5-r1 from a new system 2. will fail to find jni.h jnilib.o I could probably patch the ebuild myself for a specific jvm, but there is probably a better way to check for all jvm installed.
To clarify, the JVM is pulled properly but the dependency order is not correct. The work around in my case was to emerge -1 dev-java/icedtea-bin
Same here. If I manually install JVM before installing arduino then package build will be successful. If JVM is not installed before manually then I'm getting this: [ebuild N ] dev-embedded/arduino-1.8.5-r2 USE="-doc" [ebuild N ] dev-java/ant-core-1.9.2 USE="-doc -source" [ebuild N ] dev-util/astyle-3.1-r1 USE="java -examples -static-libs" [nomerge ] dev-java/ant-core-1.9.2 USE="-doc -source" [nomerge ] virtual/jdk-1.8.0-r3 [nomerge ] dev-java/icedtea-bin-3.7.0 USE="cups gtk multilib nsplugin pulseaudio webstart -alsa (-big-endian) -doc -examples -headless-awt (-selinux) -source" ABI_X86="32 (64) (-x32)" [ebuild N ] dev-java/icedtea-web-1.6.2 USE="nsplugin -doc -javascript -tagsoup {-test}" [ebuild N ] virtual/jre-1.8.0-r1 [ebuild N ] dev-java/icedtea-sound-1.0.1 USE="doc {-test}" [ebuild N ] virtual/jdk-1.8.0-r3 [ebuild N ] dev-java/icedtea-bin-3.7.0 USE="cups gtk multilib nsplugin pulseaudio webstart -alsa (-big-endian) -doc -examples -headless-awt (-selinux) -source" ABI_X86="32 (64) (-x32)" [nomerge ] dev-embedded/arduino-1.8.5-r2 USE="-doc" [ebuild N ] dev-embedded/arduino-builder-1.3.25 [ebuild N ] sys-devel/crossdev-20180410 [ebuild N ] dev-embedded/arduino-listserialportsc-1.4.0 Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Running pre-merge checks for dev-java/icedtea-bin-3.7.0 >>> Emerging (1 of 11) dev-embedded/arduino-listserialportsc-1.4.0::gentoo >>> Failed to emerge dev-embedded/arduino-listserialportsc-1.4.0, Log file: >>> '/var/tmp/portage/dev-embedded/arduino-listserialportsc-1.4.0/temp/build.log.gz' >>> Jobs: 0 of 11 complete, 1 failed Load avg: 0.24, 0.24, 0.27 * Package: dev-embedded/arduino-listserialportsc-1.4.0 * Repository: gentoo * Maintainer: embedded@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox main.c: In function ‘main’: main.c:16:10: warning: unused variable ‘vid_pid_iserial’ [-Wunused-variable] char vid_pid_iserial[256] = " "; ^~~~~~~~~~~~~~~ !!! ERROR: The active vm could not be found !!! ERROR: The active vm could not be found jnilib.c:3:10: fatal error: jni.h: No such file or directory #include <jni.h> ^~~~~~~ compilation terminated. x86_64-pc-linux-gnu-gcc: error: jnilib.o: No such file or directory !!! dolib: liblistSerialsj.so.1.4.0 does not exist * ERROR: dev-embedded/arduino-listserialportsc-1.4.0::gentoo failed (install phase): * dolib failed
I confirm. I had the same problem building arduino from a pristine and up-to-date gentoo. Will look into it soon.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97cf9f2715a82d688aff6da7ada8413be9929dbc commit 97cf9f2715a82d688aff6da7ada8413be9929dbc Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-07-22 23:31:23 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-07-22 23:31:23 +0000 dev-embedded/arduino-listserialportsc: add missing build dep Closes: https://bugs.gentoo.org/654566 Package-Manager: Portage-2.3.43, Repoman-2.3.10 .../arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)