Bug 82921 - libsanitizer build failure on darwin10 (Snow Leopard) due to missing VM_MEMORY_OS_ALLOC_ONCE
Summary: libsanitizer build failure on darwin10 (Snow Leopard) due to missing VM_MEMOR...
Status: RESOLVED DUPLICATE of bug 82824
Alias: None
Product: gcc
Classification: Unclassified
Component: sanitizer (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-09 16:35 UTC by Dominique d'Humieres
Modified: 2017-11-09 17:04 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique d'Humieres 2017-11-09 16:35:55 UTC
Bootstrapping gcc on darwin10 fails with

libtool: compile:  /opt/gcc/build_w/./gcc/xgcc -shared-libgcc -B/opt/gcc/build_w/./gcc -nostdinc++ -L/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/src -L/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/x86_64-apple-darwin10.8.0/libstdc++-v3/libsupc++/.libs -B/opt/gcc/gcc8w/x86_64-apple-darwin10.8.0/bin/ -B/opt/gcc/gcc8w/x86_64-apple-darwin10.8.0/lib/ -isystem /opt/gcc/gcc8w/x86_64-apple-darwin10.8.0/include -isystem /opt/gcc/gcc8w/x86_64-apple-darwin10.8.0/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -I../../../../work/libsanitizer/lsan -I.. -I ../../../../work/libsanitizer/include -I ../../../../work/libsanitizer -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/x86_64-apple-darwin10.8.0 -I../../../../work/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11 -g -O2 -MT lsan_common_mac.lo -MD -MP -MF .deps/lsan_common_mac.Tpo -c ../../../../work/libsanitizer/lsan/lsan_common_mac.cc  -fno-common -DPIC -o .libs/lsan_common_mac.o
In file included from ../../../../work/libsanitizer/sanitizer_common/sanitizer_allocator.h:15:0,
                 from ../../../../work/libsanitizer/lsan/lsan_common.h:16,
                 from ../../../../work/libsanitizer/lsan/lsan_common_mac.cc:14:
../../../../work/libsanitizer/lsan/lsan_common_mac.cc: In function 'void __lsan::ProcessGlobalRegions(__lsan::Frontier*)':
../../../../work/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:307:33: warning: division 'sizeof (const char*) / sizeof (const char)' does not compute the number of array elements [-Wsizeof-pointer-div]
 #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
                        ~~~~~~~~~^~~~~~~~~~~~~~~
../../../../work/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:264:46: note: in definition of macro 'CHECK_IMPL'
     __sanitizer::u64 v1 = (__sanitizer::u64)(c1); \
                                              ^~
../../../../work/libsanitizer/lsan/lsan_common_mac.cc:110:38: note: in expansion of macro 'CHECK'
   for (auto name : kSkippedSecNames) CHECK(ARRAY_SIZE(name) < kMaxSegName);
                                      ^~~~~
../../../../work/libsanitizer/lsan/lsan_common_mac.cc:110:44: note: in expansion of macro 'ARRAY_SIZE'
   for (auto name : kSkippedSecNames) CHECK(ARRAY_SIZE(name) < kMaxSegName);
                                            ^~~~~~~~~~
../../../../work/libsanitizer/lsan/lsan_common_mac.cc:110:13: note: first 'sizeof' operand was declared here
   for (auto name : kSkippedSecNames) CHECK(ARRAY_SIZE(name) < kMaxSegName);
             ^~~~
../../../../work/libsanitizer/lsan/lsan_common_mac.cc: In function 'void __lsan::ProcessPlatformSpecificAllocations(__lsan::Frontier*)':
../../../../work/libsanitizer/lsan/lsan_common_mac.cc:158:26: error: 'VM_MEMORY_OS_ALLOC_ONCE' was not declared in this scope
     if (info.user_tag == VM_MEMORY_OS_ALLOC_ONCE) {
                          ^~~~~~~~~~~~~~~~~~~~~~~
../../../../work/libsanitizer/lsan/lsan_common_mac.cc:158:26: note: suggested alternative: 'VM_MEMORY_MALLOC_HUGE'
     if (info.user_tag == VM_MEMORY_OS_ALLOC_ONCE) {
                          ^~~~~~~~~~~~~~~~~~~~~~~
                          VM_MEMORY_MALLOC_HUGE
make[4]: *** [lsan_common_mac.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libsanitizer] Error 2
make: *** [all] Error 2

Last revision bootstrapped is r253320, r254168 failed.

This could be a duplicate of/related to pr82829.
Comment 1 Andrew Pinski 2017-11-09 17:04:38 UTC
dup.

*** This bug has been marked as a duplicate of bug 82824 ***