From owner-freebsd-ports-bugs@freebsd.org Sat May 18 01:30:21 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C68115A4719 for ; Sat, 18 May 2019 01:30:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D9C1E92427 for ; Sat, 18 May 2019 01:30:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9A0D115A4718; Sat, 18 May 2019 01:30:20 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75F2215A4717 for ; Sat, 18 May 2019 01:30:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08C5392425 for ; Sat, 18 May 2019 01:30:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5793626B4 for ; Sat, 18 May 2019 01:30:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x4I1UJg0001757 for ; Sat, 18 May 2019 01:30:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x4I1UJlK001756 for ports-bugs@FreeBSD.org; Sat, 18 May 2019 01:30:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 237960] land/erlang does not build on arm with the NATIVE option Date: Sat, 18 May 2019 01:30:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsdpr@phoe.frmug.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2019 01:30:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237960 Bug ID: 237960 Summary: land/erlang does not build on arm with the NATIVE option Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: bsdpr@phoe.frmug.org The erland/OTP port (lang/erlang) fails to build on a RPI when the NATIVE option is selected in addition to the pre-selected ones. Compilation halts = on an bad system call: [...] erlc -W -DMERL_NO_TRANSFORM +debug_info -pa ../ebin -pa ./ -I../include +native +nowarn_shadow_vars +warn_unused_import -o ./ merl_transform.erl erlc -W +debug_info -pa ../ebin -pa ./ -I../include +native +nowarn_shadow_= vars +warn_unused_import -o../ebin merl_transform.erl gmake[5]: *** [Makefile:74: ../ebin/merl_transform.beam] Bad system call (c= ore dumped) gmake[5]: Leaving directory '/usr/obj/ports/usr/ports/lang/erlang/work/otp-OTP-19.3.6.13/lib/syntax_too= ls/src' This build was attempted on a RPI2 using a 11-STABLE base system built from= svn revision 345570. The core dump does not look readily informative: # gdb ../../../bin/armv6-portbld-freebsd11.2/beam.smp beam.smp.core [...] (gdb) bt #0 0x001b1e30 in try_alloc () #1 0x001b1cf0 in hipe_alloc_code () #2 0x001aab04 in hipe_bifs_enter_code_2 () #3 0x00043e3c in $a.18 () #4 0x00043e3c in $a.18 () Since I'm new at bean/erlang/otp I have no idea on how to further investiga= te this issue. Having beam machines on the inexpensive RPIs would be extremely useful to experiment with the distributive features of erlang. As I did suspect that some-thing might be amiss with the HiPE compiler on a= rm, I also attempted a build without it and without NATIVE. That build also fai= led for another reason which is oulined bellow: erlc -W +debug_info -I../include -I../../kernel/include -Werror -o../ebin dets_utils.erl gmake[5]: *** [/usr/obj/ports/usr/ports/lang/erlang/work/otp-OTP-19.3.6.13/make/armv6-por= tbld-freebsd11.2/otp.mk:119: ../ebin/dets_utils.beam] Segmentation fault (core dumped) gmake[5]: Leaving directory '/usr/obj/ports/usr/ports/lang/erlang/work/otp-OTP-19.3.6.13/lib/stdlib/src' Again the stack trace in uninformative: # gdb ../../../bin/armv6-portbld-freebsd11.2/beam.smp beam.smp.core [...] (gdb) bt #0 0x00000004 in ?? () The only build that did complete and eventually install is with HiPE and without NATIVE. However, at that point, I'm left in a confused state: shoul= d I trust this virtual machine? I'm inclined to not give it my trust. --=20 You are receiving this mail because: You are the assignee for the bug.=