www/firefox on RPI2: error: instruction requires: armv6t2

Mark Millard markmi at dsl-only.net
Thu May 11 20:53:37 UTC 2017

On 2017-May-10, at 10:31 PM, Mark Millard <markmi at dsl-only.net> wrote:

> On 2017-May-10, at 8:37 PM, bob prohaska <fbs at www.zefox.net> wrote:
>> With freebsd at 
>> FreeBSD www.zefox.com 12.0-CURRENT FreeBSD 12.0-CURRENT #50 r318138: Wed May 10 10:30:51 PDT 2017     bob at www.zefox.com:/usr/obj/usr/src/sys/RPI2  arm
>> ports at 
>> Revision: 440570
>> and using 
>> root at www:/usr/ports/www/firefox # make CFLAGS='-mcpu=cortex-a7' -DBATCH > make.log &
>> the compilation seems to halt with
>> /usr/ports/www/firefox/work/firefox-53.0.2/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12_armv7.S:88:3: error: instruction requires: armv6t2
>> sbfx r11, r6, #12, #16
>> ^

It would help others help you if the assembler or
compiler command that specifically generated this
error message was also included in the text that
you quote. Then we could see what the command
was and what options had been supplied to it
(and so what had not been supplied as well).

To some extent is is for folks that might not build
firefox or even X11 but still might be of some help
with if they could see the extra context. But folks
that do build firefox might also compare their
context's details to your context's details and
might report on differences that helped them.

>> /usr/ports/www/firefox/work/firefox-53.0.2/media/webrtc/trunk/webrtc/common_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/common_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
>> I'm told this is likely caused by  CFLAGS='-mcpu=cortex-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):
> 	$(AS) -o $@ $(DEFINES) $(ASFLAGS) $($(notdir $<)_FLAGS) $(LOCAL_INCLUDES) -c $<
> then the -mcpu=cortex-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)].

Mark Millard
markmi at dsl-only.net

More information about the freebsd-ports mailing list