From owner-freebsd-ports@freebsd.org Thu Apr 29 15:04:04 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 70FA362D91B for ; Thu, 29 Apr 2021 15:04:04 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FWJg81tkwz4mjp for ; Thu, 29 Apr 2021 15:04:04 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: by mailman.nyi.freebsd.org (Postfix) id 40C6462D91A; Thu, 29 Apr 2021 15:04:04 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 408D862D4E9 for ; Thu, 29 Apr 2021 15:04:04 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FWJg70ZQ9z4msM; Thu, 29 Apr 2021 15:04:02 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Type:MIME-Version:Date:Message-ID:From:Subject:To:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AvA34/gdTSZ9HLe7gwXzVKEn7e8dUtB7is7Qm98bSxk=; b=HmABqDPPK+GGGyDduunm3quTPX cT1kofJqyV9bQycz++GuR8O89RvFrIbH/CB83W4OHPgYE0sAhSyZKUDJZip9saaBG8/vEKx6KIaTr 972d36U7lxf9zYt37G92JrbooyjTVnBq2AWUuTGQ4LF1HerFGB54/dxZbptWzxc+ZAN8=; To: dmgk@FreeBSD.org, ports@freebsd.org Subject: lang/go coredumps on RPI4 From: Ronald Klop Message-ID: <881eb277-d993-3ac4-3471-b95219c71326@klop.ws> Date: Thu, 29 Apr 2021 17:03:38 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 Content-Language: en-US X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: --- X-Spam-Score: -3.1 X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE autolearn=disabled version=3.4.2 X-Scan-Signature: 6e23ea5b143b5fdf6b2724ffc44cc2a7 X-Rspamd-Queue-Id: 4FWJg70ZQ9z4msM X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=HmABqDPP; dmarc=pass (policy=none) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RWL_MAILSPIKE_VERYGOOD(0.00)[195.190.28.88:from]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[ports] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2021 15:04:04 -0000 Hi maintainer of lang/go and ports ML, Latest go gives an Illegal Instruction on arm64. I'm running FreeBSD-14/arm64 on RPI4. Compilation of lang/go goes well. But follow-up ports like grafana7 and mongodb42-tools coredump during compilation. [00:01:12] ===> Building mongodump from ./mongodump/main [00:01:12] go tool compile: signal: illegal instruction (core dumped) [00:01:12] *** Error code 1 [00:01:12] [00:01:12] Stop. [00:01:12] make: stopped in /usr/ports/databases/mongodb42-tools I tried to get some debug info. I don't know if I got useful information here. I don't use gdb/lldb and go that often. root@rpi4:/ # /usr/bin/lldb -c var/tmp/65534.compile.0.63376.core /usr/local/go/pkg/tool/freebsd_arm64/compile (lldb) target create "/usr/local/go/pkg/tool/freebsd_arm64/compile" --core "var/tmp/65534.compile.0.63376.core" Core file '/var/tmp/65534.compile.0.63376.core' (aarch64) was loaded. Cannot read termcap database; using dumb terminal settings. (lldb) bt This version of LLDB has no plugin for the go language. Inspection of frame variables will be limited. * thread #1, name = 'compile', stop reason = signal SIGILL   * frame #0: 0x0000000000074880 compile`_rt0_arm64_freebsd at rt0_freebsd_arm64.s:9     frame #1: 0x0000000000074880 compile`runtime.asyncPreempt at preempt_arm64.s:148 (lldb) quit NB: This compiles fine on the FreeBSD pkg builders. So it might have something todo with ARMv8.1 vs ARMv8.2 instruction set. I'm not familiar with this. NB2: It also compiles fine in a FreeBSD-12 jail which uses an older clang version. Regards, Ronald.