Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Oct 2021 22:13:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        erlang@FreeBSD.org
Subject:   [Bug 237960] lang/erlang: Does not build on arm with the NATIVE option enabled
Message-ID:  <bug-237960-38768-L4YzeADBtm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237960-38768@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237960-38768@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237960

--- Comment #18 from Bertrand Petit <bsdpr@phoe.frmug.org> ---
(In reply to Dave Cottlehuber from comment #17)
I get mixed results. I attempted to build erlang-runtime{22|23|24} on a 12.2
armv7 host (RPi2B) with clang 10. I did not run the test suite, although I =
can
do it if required.

Could the execution of the test suite be integrated to the ports makefiles?

$ clang --version
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git
llvmorg-10.0.1-0-gef32c611aa2)
Target: armv7-unknown-freebsd12.2-gnueabihf
Thread model: posix
InstalledDir: /usr/bin


erlang-runtime22 (22.3.4.20_1) is built without issue
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

Port configuration is

=3D=3D=3D> The following configuration options are available for
erlang-runtime22-22.3.4.20_1:
     CORBA=3Doff: Enable Corba support
     DIRTY=3Don: Enable Dirty schedulers
     HIPE=3Don: Build native HiPE compiler
     JAVA=3Doff: Java platform support
     KQUEUE=3Don: Enable Kernel Poll (kqueue) support
     NATIVE=3Don: Enable native libraries
     ODBC=3Doff: ODBC database backend
     OPENSSL=3Don: SSL/TLS support via OpenSSL
     SCTP=3Don: Enable SCTP support
     THREADS=3Don: Threading support
     WX=3Doff: Enable WX application



erlang-runtime23 (23.3.4.4) fails to build
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

gmake[4]: Entering directory
'/usr/obj/ports/usr/ports/lang/erlang-runtime23/work/otp-OTP-23.3.4.4/lib/s=
yntax_tools'
=3D=3D=3D Entering application syntax_tools
gmake[5]: Entering directory
'/usr/obj/ports/usr/ports/lang/erlang-runtime23/work/otp-OTP-23.3.4.4/lib/s=
yntax_tools/src'
erlc -W -Werror +debug_info -DUSE_ESOCK=3Dtrue -pa ../ebin -pa ./ -I../incl=
ude
+native +nowarn_shadow_vars +warn_unused_import  -o../ebin erl_syntax.erl
<HiPE (v 4.0.1)> EXITED with reason
{'trans_fun/2',{bs_start_match4,{atom,no_fail},{u,3},{x,0},{x,3}}}
@hipe_beam_to_icode:1221
<HiPE (v 4.0.1)> Error: [hipe:859]: INTERNAL ERROR
while compiling erl_syntax
crash reason: {hipe_beam_to_icode,1221,
                  {'trans_fun/2',
                      {bs_start_match4,{atom,no_fail},{u,3},{x,0},{x,3}}}}
  in function  hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
1221)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
430)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
349)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
1123)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
290)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
312)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
297)
  in call from hipe_beam_to_icode:trans_fun/2 (hipe_beam_to_icode.erl, line
334)
erl_syntax.erl: internal error in native_compile;
crash reason: {hipe_beam_to_icode,1221,
    {'trans_fun/2',{bs_start_match4,{atom,no_fail},{u,3},{x,0},{x,3}}}}
gmake[5]: *** [Makefile:74: ../ebin/erl_syntax.beam] Error 1


Port configuration is

=3D=3D=3D> The following configuration options are available for
erlang-runtime23-23.3.4.4_1:
     CORBA=3Doff: Enable Corba support
     DIRTY=3Don: Enable Dirty schedulers
     HIPE=3Don: Build native HiPE compiler
     JAVA=3Doff: Java platform support
     KQUEUE=3Don: Enable Kernel Poll (kqueue) support
     NATIVE=3Don: Enable native libraries
     ODBC=3Doff: ODBC database backend
     OPENSSL=3Don: SSL/TLS support via OpenSSL
     SCTP=3Don: Enable SCTP support
     THREADS=3Don: Threading support
     WX=3Doff: Enable WX application


erland-runtime24 (24.0.3) is built without issue
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Port configuration does not provide HIPE nor NATIVE knobs as shown below.

=3D=3D=3D> The following configuration options are available for
erlang-runtime24-24.0.3:
     CHUNKS=3Don: Enable in-line documentation in erlang console
     CORBA=3Doff: Enable Corba support
     JAVA=3Doff: Java platform support
     ODBC=3Doff: ODBC database backend
     OPENSSL=3Don: SSL/TLS support via OpenSSL
     SCTP=3Don: Enable SCTP support
     SHARING=3Don: Enable term copy-and-share support
     WX=3Doff: Enable WX application

--=20
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237960-38768-L4YzeADBtm>