From owner-freebsd-arm@freebsd.org Tue Apr 2 02:00:53 2019 Return-Path: Delivered-To: freebsd-arm@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 2F5A0154F792; Tue, 2 Apr 2019 02:00:53 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AFA86BE6E; Tue, 2 Apr 2019 02:00:52 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id x321xvSI027287 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 1 Apr 2019 18:59:58 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id x321xvFC027286; Mon, 1 Apr 2019 18:59:57 -0700 (PDT) (envelope-from fbsd) Date: Mon, 1 Apr 2019 18:59:56 -0700 From: bob prohaska To: John F Carr Cc: "freebsd-ports@freebsd.org" , "freebsd-arm@freebsd.org" Subject: Re: RPI3, error: invalid operand in inline asm: 'rev16 ${0:w}, ${1:w}' Message-ID: <20190402015956.GA27268@www.zefox.net> References: <20190330152327.GA11933@www.zefox.net> <236A3D25-0B4D-46DA-95BA-71DA505CC2E0@exchange.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <236A3D25-0B4D-46DA-95BA-71DA505CC2E0@exchange.mit.edu> User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 4AFA86BE6E X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.16 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_HAS_CURRENCY(1.00)[]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.72)[0.720,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.44)[0.445,0]; MX_GOOD(-0.01)[cached: www.zefox.net]; NEURAL_SPAM_LONG(0.96)[0.958,0]; IP_SCORE(0.15)[ip: (0.56), ipnet: 50.1.16.0/20(0.28), asn: 7065(-0.01), country: US(-0.06)]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2019 02:00:53 -0000 On Sat, Mar 30, 2019 at 05:50:35PM +0000, John F Carr wrote: > > > > On Mar 30, 2019, at 11:23 , bob prohaska wrote: > > > > In a recent attempt to compile www/chromium on an RPI3 running r345516 > > compilation stopped with repeated reports of > > > > /usr/include/machine/endian.h:89:19: error: invalid operand in inline asm: 'rev16 ${0:w}, ${1:w}' > > > > Chromium compiled on the same host a couple of months ago, but the > > executable failed on a runtime library error. Now attempts to upgrade > > stop during compilation. Ports are presently at revision 496949. > > > > Thanks for reading, and any guidance. > > > > bob prohaska > > The swap function at that line in sys/arm64/include/endian.h doesn't look right to me. I think it should read > > __asm("rev16 %w0, %w1\n" : "=r" (ret) : "r" (w)); > > instead of > > __asm __volatile("rev16 %w0, %w1\n" : "=&r" (ret), "+r" (v)); > > Two changes: (1) it doesn't need to be volatile because it has no side effects and (2) the constraints and lack of explicit input operand are wrong. The other swap functions should have similar changes. > Apologies for being obtuse, but is that suggestive of a problem with the host system, or a problem with the port? Thanks for reading! bob prohaska