ibmruntimes / v8-zos

The official mirror of the V8 git repository
https://chromium.googlesource.com/v8/v8.git
Other
1 stars 1 forks source link

AIX (native): V8 failing to build 32bit #46

Closed jbajwa closed 7 years ago

jbajwa commented 7 years ago

Error msg:

In file included from .././src/interpreter/interpreter.h:13:0,
                 from ../src/setup-isolate-full.cc:8:
.././src/base/macros.h:207:35: error: overflow in implicit constant conversion [-Werror=overflow]
 #  define V8_INT64_C(x)    (x ## L)
                                   ^
.././src/globals.h:177:33: note: in expansion of macro 'V8_INT64_C'
 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
                                 ^
.././src/base/macros.h:206:36: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
 #  define V8_UINT64_C(x)   (x ## UL)
                                    ^
.././src/globals.h:178:38: note: in expansion of macro 'V8_UINT64_C'
 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF);
                                      ^
.././src/base/macros.h:171:29: error: static assertion failed: kPointerSize == (1 << kPointerSizeLog2)
 #define STATIC_ASSERT(test) static_assert(test, #test)
                             ^
.././src/globals.h:236:1: note: in expansion of macro 'STATIC_ASSERT'
 STATIC_ASSERT(kPointerSize == (1 << kPointerSizeLog2));
 ^
...
.././src/base/macros.h:171:29: error: static assertion failed: kResourceOffset == Internals::kStringResourceOffset
 #define STATIC_ASSERT(test) static_assert(test, #test)
                             ^
.././src/objects.h:7801:3: note: in expansion of macro 'STATIC_ASSERT'
   STATIC_ASSERT(kResourceOffset == Internals::kStringResourceOffset);
   ^
  CXX(target) /scratch/jenkins-local/new/workspace/googlev8-master-build/arch/ppc/build/build/gcc48/gcc48/mode/release/os/aix/v8/out/ppc.release/obj.target/v8_libbase/src/base/ieee754.o
../src/base/functional.cc: In function 'size_t v8::base::hash_combine(size_t, size_t)':
../src/base/functional.cc:87:21: error: right shift count >= width of type [-Werror]
   value ^= value >> r;
                     ^
cc1plus: all warnings being treated as errors
jbajwa commented 7 years ago

Fix: https://codereview.chromium.org/2949053003