From owner-freebsd-ports@freebsd.org Sat May 13 02:00:11 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35F20D6A9CF for ; Sat, 13 May 2017 02:00:11 +0000 (UTC) (envelope-from markmi@dsl-only.net) 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 18E5A1AE8 for ; Sat, 13 May 2017 02:00:11 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: by mailman.ysv.freebsd.org (Postfix) id 184DFD6A9CE; Sat, 13 May 2017 02:00:11 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17F94D6A9CD for ; Sat, 13 May 2017 02:00:11 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-8.reflexion.net [208.70.210.8]) (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 CE52F1AE5 for ; Sat, 13 May 2017 02:00:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 18760 invoked from network); 13 May 2017 02:01:17 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 13 May 2017 02:01:17 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Fri, 12 May 2017 22:00:04 -0400 (EDT) Received: (qmail 4912 invoked from network); 13 May 2017 02:00:04 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 13 May 2017 02:00:04 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id A8633EC92B8; Fri, 12 May 2017 19:00:03 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: www/firefox on RPI2: error: instruction requires: armv6t2 From: Mark Millard In-Reply-To: <20170513003431.GA80523@www.zefox.net> Date: Fri, 12 May 2017 19:00:03 -0700 Cc: ports@freebsd.org, freebsd-arm , jbeich@freebsd.org, Michal Meloun Content-Transfer-Encoding: quoted-printable Message-Id: <6B792DA2-85F3-4504-8325-D65DB23ECD68@dsl-only.net> References: <20170510151019.GA70628@www.zefox.net> <20170511033754.GA74153@www.zefox.net> <3C56C526-24E4-45D4-B202-562BD7CB22C2@dsl-only.net> <80B1CCCF-A151-40B8-87D5-CADD513CFAAD@dsl-only.net> <20170512014441.GA77264@www.zefox.net> <85B88765-A708-414B-A465-14A044196D3D@dsl-only.net> <20170512193131.GA79348@www.zefox.net> <20170513003431.GA80523@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2017 02:00:11 -0000 On 2017-May-12, at 5:34 PM, bob prohaska wrote: > On Fri, May 12, 2017 at 02:36:48PM -0700, Mark Millard wrote: >>=20 >> My guess from the above is that the problem will >> repeat in this rebuild. >>=20 >>=20 >>=20 > That's exactly what happened. A copy of make.log and =20 >=20 > armSP_FFTInv_CCSToR_F32_preTwiddleRadix2_unsafe_s.S >=20 > can be found at >=20 > http://www.zefox.net/~fbsd/rpi2/firefox/assembler_failure/ Your source is different than what I looked at. Yours has capitalized .MACRO instead of having a .macro as the assembler directive: .MACRO FFTSTAGE scaled, inverse, name and that might make a difference for the specific error. I have vague memories of seeing some other list report that involved lower-casing an assembler directive. Jan Beich had a list reply that showed changes to have lower case for such for clang in multiple files: = https://android.googlesource.com/platform/external/chromium_org/third_part= y/openmax_dl/+/5d8507771824%5E%21/ Apparently what is in ports predates such changes. (There may be other things that it predates as well.) Nor does it seem to patch such things. The error messages with "\name" involved seem to be tied to not recognizing .MACRO and .endm (macro directives) and so not doing name substitution from the macro directive's arguments. Most everything else listed as an error in that area looks to be assembler notation mismatches. I've no clue what assembler might accept the notation that is in use. If you change assemblers other things may need to change, such as -mcpu=3Dcorex-a7 might not be the right option syntax for the purpose any more (just for the assembler). > It happens that make.log records a number of errors in the > configuration phase of compilation. The errors don't seem fatal:=20 >=20 > Error processing command. Ignoring because optional. = (optional:setup.py:python/psutil:build_ext:--inplace) >=20 > Could they be in some way related to the assembler problem? I've no real clue but would guess not. > If other files would be informative I'll gladly post them. I'm running out of things that my generic background knowledge covers. Michal Meloun had a reply that mentioned: "many pieces of assembly files still uses pre-UAL syntax" and so may know more about the context than I do. Looking it up UAL seems to be short for "Unified Assembler Language". Apparently pre-UAL does not support 32-bit Thumb Instructions. Jan B. had written: so the following wouldn't help? Index: Mk/bsd.gecko.mk =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=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=3D=3D=3D=3D=3D --- Mk/bsd.gecko.mk (revision 440464) +++ Mk/bsd.gecko.mk (working copy) @@ -475,6 +475,10 @@ USE_BINUTILS=3D # intel-gcm.s CFLAGS+=3D -B${LOCALBASE}/bin LDFLAGS+=3D -B${LOCALBASE}/bin . endif +.elif ${ARCH:Marm*} +USE_BINUTILS=3D # media/openmax_dl/ +MOZ_EXPORT+=3D ASFLAGS=3D"${ASFLAGS}" +ASFLAGS+=3D -B${LOCALBASE}/bin .elif ${ARCH:Mpowerpc*} USES:=3D compiler:gcc-c++11-lib ${USES:Ncompiler*c++11*} . if ${ARCH} =3D=3D "powerpc64" That would appear to try to use the assembler from devel/binutils if I gather the intent correctly. It is (implicitly) a reference to /usr/ports/Mk/bsd.gecko.mk (presuming the usual default place for the ports source code tree). Both the Jan B. and the Michal M. quotes are visible in: https://lists.freebsd.org/pipermail/freebsd-ports/2017-May/108511.html There is more there than I've referenced above. May be Jan B. or Michal M. know some about what tool(s) handle such "pre-UAL" syntax and how to use such tools. =3D=3D=3D Mark Millard markmi at dsl-only.net