Date: Sat, 3 Oct 2020 11:28:21 +0530 From: Sachin S <msachinn7@gmail.com> To: gecko@freebsd.org Subject: firefox-esr debug build failed on Freebsd 12.1 Message-ID: <CAAK9MUBunse5%2BQb_wt9h_7RBp-uL3PugYD-4xd3vC8Dqt_DcKg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello, I was trying to build a debug version of firefox-esr on Freebsd 12.1. This was basically to check a problem on youtube not able to play the next video while on autoplay. I am using a OSSv4.2 driver for my soundcard, as it's not supported in main sound drivers. So, I disabled all the sound options(alsa, sndio etc.) in firefox config file, enabled debug mode. Below is the error I see, while a release build went fine without any problem. image/decoders/Unified_cpp_image_decoders0.o /usr/local/bin/clang++90 -std=gnu++17 -o Unified_cpp_image_decoders0.o -c -I/usr/ports/www/firefox-esr/work/.build/dist/stl_wrappers -I/usr/ports/www/firefox-esr/w ork/.build/dist/system_wrappers -include /usr/ports/www/firefox-esr/work/firefox-78.3.1/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector- strong -ftrivial-auto-var-init=pattern -DDEBUG=1 -DOS_POSIX=1 -DOS_FREEBSD=1 -DOS_BSD=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_J S_API -I/usr/ports/www/firefox-esr/work/firefox-78.3.1/image/decoders -I/usr/ports/www/firefox-esr/work/.build/image/decoders -I/usr/ports/www/firefox-esr/work/.bui ld/ipc/ipdl/_ipdlheaders -I/usr/ports/www/firefox-esr/work/firefox-78.3.1/ipc/chromium/src -I/usr/ports/www/firefox-esr/work/firefox-78.3.1/ipc/glue -I/usr/ports/ww w/firefox-esr/work/firefox-78.3.1/gfx/2d -I/usr/ports/www/firefox-esr/work/firefox-78.3.1/image -I/usr/ports/www/firefox-esr/work/firefox-78.3.1/gfx/skia -I/usr/por ts/www/firefox-esr/work/firefox-78.3.1/gfx/skia/skia -I/usr/ports/www/firefox-esr/work/.build/dist/include -I/usr/local/include/nspr -I/usr/local/include -I/usr/loc al/include/nss -I/usr/local/include/nspr -I/usr/ports/www/firefox-esr/work/.build/dist/include/nss -I/usr/local/include -I/usr/local/include -I/usr/local/include/pi xman-1 -I/usr/local/include -fPIC -DMOZILLA_CLIENT -include /usr/ports/www/firefox-esr/work/.build/mozilla-config.h -Qunused-arguments -DLIBICONV_PLUG -isystem /usr /local/include -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wshadow-field-in-construc tor-modified -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wflo at-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wc++2a-compat -Wcomma -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wstring-conversion -Wtautological-overlap-compare -Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-compare -Wno-error=tautological-type-limit-compare -Wno-inlin e-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=backend-plugin -Wno-error=return-std-move -Wno-error=atomic-alignment -Wformat -W format-security -Wno-gnu-zero-variadic-macro-arguments -Wno-unknown-warning-option -fno-sized-deallocation -fno-aligned-new -O2 -pipe -O3 -DLIBICONV_PLUG -fstack-pr otector-strong -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exce ptions -fno-math-errno -pipe -g -O2 -O3 -fno-omit-frame-pointer -funwind-tables -Wno-error=shadow -fexperimental-new-pass-manager -MD -MP -MF .deps/Unified_cpp_ima ge_decoders0.o.pp Unified_cpp_image_decoders0.cpp In file included from Unified_cpp_image_decoders0.cpp:11: /usr/ports/www/firefox-esr/work/firefox-78.3.1/image/decoders/nsAVIFDecoder.cpp:264:54: error: use of undeclared identifier 'AOM_PLANE_ALPHA' MOZ_ASSERT(img->stride[AOM_PLANE_Y] == img->stride[AOM_PLANE_ALPHA]); ^ /usr/ports/www/firefox-esr/work/firefox-78.3.1/image/decoders/nsAVIFDecoder.cpp:264:54: error: use of undeclared identifier 'AOM_PLANE_ALPHA' 2 errors generated. Could you suggest what can be done? I see that the identifier 'AOM_PLANE_ALPHA' is already defined in a different file as shown below. root@bsd:/usr/ports/www/firefox-esr # find /usr/ports/ -name '*.[h,hpp]' | xargs grep AOM_PLANE_ALPHA /usr/ports/www/firefox-esr/work/firefox-78.3.1/third_party/aom/aom/aom_image.h:#define AOM_PLANE_ALPHA 3 /**< A (Transparency) plane */ I am new to Freebsd world, so can I include the above path in Makefile or is there a different solution? Thanks for reading my mail!! Thanks, Sachin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAK9MUBunse5%2BQb_wt9h_7RBp-uL3PugYD-4xd3vC8Dqt_DcKg>