From owner-freebsd-ports@freebsd.org Thu Apr 1 08:37:43 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 EDDFE5C4498; Thu, 1 Apr 2021 08:37:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9xQG46Hcz4vt2; Thu, 1 Apr 2021 08:37:42 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Date: Thu, 1 Apr 2021 10:37:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1617266260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Pg4dtYPOBLHNhiBeiP67RxP4+0cfDmoRm8Xchz4YVzg=; b=OqVLMGtxrE/gF6dCmR9cFDYlNrNq5sGsFCrZfI7WiLTAjvPs88mpRAlz7OoXWmO3nh/R4w WcUDjL5H7+8I8za8ZgLpI2TA6h/hSSNoAOV9bMN2cP08s1lZsQRlH1X7HOv4TGhihy92Fe RDMVG8rC5p8ewUzTFGWNL56ZGvImxerEDCo8jjXCxYVcD/h5nZQNKTodtE6p8rC3oJDATv lNTuUXlmFvhfyYWxdT6Gxv1V9PqPwoLZowInLkpqmO2IwXaWS4gXk5TSmYvEdE50VzQ+Vh ymzBigGbsXt3tdtzzCRM4gXB0pPOvegXg0YcsXijUyfJt48arhHoQpwV/bFBNA== From: Ronald Klop To: freebsd-ports@freebsd.org, freebsd-arm@freebsd.org Message-ID: <1071728798.124.1617266260257@localhost> Subject: Illegal instruction on new port mongodb49 on arm64 MIME-Version: 1.0 X-Mailer: Realworks (554.128.db2b1297238) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4F9xQG46Hcz4vt2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=OqVLMGtx; dmarc=pass (policy=none) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 194.109.157.24 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[194.109.157.24:from]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; 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]; HAS_X_PRIO_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[194.109.157.24:from]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-ports] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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, 01 Apr 2021 08:37:44 -0000 Hi, I created a new port for mongodb49: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254631 It compiles fine: https://www.klop.ws/mongodb49-4.9.0.r0.log When I run an application I get "Illegal Instruction" error. ============================================================== [root@rpi4 /tmp]# lldb /usr/local/bin/mongo (lldb) target create "/usr/local/bin/mongo" Current executable set to '/usr/local/bin/mongo' (aarch64). (lldb) run Process 55420 launching Process 55420 launched: '/usr/local/bin/mongo' (aarch64) Process 55420 stopped * thread #1, name = 'mongo', stop reason = signal SIGILL: illegal trap frame #0: 0x00000000016a320c mongo`___lldb_unnamed_symbol32$$mongo + 1784 mongo`___lldb_unnamed_symbol32$$mongo: -> 0x16a320c <+1784>: ldaddal x9, x8, [x8] 0x16a3210 <+1788>: ldr q0, [x11] 0x16a3214 <+1792>: mov w10, #0x20 0x16a3218 <+1796>: strb wzr, [sp, #0x68] (lldb) bt * thread #1, name = 'mongo', stop reason = signal SIGILL: illegal trap * frame #0: 0x00000000016a320c mongo`___lldb_unnamed_symbol32$$mongo + 1784 frame #1: 0x0000000042b29b58 frame #2: 0x0000000042b289f8 ============================================================== [root@rpi4 /tmp]# /usr/local/bin/mongo Illegal instruction (core dumped) [root@rpi4 /tmp]# lldb /usr/local/bin/mongo -c /var/tmp/0.mongo.0.55421.core (lldb) target create "/usr/local/bin/mongo" --core "/var/tmp/0.mongo.0.55421.core" Core file '/var/tmp/0.mongo.0.55421.core' (aarch64) was loaded. (lldb) bt * thread #1, name = 'mongo', stop reason = signal SIGILL * frame #0: 0x00000000016a320c mongo`___lldb_unnamed_symbol32$$mongo + 1784 frame #1: 0x0000000042b29b58 ld-elf.so.1`objlist_call_init(list=, lockstate=) at rtld.c:2855:7 frame #2: 0x0000000042b289f8 ld-elf.so.1`_rtld(sp=, exit_proc=, objp=) at rtld.c:828:5 frame #3: 0x0000000042b264d8 ld-elf.so.1`.rtld_start at rtld_start.S:41 ============================================================== NB: The default of the port uses LTO. I disabled it on my build system because of lack of memory. Can anybody help me with this? It would be interesting to know if this also happens on amd64. Regards, Ronald. From owner-freebsd-ports@freebsd.org Thu Apr 1 08:49:06 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 61B815C4A36 for ; Thu, 1 Apr 2021 08:49:06 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from hermes.heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2560 bits) client-digest SHA256) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9xgN4tlMz3CFc for ; Thu, 1 Apr 2021 08:49:03 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id 1318mOAD006603 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 1 Apr 2021 19:48:26 +1100 (AEDT) (envelope-from dewayne@heuristicsystems.com.au) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1617266906; x=1617871707; bh=8mMMIJGj4dNcKyFZGsep8eqfPfMbL3k5HKhI4lBrYzk=; h=Subject:To:From:Cc:Message-ID:Date; b=P1SYiSPYa7S/OWDpUDKjhzRNglyE3/PQECkh98J3F/EUaGOIKJ6z6GRj192gZv4NJ ovr1kkqclvgHs3EWRRCwnXl9Va25r0Srvq4iymBW6AXr1vMTmUoBCtjrsVzksm7SLQ u8/f5IbHaaEBshwN+nKoPumzpsJNbVVEkl0a+FboDnHnxJvIx0FU6 X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: No update for a day on ports? To: freebsd-ports@freebsd.org References: <20210401082247.668e4394@zeta.dino.sk> From: Dewayne Geraghty Cc: freebsd-ports@dino.sk Message-ID: <3b7de439-12a1-70a4-7aec-8b2a9fde38ba@heuristicsystems.com.au> Date: Thu, 1 Apr 2021 19:47:01 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4F9xgN4tlMz3CFc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=heuristicsystems.com.au header.s=hsa header.b=P1SYiSPY; dmarc=none; spf=pass (mx1.freebsd.org: domain of dewayne@heuristicsystems.com.au designates 203.41.22.115 as permitted sender) smtp.mailfrom=dewayne@heuristicsystems.com.au X-Spamd-Result: default: False [-3.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[heuristicsystems.com.au:+]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[heuristicsystems.com.au:s=hsa]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[heuristicsystems.com.au:dkim]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[heuristicsystems.com.au]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] 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, 01 Apr 2021 08:49:06 -0000 On 1/04/2021 6:19 pm, Herbert J. Skuhra wrote: > https://wiki.freebsd.org/git > Thanks Milan for bringing this to everyone's attention. Would appreciate if anyone can provide insight as to the 4 git commands that I need to function, in a manner similar to the way I use svnlite use. Git equivalents for: svnlite update /usr/ports svnlite update -r '{$YYYY-$MM-$DD}' /usr/ports/$category/$port svnlite log -l $N /usr/ports/$category/$port svnlite diff /usr/ports/$category/$port I'm sure many other users would have a similar usage (and similar non-knowledge of git) Is this git clone -o freebsd --config remote.freebsd.fetch='+refs/notes/*:refs/notes/*' https://git.freebsd.org/${repo}.git really the equivalent of svnlite update /usr/ports I have a few changes to the infrastructure that I don't want to loose by overwriting those changes. As a minor aside, has anyone stated the reason why the user-base of base or ports are moving to git? (And its greatly appreciated that 12-stable will continue to feed svn as it provides an opportunity for users to migrate to, what for many, is new) Kind regards, Dewayne. PS We use ports to build, no remote packages (since FreeBSD 4).