Ok, sounds like a bug.
When I comment out this line in my .mozconfig, the build finishes fine:
# ac_add_options --enable-warnings-as-errors

Regards,
Martijn

On Mon, Dec 8, 2014 at 6:26 PM, Martijn <martijn.mart...@gmail.com> wrote:
> While trying to build Firefox desktop debug on MacOs10.9.5, I get this
> build error:
>
> 13:28.99 host_arm_ex_to_module.o
> 13:29.60 host_dwarf_cfi_to_module.o
> 13:29.70 
> /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1077:22:
> error: unused variable 'ipv4_other_addr_str'
> [-Werror,-Wunused-const-variable]
> 13:29.70 static const uint8_t ipv4_other_addr_str[] = "5.6.7.8";
> 13:29.70                      ^
> 13:29.70 
> /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1153:22:
> error: unused variable 'ipv4_constraint_truncated_bytes'
> [-Werror,-Wunused-const-variable]
> 13:29.70 static const uint8_t ipv4_constraint_truncated_bytes[] = {
> 13:29.70                      ^
> 13:29.70 
> /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1157:22:
> error: unused variable 'ipv4_constraint_overlong_bytes'
> [-Werror,-Wunused-const-variable]
> 13:29.70 static const uint8_t ipv4_constraint_overlong_bytes[] = {
> 13:29.70                      ^
> 13:29.70 
> /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1174:22:
> error: unused variable 'ipv6_constraint_truncated_bytes'
> [-Werror,-Wunused-const-variable]
> 13:29.70 static const uint8_t ipv6_constraint_truncated_bytes[] = {
> 13:29.70                      ^
> 13:29.70 
> /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1180:22:
> error: unused variable 'ipv6_constraint_overlong_bytes'
> [-Werror,-Wunused-const-variable]
> 13:29.70 static const uint8_t ipv6_constraint_overlong_bytes[] = {
> 13:29.70                      ^
> 13:29.70 5 errors generated.
> 13:29.70
> 13:29.70 In the directory
> /Users/mwargers/mozilla-central/obj-x86_64-apple-darwin13.4.0/security/pkix/test/gtest
> 13:29.70 The following command failed to execute properly:
> 13:29.70 /usr/local/bin/ccache /usr/bin/clang++ -o pkixnames_tests.o
> -c -fvisibility=hidden -DOS_POSIX=1 -DOS_MACOSX=1
> -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL
> -DAB_CD=en-US -DNO_NSPR_10_SUPPORT
> -I/Users/mwargers/mozilla-central/security/pkix/test/gtest -I.
> -I/Users/mwargers/mozilla-central/obj-x86_64-apple-darwin13.4.0/ipc/ipdl/_ipdlheaders
> -I/Users/mwargers/mozilla-central/security/pkix/test/gtest/../../include
> -I/Users/mwargers/mozilla-central/security/pkix/test/gtest/../../lib
> -I/Users/mwargers/mozilla-central/security/pkix/test/gtest/../lib
> -I/Users/mwargers/mozilla-central/ipc/chromium/src
> -I/Users/mwargers/mozilla-central/ipc/glue -I../../../../dist/include
> -I/Users/mwargers/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/include/nspr
> -I/Users/mwargers/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/include/nss
> -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include
> ../../../../mozilla-config.h -MD -MP -MF .deps/pkixnames_tests.o.pp
> -Qunused-arguments -Qunused-arguments -Wall -Wempty-body
> -Woverloaded-virtual -Wsign-compare -Wwrite-strings
> -Werror=endif-labels -Werror=int-to-pointer-cast
> -Werror=missing-braces -Werror=parentheses -Werror=pointer-arith
> -Werror=return-type -Werror=sequence-point -Werror=switch
> -Werror=trigraphs -Werror=type-limits -Werror=unused-label
> -Werror=non-literal-null-conversion -Wno-invalid-offsetof
> -Wno-inline-new-delete -Wno-c++0x-extensions -Wno-extended-offsetof
> -Wno-unknown-warning-option -Wno-return-type-c-linkage
> -Wno-error=uninitialized -Wno-error=deprecated-declarations
> -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions
> -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DDEBUG -DTRACING
> -g -O3 -fno-omit-frame-pointer -Werror
> /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp
> 13:29.70 make[5]: *** [pkixnames_tests.o] Error 1
> 13:29.70 make[5]: *** Waiting for unfinished jobs....
> 13:29.87 host_arch_utilities.o
> 13:29.87 host_bootstrap_compat.o
> 13:29.93 host_file_id.o
> 13:29.94 libxpcom_glue_tests_gtest.a.desc
> 13:29.98 host_macho_id.o
> 13:30.01 host_dwarf_cu_to_module.o
> 13:30.06 host_macho_reader.o
> 13:30.18 host_macho_utilities.o
> 13:30.30 libhost_breakpad_dwarf_s.a
> 13:30.40 gmp-fake.o
> 13:30.41 gmp-test-decryptor.o
> 13:30.42 host_dwarf_line_to_module.o
> 13:30.52 Unified_cpp_unit_tlsserver_lib0.o
> 13:30.74 host_macho_walker.o
> 13:30.81 host_string_utilities.o
> 13:30.90 host_dump_syms.o
> 13:30.94 gmp-test-storage.o
> 13:31.04 make[4]: *** [security/pkix/test/gtest/target] Error 2
> 13:31.04 make[4]: *** Waiting for unfinished jobs....
> 13:31.26 host_language.o
> 13:31.46 libgtest.a.desc
> 13:31.53 host_logging.o
> 13:31.65 libclearkey.dylib
> 13:31.69 host_md5.o
> 13:31.74 host_module.o
> 13:31.79 host_pathname_stripper.o
> 13:31.85 host_stabs_reader.o
> 13:31.90 host_stabs_to_module.o
> 13:32.03 host_string_conversion.o
> 13:32.04 libtlsserver.a.desc
> 13:32.10 host_unique_string.o
> 13:32.62 libxpcomglue_s_nomozalloc.a
> 13:32.68 libhost_breakpad_common_s.a
> 13:32.69 libfake.dylib
> 13:33.05 libhost_breakpad_mac_common_s.a
> 13:34.17 libdom_media_gtest.a.desc
> 13:41.05 libgfx_tests_gtest.a.desc
> 13:41.08 make[3]: *** [compile] Error 2
> 13:41.08 make[2]: *** [default] Error 2
> 13:41.08 make[1]: *** [realbuild] Error 2
> 13:41.08 make: *** [build] Error 2
> 13:41.09 82 compiler warnings present.
> 13:42.15 ccache (direct) hit rate: 0.3%; (preprocessed) hit rate:
> 0.1%; miss rate: 99.6%
> 13:42.15 /usr/local/bin/terminal-notifier -title Mozilla Build System
> -group mozbuild -message Build complete
> mwargers:mozilla-central mwargers$
>
> Anyone has an idea what's going on and why I get this?
>
> This is my .mozconfig file:
> ac_add_options --enable-debug
> ac_add_options --enable-trace-malloc
> ac_add_options --enable-accessibility
> ac_add_options --enable-signmar
>
> # Enable parallel compiling
> mk_add_options MOZ_MAKE_FLAGS="-j12"
> mk_add_options AUTOCLOBBER=1
>
> # Treat warnings as errors in directories with FAIL_ON_WARNINGS.
> ac_add_options --enable-warnings-as-errors
> ac_add_options --with-ccache
>
>
> # Package js shell.
> export MOZ_PACKAGE_JSSHELL=1
>
> Regards,
> Martijn
_______________________________________________
dev-builds mailing list
dev-builds@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to