Opened 11 years ago

Closed 4 years ago

Last modified 4 years ago

#41610 closed defect (fixed)

portmidi @217: fatal error: 'jni.h' file not found

Reported by: ray.degennaro@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ccottap (Carlos Cotta), juanalexei, nomennudum (Roger Hayter), rpspringuel (Fr. Samuel Springuel), dliessi (Davide Liessi), mascguy (Christopher Nielsen)
Port: portmidi

Description

Hours-old MacPorts install with up-to-date Xcode 5 on up-to-date Mavericks (10.9) and portmidi will not compile either stand-alone, or as a dependent of frescobaldi. The key error seems to be:

In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/pmjni.c:3:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/jportmidi_JportMidiApi.h:2:10: fatal error: 'jni.h' file not found

jni.h exists:

> /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
> ls /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/include
classfile_constants.h         jawt.h                   jni.h             jvmticmlr.h
darwin                        jdwpTransport.h          jvmti.h

The full 'port -v' output:

> sudo port -v install portmidi
--->  Computing dependencies for portmidi.
--->  Building portmidi
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/opt/local/bin/cmake -H/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_common/CMakeFiles/pmjni.dir/build.make pm_common/CMakeFiles/pmjni.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_common/CMakeFiles/portmidi-static.dir/build.make pm_common/CMakeFiles/portmidi-static.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_dylib/CMakeFiles/portmidi-dynamic.dir/build.make pm_dylib/CMakeFiles/portmidi-dynamic.dir/depend
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common/CMakeFiles/pmjni.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common/CMakeFiles/portmidi-static.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_dylib/CMakeFiles/portmidi-dynamic.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_dylib/CMakeFiles/portmidi-dynamic.dir/build.make pm_dylib/CMakeFiles/portmidi-dynamic.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_common/CMakeFiles/pmjni.dir/build.make pm_common/CMakeFiles/pmjni.dir/build
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_common/CMakeFiles/portmidi-static.dir/build.make pm_common/CMakeFiles/portmidi-static.dir/build
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_dylib/CMakeFiles/portmidi-dynamic.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles 13
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  14 15 16 17 18 19 20
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_common/CMakeFiles/portmidi-static.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  21 22 23 24 25 26 27
[ 13%] [ 26%] [ 50%] Built target portmidi-dynamic
Built target portmidi-static
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/latency.dir/build.make pm_test/CMakeFiles/latency.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/midiclock.dir/build.make pm_test/CMakeFiles/midiclock.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/midithread.dir/build.make pm_test/CMakeFiles/midithread.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/midithru.dir/build.make pm_test/CMakeFiles/midithru.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/mm.dir/build.make pm_test/CMakeFiles/mm.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/qtest.dir/build.make pm_test/CMakeFiles/qtest.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/sysex.dir/build.make pm_test/CMakeFiles/sysex.dir/depend
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/midiclock.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/latency.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/midithread.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/midithru.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/mm.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/qtest.dir/DependInfo.cmake --color=
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_test/CMakeFiles/sysex.dir/DependInfo.cmake --color=
Building C object pm_common/CMakeFiles/pmjni.dir/__/pm_java/pmjni/pmjni.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common && /usr/bin/clang  -Dpmjni_EXPORTS -pipe -Os -I/opt/local/include -arch x86_64  -DNDEBUG  -arch x86_64 -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/porttime -I//Developer/Headers/FlatCarbon -I//System/Library/Frameworks/JavaVM.framework/Headers    -o CMakeFiles/pmjni.dir/__/pm_java/pmjni/pmjni.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/pmjni.c
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/pmjni.c:3:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/jportmidi_JportMidiApi.h:2:10: fatal error: 'jni.h' file not found
#include <jni.h>
         ^
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/sysex.dir/build.make pm_test/CMakeFiles/sysex.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/qtest.dir/build.make pm_test/CMakeFiles/qtest.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/mm.dir/build.make pm_test/CMakeFiles/mm.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/midithru.dir/build.make pm_test/CMakeFiles/midithru.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/midithread.dir/build.make pm_test/CMakeFiles/midithread.dir/build
1 error generated.
make[2]: *** [pm_common/CMakeFiles/pmjni.dir/__/pm_java/pmjni/pmjni.c.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/midiclock.dir/build.make pm_test/CMakeFiles/midiclock.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f pm_test/CMakeFiles/latency.dir/build.make pm_test/CMakeFiles/latency.dir/build
make[1]: *** [pm_common/CMakeFiles/pmjni.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/mm.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/midithru.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/sysex.dir/build'.
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/qtest.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/latency.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/midithread.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  4
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make[2]: Nothing to be done for `pm_test/CMakeFiles/midiclock.dir/build'.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  1
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  2
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  3
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  5
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  28
[ 53%] /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/CMakeFiles  29
[ 56%] [ 60%] [ 63%] Built target latency
[ 66%] Built target midithru
Built target midiclock
[ 70%] Built target midithread
[ 73%] Built target mm
Built target qtest
Built target sysex
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi" && /usr/bin/make -j8 -w all 
Exit code: 2
Error: org.macports.build for port portmidi returned: command execution failed
Warning: targets not executed for portmidi: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port portmidi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port portmidi failed

Attachments (2)

portmidi@217_1 Build.20131201.log (46.3 KB) - added by ray.degennaro@… 11 years ago.
main.log (62.9 KB) - added by ccottap (Carlos Cotta) 4 years ago.
portmidi @217 build log (20201120)

Download all attachments as: .zip

Change History (24)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; ryandesign removed
Keywords: mavericks added
Port: portmidi added

This was not a clean build. Please clean and try again and attach (not paste) the new main.log file if it fails again (or let us know if it succeeds).

The Cc field requires full email addresses. However, I am not the maintainer of portmidi (there is none at this time) and I don't know how to fix the problem. The port builds fine for me on Mavericks. My /Library/Java/JavaVirtualMachines directory is empty. I do however have /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h. How did you install java?

comment:2 Changed 11 years ago by ray.degennaro@…

The build failed the first time I tried, so closed all of my open terminal sessions, reinstalled Java 6 SE from Apple (it looks like the SDK is not included) and then re-installed Java 7 and the 1.7 SDK, both from Oracle. Then I opened a new terminal session, checked 'java_home' and the 'include' directory, ran

sudo port clean --all installed
sudo port clean --all portmidi
sudo port -v selfupdate
sudo port -v upgrade outdated
sudo port -v install portmidi

before I reported the error. I just ran the sequence again and this time "upgrade outdated" downloaded a number of files and re-bootstrapped 'cmake' and pulled down new code for 'popler'. 'sudo port -v install portmidi' fails with the same error. I'll attach the latest log. Can I reply and attach at the same time? It looks like attaching kills the reply I started.

Ray

Last edited 11 years ago by ray.degennaro@… (previous) (diff)

Changed 11 years ago by ray.degennaro@…

comment:3 in reply to:  2 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to ray.degennaro@…:

I'll attach the latest log. Can I reply and attach at the same time? It looks like attaching kills the reply I started.

No, you can’t do both at once. Attach files before or after composing comments.

comment:4 Changed 4 years ago by ccottap (Carlos Cotta)

This thread is quite old, but I am experiencing this same issue: portmidi fails to build due to jni.h not being found:

In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/pmjni.c:3:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_portmidi/portmidi/work/portmidi/pm_java/pmjni/jportmidi_JportMidiApi.h:2:10: fatal error: 'jni.h' file not found
#include <jni.h>
         ^~~~~~~
1 error generated.
make[2]: *** [pm_common/CMakeFiles/pmjni.dir/__/pm_java/pmjni/pmjni.c.o] Error 1

I checked this jni.h file exists in $JAVA_HOME/include. I have macOS 11.0.1 and Xcode CLT 12.2.0.0.1.1604076827.

Changed 4 years ago by ccottap (Carlos Cotta)

Attachment: main.log added

portmidi @217 build log (20201120)

comment:5 Changed 4 years ago by ccottap (Carlos Cotta)

Cc: ccottap added

comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Not sure why it doesn't build for you. It does build for me on 10.13, and on our build server on every OS version: https://packages.macports.org/portmidi/ We have not yet tried to build on macOS 11. I can schedule a build there for you. It may take a day or two to happen; it is busy building other ports at the moment.

comment:7 Changed 4 years ago by kconkas (Kristijan Conkas)

This also affects me on macOS 11.0.1.

comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

comment:9 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mavericks removed
Summary: portmidi @217 Can't find jni.h even though it existsportmidi @217: fatal error: 'jni.h' file not found

Perhaps the portmidi port should be using the java 1.0 portgroup to help it find java. I'm not very familiar with java or how the portgroup is meant to be included. You could try editing the portmidi portfile and adding the line PortGroup java 1.0 after the PortSystem line and see what happens.

comment:10 Changed 4 years ago by mf2k (Frank Schima)

Cc: juanalexei added

Has duplicate #61623.

comment:11 Changed 4 years ago by nomennudum (Roger Hayter)

I found a messy (largely because I couldn't get recursive symlinks to work in os x) workaround in OS X 11.01.

/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/JavaVM.framework/ directory doesn't exist on my recently updated Macbook. Therefore /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/ which is linked to the current SDK 11.0 version doesn't exist. But JavaVM.framework (and therefore jni.h) did exist in the MacOSX10.15 version of the above path. Therefore I did the following:

cp -RLp /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/JavaVM.framework    /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/

then because jni.h still apparently could not be found in the MacOSX.sdk branch (why the link didn't work IDK) I also did:

cp -RLp /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/JavaVM.framework   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/

This probably produced large amounts of unnecessary duplicated files, but portmidi compiled and installed faultlessly. Obviously your pre 11 osx version may not be 15.15 so would need altering.

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:12 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Please don't modify the contents of your SDKs. Please undo any changes you made there to prevent future problems.

comment:13 Changed 4 years ago by nomennudum (Roger Hayter)

Cc: nomennudum added

comment:14 in reply to:  7 Changed 4 years ago by exaos (Exaos Lee)

Replying to kconkas:

This also affects me on macOS 11.0.1.

This still affects macOS 11.1. I tried, that adding PortGroup java 1.0 to the Portfile didn't work.

comment:15 Changed 4 years ago by exaos (Exaos Lee)

The JavaVM.framework is removed from macOS SDK since 11.0, and the dependency of openjdk8 can be added to portmidi. It seems that this issue can be narrowed down to how to make FindJNI find the correct Framework path of the installed OpenJDK8.

I installed openjdk8, but the process of port install portmidi cannot find the framework /Library/Java/JavaVirtualMachine/openjdk8/.

Last edited 4 years ago by exaos (Exaos Lee) (previous) (diff)

comment:16 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rpspringuel added; ryandesign removed

Has duplicate #61939.

comment:17 Changed 4 years ago by dliessi (Davide Liessi)

Cc: dliessi added

comment:18 Changed 4 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:19 Changed 4 years ago by mascguy (Christopher Nielsen)

It looks like our port is very out-of-date, as v234 is the latest version.

So I'll take this issue, as part of that update: issue:62048

Can someone reassign this ticket to me?

comment:20 Changed 4 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

In 51ce8ffec65af2eb0b430557f6005f2c114de092/macports-ports (master):

portmidi: disable pmjni

JavaVM.framework has been removed in macOS 11, so building the JNI lib
would require a dependency on openjdk, which doesn't seem worthwhile
for most users.

Fixes: #41610

comment:21 in reply to:  20 Changed 4 years ago by mascguy (Christopher Nielsen)

It's like magic: Reply to a ticket, and suddenly a fix appears... ;-)

Jokes aside, thanks Josh!

Last edited 4 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:22 Changed 4 years ago by mascguy (Christopher Nielsen)

Just checked the build status for this port, and sure enough, builds succeeded for Big Sur - both Intel and ARM. Beautiful!

Note: See TracTickets for help on using tickets.