Skip to content

Build failure on AIX #23

@targos

Description

@targos

https://ci.nodejs.org/job/node-test-commit-aix/9727/nodes=aix61-ppc64/console

Error:

g++ '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=0' '-DV8_TARGET_ARCH_PPC' '-DV8_TARGET_ARCH_PPC64' '-DV8_TARGET_ARCH_PPC_BE' '-D_LINUX_SOURCE_COMPAT=1' '-D__STDC_FORMAT_MACROS' '-D_ALL_SOURCE=1' '-DV8_EMBEDDER_STRING="-node.0"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT' '-Dv8_promise_internal_field_count' '-DV8_INTL_SUPPORT' '-DV8_CONCURRENT_MARKING' -I../deps/v8 -I../. -I../deps/v8/include  -pthread -Wall -Wextra -Wno-unused-parameter -maix64 -mcpu=power5+ -mfprnd -mno-popcntb -fno-strict-aliasing -maix64 -fdata-sections -ffunction-sections -O3 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF /home/iojs/build/workspace/node-test-commit-aix/nodes/aix61-ppc64/out/Release/.deps//home/iojs/build/workspace/node-test-commit-aix/nodes/aix61-ppc64/out/Release/obj.target/v8_libplatform/deps/v8/src/libplatform/tracing/trace-config.o.d.raw   -c -o /home/iojs/build/workspace/node-test-commit-aix/nodes/aix61-ppc64/out/Release/obj.target/v8_libplatform/deps/v8/src/libplatform/tracing/trace-config.o ../deps/v8/src/libplatform/tracing/trace-config.cc
../deps/v8/src/base/platform/platform-posix.cc: In static member function 'static bool v8::base::OS::CommitRegion(void*, size_t, bool)':
../deps/v8/src/base/platform/platform-posix.cc:253:20: error: expected primary-expression before ',' token
   if (mprotect(base, size, prot) == -1) return false;
                    ^
../deps/v8/src/base/platform/platform-posix.cc: In static member function 'static bool v8::base::OS::UncommitRegion(void*, size_t)':
../deps/v8/src/base/platform/platform-posix.cc:271:23: error: expected primary-expression before ',' token
   return mprotect(base, size, PROT_NONE) != -1;
                       ^
../deps/v8/src/base/platform/platform-posix.cc:273:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

I'm trying this patch:

diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc
index 481795e08f..68819fd41f 100644
--- a/src/base/platform/platform-posix.cc
+++ b/src/base/platform/platform-posix.cc
@@ -250,7 +250,7 @@ bool OS::CommitRegion(void* address, size_t size, bool is_executable) {
     return false;
   }
 #else
-  if (mprotect(base, size, prot) == -1) return false;
+  if (mprotect(address, size, prot) == -1) return false;
 #endif  // !V8_OS_AIX
   return true;
 }
@@ -268,7 +268,7 @@ bool OS::UncommitRegion(void* address, size_t size) {
   return mmap(address, size, PROT_NONE, map_flags, kMmapFd, kMmapFdOffset) !=
          MAP_FAILED;
 #else   // V8_OS_AIX
-  return mprotect(base, size, PROT_NONE) != -1;
+  return mprotect(address, size, PROT_NONE) != -1;
 #endif  // V8_OS_AIX
 }
 

/cc @nodejs/platform-aix

CI: https://ci.nodejs.org/job/node-test-commit-aix/9732/

Edit: trying to fix the other error: https://ci.nodejs.org/job/node-test-commit-aix/9768/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions