Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 22:31:26 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        ports@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: www/firefox on RPI2: error: instruction requires: armv6t2
Message-ID:  <3C56C526-24E4-45D4-B202-562BD7CB22C2@dsl-only.net>
In-Reply-To: <20170511033754.GA74153@www.zefox.net>
References:  <80D06D70-8534-456C-A66F-CDD4CE0D5811@FreeBSD.org> <7306a091-1350-d6cb-b329-c56f2d80c0bf@freebsd.org> <20170508161511.GA64826@www.zefox.net> <CAJwjRmR8NswYgkM6RjT5vi_OR63eaXCphV7_RToEnXzZqQKcWA@mail.gmail.com> <20170508233241.GA65262@www.zefox.net> <CAJwjRmSxxpNX44T1Aqrg8VWceP4zL1BO5s33RZX8VGiWYo=dnQ@mail.gmail.com> <20170509230236.GA69546@www.zefox.net> <CAJwjRmQiON9J8zZyb7ad5YNo7Ccrdwd0W%2B-6rqzwdcZp%2BEXv%2Bw@mail.gmail.com> <20170510151019.GA70628@www.zefox.net> <CAJwjRmTuXTcG2%2Bxm4tEwV6NRec9Y_kP62_Zza1=YQq508d0fFQ@mail.gmail.com> <20170511033754.GA74153@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-May-10, at 8:37 PM, bob prohaska <fbs at www.zefox.net> wrote:

> With freebsd at=20
> FreeBSD www.zefox.com 12.0-CURRENT FreeBSD 12.0-CURRENT #50 r318138: =
Wed May 10 10:30:51 PDT 2017     =
bob@www.zefox.com:/usr/obj/usr/src/sys/RPI2  arm
>=20
> ports at=20
> Revision: 440570
>=20
> and using=20
> root@www:/usr/ports/www/firefox # make CFLAGS=3D'-mcpu=3Dcortex-a7' =
-DBATCH > make.log &
>=20
> the compilation seems to halt with
> =
/usr/ports/www/firefox/work/firefox-53.0.2/media/webrtc/trunk/webrtc/commo=
n_audio/signal_processing/filter_ar_fast_q12_armv7.S:88:3: error: =
instruction requires: armv6t2
>  sbfx r11, r6, #12, #16
>  ^
> =
/usr/ports/www/firefox/work/firefox-53.0.2/media/webrtc/trunk/webrtc/commo=
n_audio/signal_processing/filter_ar_fast_q12_armv7.S:99:3: error: =
instruction requires: armv6t2
>  sbfx r11, r6, #12, #16
>  ^
> =
/usr/ports/www/firefox/work/firefox-53.0.2/media/webrtc/trunk/webrtc/commo=
n_audio/signal_processing/filter_ar_fast_q12_armv7.S:142:3: error: =
instruction requires: armv6t2
>  sbfx r8, r6, #12, #16
>  ^
> gmake[6]: *** =
[/usr/ports/www/firefox/work/firefox-53.0.2/config/rules.mk:989: =
filter_ar_fast_q12_armv7.o] Error 1
>=20
> I'm told this is likely caused by  CFLAGS=3D'-mcpu=3Dcortex-a7', which =
is
> needed to avoid a "NEON not enabled" error earlier in the compile.


If the .S files (assembler source files) are used via the
likes of (from looking at some vintage of config/rules.mk
on the web):

$(SOBJS):

	$(REPORT_BUILD)
	$(AS) -o $@ $(DEFINES) $(ASFLAGS) $($(notdir $<)_FLAGS) =
$(LOCAL_INCLUDES) -c $<

then the -mcpu=3Dcortex-a7 is likely not involved.

Instead such a context would suggest needing to supply
some option in ASFLAGS for the $(ASFLAGS) expansion, an
option appropriate to whatever the assembler command is
[expansion of $(AS)].


=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C56C526-24E4-45D4-B202-562BD7CB22C2>