Summary: | lang/erlang-runtime21: build on ARM throws Segmentation Fault | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Leo Schneider <ttkdroid> | ||||||||
Component: | Individual Port(s) | Assignee: | Dave Cottlehuber <dch> | ||||||||
Status: | Closed Unable to Reproduce | ||||||||||
Severity: | Affects Only Me | CC: | bsdpr, dch, erlang, mikael | ||||||||
Priority: | --- | Keywords: | needs-qa | ||||||||
Version: | Latest | Flags: | koobs:
maintainer-feedback?
(erlang) |
||||||||
Hardware: | arm | ||||||||||
OS: | Any | ||||||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237960 | ||||||||||
Attachments: |
|
Maintainer informed via mail Created attachment 203894 [details]
Build config
I tried to disable the "HIPE" build during the port pre-build configuration however, seems that the port is ignoring anything I select in the config. For instance, if I de-select HIPE or CORBA, it downloads and builds CORBA anyway. Created attachment 203896 [details]
Config ignoring options to disable HIPE and CORBA
It works here, FreeBSD 13.0-CURRENT r343768, armv7 /usr/local/lib/erlang21/bin/erl Erlang/OTP 21 [erts-10.3.4] [source] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] Eshell V10.3.4 (abort with ^G) 1> Can you give us more details? (In reply to mikael.urankar from comment #5) I'm running FreeBSD 12.0-RELEASE r341666 GENERIC on a Beaglebone black. fornax erlang-runtime21 # make showconfig ===> The following configuration options are available for erlang-runtime21-21.3.6: CORBA=off: Enable Corba support DIRTY=on: Enable Dirty schedulers HIPE=off: Build native HiPE compiler JAVA=off: Java platform support KQUEUE=on: Enable Kernel Poll (kqueue) support NATIVE=off: Enable native libraries ODBC=off: ODBC database backend OPENSSL=on: SSL/TLS support via OpenSSL SCTP=on: Enable SCTP support THREADS=on: Threading support WX=off: Enable WX application ===> Use 'make config' to modify these settings But I'm still getting === Entering application hipe gmake[5]: Entering directory '/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/lib/hipe/misc' ERLC ../ebin/hipe_consttab.beam gmake[5]: *** [/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/make/armv7-unknown-freebsd12.0-gnueabihf/otp.mk:132: ../ebin/hipe_consttab.beam] Segmentation fault (core dumped) gmake[5]: Leaving directory '/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/lib/hipe/misc' gmake[4]: *** [/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/make/otp_subdir.mk:29: opt] Error 2 gmake[4]: Leaving directory '/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/lib/hipe' gmake[3]: *** [/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/make/otp_subdir.mk:29: opt] Error 2 gmake[3]: Leaving directory '/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6/lib' gmake[2]: *** [Makefile:583: secondary_bootstrap_build] Error 2 gmake[2]: Leaving directory '/usr/ports/lang/erlang-runtime21/work/otp-OTP-21.3.6' *** Error code 1 Stop. make[1]: stopped in /usr/ports/lang/erlang-runtime21 *** Error code 1 Stop. make: stopped in /usr/ports/lang/erlang-runtime21 I confirm it crashes on 12.0-RELEASE. fwiw it builds fine with CFLAGS+= -O0 Please see this related PR which tries to handle the same issue for lang/erlang and has a proposed patch: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237960 NB https://bugs.erlang.org/projects/ERL/issues/ERL-958 should have resolved this upstream now. As this is now 2 years old, please let us know if you can re-test on arm6 or arm7 so we can pull in your patch, against e.g. lang/erlang or erlang-runtime21 still. I appreciate that a BBB is not a particularly fast compile target... I don't have a BBB or other arm32 system to test this against, please re-open if this is reproducible on the latest lang/erlang configs. thanks for the report! |
Created attachment 203893 [details] Issue evidence Ordinary build of this port in an ARM 32bits machine throws a segmentation fault and the port can't be compiled.