Bug 243815 - lang/erlang-runtime22 Build fails if NATIVE is enabled
Summary: lang/erlang-runtime22 Build fails if NATIVE is enabled
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-erlang (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-02 19:01 UTC by Grzegorz Junka
Modified: 2020-02-02 19:01 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (erlang)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Junka 2020-02-02 19:01:34 UTC
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 !!!