[LLVMbugs] [Bug 19162] New: Building Firefox with -fsanitize=address fails with linker errors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 17 04:07:06 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19162

            Bug ID: 19162
           Summary: Building Firefox with -fsanitize=address fails with
                    linker errors
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: octoploid at yandex.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

...
make[5]: Entering directory '/var/tmp/moz-build-dir/memory/mozalloc'
libmozalloc.so
rm -f libmozalloc.so
/var/tmp/moz-build-dir/_virtualenv/bin/python
/var/tmp/mozilla-central/config/expandlibs_exec.py --depend
.deps/libmozalloc.so.pp --target libmozalloc.so --uselist --  clang++
-fsanitize=address -Qunused-arguments  -Qunused-arguments -Wall -Wpointer-arith
-Woverloaded-virtual -Werror=return-type -Werror=int-to-pointer-cast
-Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof
-Wno-inline-new-delete -Wno-c++0x-extensions -Wno-extended-offsetof
-Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags
-march=native -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions
-fno-math-errno -std=gnu++0x -pthread -pipe  -DDEBUG -D_DEBUG -DTRACING -g -O3
-fno-omit-frame-pointer  -fPIC -shared -Wl,-z,defs -Wl,-h,libmozalloc.so -o
libmozalloc.so  Unified_cpp_memory_mozalloc0.o   -lpthread
-Wl,--hash-style=gnu,--as-needed,--gc-sections,--icf=all,--icf-iterations=3
-Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id   
-Wl,-rpath-link,/var/tmp/moz-build-dir/dist/bin -Wl,-rpath-link,/usr/lib        
Executing: clang++ -fsanitize=address -Qunused-arguments -Qunused-arguments
-Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type
-Werror=int-to-pointer-cast -Wtype-limits -Wempty-body -Wsign-compare
-Wno-invalid-offsetof -Wno-inline-new-delete -Wno-c++0x-extensions
-Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage
-Wno-mismatched-tags -march=native -fno-exceptions -fno-strict-aliasing
-fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -DDEBUG
-D_DEBUG -DTRACING -g -O3 -fno-omit-frame-pointer -fPIC -shared -Wl,-z,defs
-Wl,-h,libmozalloc.so -o libmozalloc.so
/var/tmp/moz-build-dir/memory/mozalloc/tmp2W5VhZ.list -lpthread
-Wl,--hash-style=gnu,--as-needed,--gc-sections,--icf=all,--icf-iterations=3
-Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id
-Wl,-rpath-link,/var/tmp/moz-build-dir/dist/bin -Wl,-rpath-link,/usr/lib
/var/tmp/moz-build-dir/memory/mozalloc/tmp2W5VhZ.list:
    INPUT("Unified_cpp_memory_mozalloc0.o")

../../dist/include/mozilla/RefPtr.h:98: error: undefined reference to
'__asan_report_store4'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:20: error:
undefined reference to '__asan_report_store_n'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:20: error:
undefined reference to '__asan_report_store_n'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:25: error:
undefined reference to '__asan_report_load8'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:25: error:
undefined reference to '__asan_report_load8'
../../dist/include/mozilla/Assertions.h:133: error: undefined reference to
'__asan_report_load8'
../../dist/include/mozilla/Assertions.h:133: error: undefined reference to
'__asan_report_load8'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:29: error:
undefined reference to '__asan_report_store8'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:25: error:
undefined reference to '__asan_report_store4'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:26: error:
undefined reference to '__asan_report_store4'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:25: error:
undefined reference to '__asan_handle_no_return'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_abort.cpp:39: error:
undefined reference to '__asan_handle_no_return'
../../dist/include/mozilla/RefPtr.h:100: error: undefined reference to
'__asan_report_load4'
../../dist/include/mozilla/RefPtr.h:100: error: undefined reference to
'__asan_report_store4'
../../dist/include/mozilla/RefPtr.h:100: error: undefined reference to
'__asan_handle_no_return'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:50: error:
undefined reference to '__asan_report_store8'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:51: error:
undefined reference to '__asan_report_load4'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:48: error:
undefined reference to '__asan_handle_no_return'
/var/tmp/mozilla-central/memory/mozalloc/VolatileBufferFallback.cpp:59: error:
undefined reference to '__asan_report_load4'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:29: error: undefined
reference to '__asan_option_detect_stack_use_after_return'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:29: error: undefined
reference to '__asan_stack_malloc_1'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:46: error: undefined
reference to '__asan_report_load1'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:46: error: undefined
reference to '__asan_report_store1'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:30: error: undefined
reference to '__asan_report_store_n'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:30: error: undefined
reference to '__asan_report_store_n'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:30: error: undefined
reference to '__asan_report_load_n'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:30: error: undefined
reference to '__asan_report_load_n'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc.cpp:171: error: undefined
reference to '__asan_report_load4'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:57: error: undefined
reference to '__asan_init_v3'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:57: error: undefined
reference to '__asan_register_globals'
/var/tmp/mozilla-central/memory/mozalloc/mozalloc_oom.cpp:57: error: undefined
reference to '__asan_unregister_globals'
clang-3.5: error: linker command failed with exit code 1 (use -v to see
invocation)
/var/tmp/mozilla-central/config/rules.mk:882: recipe for target
'libmozalloc.so' failed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140317/eb0007e0/attachment.html>


More information about the llvm-bugs mailing list