Both www/firefox and www/firefox-esr seem to reproducibly fail to compile on FreeBSD www.zefox.com 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r302526: Mon Jul 11 05:59:37 PDT 2016 bob@www.zefox.com:/usr/obj/usr/src/sys/RPI2 arm The controlling console reports in part: mkdir -p '.deps/' Unified_cpp_webrtc_modules0.o c++ -o Unified_cpp_webrtc_modules0.o -c -I/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/dist/system_wrappers -include /usr/ports/www/firefox/work/firefox-47.0.1/config/gcc_hidden.h -DNDEBUG -DTRIMMED=1 -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DUSE_NSS=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DWEBRTC_MOZILLA_BUILD -DEXPAT_RELATIVE_PATH -DWEBRTC_ARCH_ARM -DWEBRTC_BSD -DWEBRTC_THREAD_RR -DWEBRTC_POSIX -D__STDC_FORMAT_MACROS -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk/webrtc/modules -I/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/media/webrtc/trunk/webrtc/modules/modules_video_processing -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk/webrtc/common_audio/resampler/include -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk/webrtc/common_audio/signal_processing/include -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk/webrtc/common_audio/vad/include -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk/webrtc/common_video/interface -I/usr/ports/www/firefox/work/firefox-47.0.1/media/webrtc/trunk/webrtc/common_video/libyuv/include -I/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/ipc/ipdl/_ipdlheaders -I/usr/ports/www/firefox/work/firefox-47.0.1/ipc/chromium/src -I/usr/ports/www/firefox/work/firefox-47.0.1/ipc/glue -I/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/dist/include -fPIC -DMOZILLA_CLIENT -include /usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/mozilla-config.h -MD -MP -MF .deps/Unified_cpp_webrtc_modules0.o.pp -Qunused-arguments -isystem/usr/local/include -DLIBICONV_PLUG -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wwrite-strings -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wclass-varargs -Wloop-analysis -Wthread-safety -Wunreachable-code -Wno-invalid-offsetof -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -O -pipe -O3 -DLIBICONV_PLUG -fno-strict-aliasing -DLIBICONV_PLUG -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pipe -O -O3 -fomit-frame-pointer /usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/media/webrtc/trunk/webrtc/modules/modules_video_processing/Unified_cpp_webrtc_modules0.cpp Assertion failed: (isReg() && "This is not a register operand!"), function getReg, file /usr/src/lib/clang/libllvmarmdesc/../../../contrib/llvm/include/llvm/MC/MCInst.h, line 64. c++: error: unable to execute command: Abort trap (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: armv6--freebsd12.0-gnueabihf Thread model: posix InstalledDir: /usr/bin c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. c++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: c++: note: diagnostic msg: /tmp/Unified_cpp_webrtc_modules0-42716a.cpp c++: note: diagnostic msg: /tmp/Unified_cpp_webrtc_modules0-42716a.sh c++: note: diagnostic msg: ******************** gmake[7]: *** [/usr/ports/www/firefox/work/firefox-47.0.1/config/rules.mk:967: Unified_cpp_webrtc_modules0.o] Error 254 gmake[7]: Leaving directory '/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0/media/webrtc/trunk/webrtc/modules/modules_video_processing' gmake[6]: *** [/usr/ports/www/firefox/work/firefox-47.0.1/config/recurse.mk:71: media/webrtc/trunk/webrtc/modules/modules_video_processing/target] Error 2 gmake[6]: Leaving directory '/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0' gmake[5]: *** [/usr/ports/www/firefox/work/firefox-47.0.1/config/recurse.mk:33: compile] Error 2 gmake[5]: Leaving directory '/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0' gmake[4]: *** [/usr/ports/www/firefox/work/firefox-47.0.1/config/rules.mk:557: default] Error 2 gmake[4]: Leaving directory '/usr/ports/www/firefox/work/firefox-47.0.1/obj-armv6-portbld-freebsd12.0' gmake[3]: *** [/usr/ports/www/firefox/work/firefox-47.0.1/client.mk:419: realbuild] Error 2 gmake[3]: Leaving directory '/usr/ports/www/firefox/work/firefox-47.0.1' gmake[2]: *** [/usr/ports/www/firefox/work/firefox-47.0.1/client.mk:181: build] Error 2 gmake[2]: Leaving directory '/usr/ports/www/firefox/work/firefox-47.0.1' *** Error code 1 Stop. make[1]: stopped in /usr/ports/www/firefox *** Error code 1 Stop. make: stopped in /usr/ports/www/firefox
Created attachment 172452 [details] Second of two files generated by compiler crash reporting mechanism I'm not competent to fix anything, but will be happy to supply additional information or perform testing.
I can reproduce on /projects/clang390-import with just the following steps $ cd /usr/ports/www/firefox $ make $ cd $(make -V WRKSRC)/obj*/media/webrtc/trunk/webrtc/modules/modules_video_processing $ rm *.o $ echo 'OS_CXXFLAGS += -target armv6kz--freebsd12.0-gnueabihf' >>backend.mk $ gmake Note, -O0 and -O1 build fine but -O2 and -O3 crash.
(In reply to Bob Prohaska from comment #1) > Created attachment 172452 [details] > Second of two files generated by compiler crash reporting mechanism Can you please also attach the .cpp file? This is rather essential to be able to reproduce.
Created attachment 175164 [details] .sh file generated by clang crash
Created attachment 175165 [details] .cpp file generated by clang crash
The new attachments are applicable to root@www:/usr/ports/www/firefox-esr # svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: https://svn0.us-west.freebsd.org/ports/head Relative URL: ^/head Repository Root: https://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 422757 Node Kind: directory Schedule: normal Last Changed Author: kwm Last Changed Rev: 422757 Last Changed Date: 2016-09-25 14:40:54 -0700 (Sun, 25 Sep 2016) and root@www:/usr/ports/www/firefox-esr # uname -a FreeBSD www.zefox.com 11.0-PRERELEASE FreeBSD 11.0-PRERELEASE #3 r306297: Sat Sep 24 09:29:12 PDT 2016 bob@www.zefox.com:/usr/obj/usr/src/sys/RPI2 arm root@www:/usr/ports/www/firefox-esr # Make now reports www/firefox to be broken and declines to compile.
(In reply to Bob Prohaska from comment #5) > Created attachment 175165 [details] > .cpp file generated by clang crash Eh, this seems to be the same .sh file from attachment 175164 [details]. If the .cpp file is too large, please compress it using xz.
*** This bug has been marked as a duplicate of bug 203989 ***
@Bob, can you please try the fix from bug 203989 and report success (or failure) there?