Building Nexus on RPi4 triggers Caught: BUG! exception in phase 'semantic analysis'
#1
Any insights into the cause of this error?  Reproducible building on Arch ARM aarch64:
Code:
...
[100%] Built target legacy_interface
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:112: build/swig/AddonModuleXbmcwsgi.i.cpp] Error 1
make[2]: *** Waiting for unfinished jobs....
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:94: build/swig/AddonModuleXbmc.i.cpp] Error 1
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:76: build/swig/AddonModuleXbmcaddon.i.cpp] Error 1
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:82: build/swig/AddonModuleXbmcdrm.i.cpp] Error 1
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:100: build/swig/AddonModuleXbmcplugin.i.cpp] Error 1
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:106: build/swig/AddonModuleXbmcvfs.i.cpp] Error 1
Caught: BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
BUG! exception in phase 'semantic analysis' in source unit '/build/kodi-cortex-a72/src/xbmc-b4342dd18568c4234c6f2270654e14cfce3cd141/tools/codegenerator/Generator.groovy' Unsupported class file major version 65
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
make[2]: *** [build/swig/CMakeFiles/python_binding.dir/build.make:88: build/swig/AddonModuleXbmcgui.i.cpp] Error 1
make[1]: *** [CMakeFiles/Makefile2:12049: build/swig/CMakeFiles/python_binding.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Need help programming a Streamzap remote?
Reply
#2
Likely your JDK/JRE is too new for the swig version in the nexus branch. Try using and older JDK or newer swig.

so long,

Hias
Reply
#3
Hi HiassofT - I am using swig 4.4.1 and jre-openjdk 21.u35.  I didn't find any documentation for supported versions.  What you you recommend trying?
Need help programming a Streamzap remote?
Reply
#4
Hmm, weird, just checked on https://javaalmanac.io/bytecode/versions/ and class file version 65 would match jre/jdk 21.

And as class files should be backward compatible (i.e. run on newer JREs) that would mean your jre / java is too old (not too new).

Can you check if you have older JREs/JDKs installed as well and double-check the output of "java -version" and "javac -version"? The latter should be identical (i.e. runtime matches compiler)

so long,

Hias
Reply
#5
Interesting... here is the output.  I do not have any older packages installed.
Code:
% ./usr/lib/jvm/default-runtime/bin/java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment (build 21+35)
OpenJDK 64-Bit Server VM (build 21+35, mixed mode, sharing)

I do not have a file named "javac" for the 2nd test.
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
Building Nexus on RPi4 triggers Caught: BUG! exception in phase 'semantic analysis'0
This forum uses Lukasz Tkacz MyBB addons.