Closed
Bug 1403285
Opened 7 years ago
Closed 7 years ago
ASAN build fails on macOS (memory/build/malloc_decls.h:48:1: error: no member named 'malloc' in the global namespace; did you mean simply 'malloc'?)
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1402647
People
(Reporter: jwatt, Unassigned)
Details
Attachments
(1 file)
2.22 KB,
text/plain
|
Details |
I'm hopeful that it should be possible to create asan builds on Mac nowadays without jumping through the various hoops (like the PITA of building llvm from source) that our MDN doc describes:
https://developer.mozilla.org/en-US/docs/Mozilla/Testing/Firefox_and_Address_Sanitizer
A lot of the text there sounds like it's not been updated in some time, and apparently asan has been bundled with Xcode for a few years now.
https://stackoverflow.com/questions/32150924/how-do-you-enable-clang-address-sanitizer-in-xcode
It doesn't come with llvm-symbolizer, but homebrew's llvm does and you can point to it using LLVM_SYMBOLIZER.
I played around with various .mozconfig options and fairly consistently seem to get the following build error:
1:38.87 In file included from /Users/jw/mozilla/trees/obj/asan-debug/memory/build/Unified_cpp_memory_build0.cpp:2:
1:38.87 In file included from /Users/jw/mozilla/trees/asan/memory/build/fallback.cpp:18:
1:38.87 /Users/jw/mozilla/trees/asan/memory/build/malloc_decls.h:48:1: error: no member named 'malloc' in the global namespace; did you mean simply 'malloc'?
1:38.87 MALLOC_DECL(malloc, void *, size_t)
1:38.87 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1:38.90 /Users/jw/mozilla/trees/asan/memory/build/fallback.cpp:15:12: note: expanded from macro 'MALLOC_DECL'
1:38.90 return ::name(ARGS_HELPER(ARGS, ##__VA_ARGS__)); \
1:38.90 ^~
1:38.90 /Users/jw/mozilla/trees/asan/memory/build/malloc_decls.h:48:13: note: 'malloc' declared here
1:38.90 MALLOC_DECL(malloc, void *, size_t)
1:38.90 ^
![]() |
Reporter | |
Comment 1•7 years ago
|
||
The .mozconfig I've been playing with. Some lines are commented out, but I've tried various permutations uncommenting lines.
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•