Similar #237960 has been reported for ARM. In my case I build everything with default options only enabling NATIVE in erlang-runtime22. gmake[4]: Entering directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/lib/hipe/misc' erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_gensym.erl erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_data_pp.erl erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_pack_constants.erl erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_sdi.erl erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_segment_trees.erl gmake[4]: Leaving directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/lib/hipe/misc' gmake[4]: Entering directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/lib/hipe/main' erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +nowarn_shadow_vars +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_main.erl erlc -W +debug_info -DUSE_ESOCK=true +native -Werror +nowarn_shadow_vars +warn_export_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe.erl compile: warnings being treated as errors hipe.erl: native-code compilation failed because of an unimplemented instruction (catch). gmake[4]: *** [/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/make/amd64-portbld-freebsd12.1/otp.mk:138: ../ebin/hipe.beam] Error 1 gmake[4]: Leaving directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/lib/hipe/main' gmake[3]: *** [/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/make/otp_subdir.mk:29: opt] Error 2 gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/lib/hipe' gmake[2]: *** [/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/make/otp_subdir.mk:29: opt] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4/lib' gmake[1]: *** [Makefile:507: libs] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/erlang-runtime22/work/otp-OTP-22.2.4' *** Error code 1 Stop. make: stopped in /usr/ports/lang/erlang-runtime22 =>> Cleaning up wrkdir ===> Cleaning for erlang-runtime22-22.2.4 build of lang/erlang-runtime22 | erlang-runtime22-22.2.4 ended at Sun Feb 2 18:06:24 UTC 2020 build time: 00:13:57 !!! build failure encountered !!!
closing as native is no longer part of lang/erlang. If this still fails to build on a current release, please report this upstream https://github.com/erlang/otp/ as well.