https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82921

            Bug ID: 82921
           Summary: libsanitizer build failure on darwin10 (Snow Leopard)
                    due to missing VM_MEMORY_OS_ALLOC_ONCE
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at 
gcc dot gnu.org
  Target Milestone: ---

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.

Reply via email to