You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Peng Cheng (JIRA)" <ji...@apache.org> on 2018/01/21 21:20:00 UTC

[jira] [Created] (AMBARI-22821) Compilation failed on ubuntu 17.10

Peng Cheng created AMBARI-22821:
-----------------------------------

             Summary: Compilation failed on ubuntu 17.10
                 Key: AMBARI-22821
                 URL: https://issues.apache.org/jira/browse/AMBARI-22821
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.6.1
         Environment: Ubuntu 17.10, Java 8, maven 3.5.0, npm 5.6.0
            Reporter: Peng Cheng


I have npm 5.6.0, node 8.9.4 and brunch 2.10.12

 

running the following mvn install command:

mvn clean install package rpm:rpm -DnewVersion=2.6.1.0.0 -DskipTests -Dpython.ver="python >= 2.7" -Drat.ignoreErrors=true

 

will give me this error:

 

...

> contextify@0.1.15 install /home/peng/git-release/ambari/ambari-web/node_modules/contextify
> node-gyp rebuild

make: Entering directory '/home/peng/git-release/ambari/ambari-web/node_modules/contextify/build'
 CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’:
../src/contextify.cc:131:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 Local<Object> wrapper = Nan::New(constructor)->NewInstance();
 ^
In file included from /home/peng/.node-gyp/8.9.4/include/node/v8.h:26:0,
 from /home/peng/.node-gyp/8.9.4/include/node/node.h:63,
 from ../src/contextify.cc:1:
/home/peng/.node-gyp/8.9.4/include/node/v8.h:3836:52: note: declared here
 V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
 ^
/home/peng/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
 declarator __attribute__((deprecated(message)))
 ^~~~~~~~~~
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’?
 otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
 ^~~~~~~~~~~~~~~~~~~~~~~
 SetAccessCheckCallback
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:182:80: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
 ^
In file included from /home/peng/.node-gyp/8.9.4/include/node/v8.h:26:0,
 from /home/peng/.node-gyp/8.9.4/include/node/node.h:63,
 from ../src/contextify.cc:1:
/home/peng/.node-gyp/8.9.4/include/node/v8.h:3389:30: note: declared here
 Local<Value> GetRealNamedProperty(Local<String> key));
 ^
/home/peng/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
 declarator __attribute__((deprecated(message)))
 ^~~~~~~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’:
../src/contextify.cc:209:67: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
 ^
In file included from /home/peng/.node-gyp/8.9.4/include/node/v8.h:26:0,
 from /home/peng/.node-gyp/8.9.4/include/node/node.h:63,
 from ../src/contextify.cc:1:
/home/peng/.node-gyp/8.9.4/include/node/v8.h:3389:30: note: declared here
 Local<Value> GetRealNamedProperty(Local<String> key));
 ^
/home/peng/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
 declarator __attribute__((deprecated(message)))
 ^~~~~~~~~~
../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
 ^
In file included from /home/peng/.node-gyp/8.9.4/include/node/v8.h:26:0,
 from /home/peng/.node-gyp/8.9.4/include/node/node.h:63,
 from ../src/contextify.cc:1:
/home/peng/.node-gyp/8.9.4/include/node/v8.h:3389:30: note: declared here
 Local<Value> GetRealNamedProperty(Local<String> key));
 ^
/home/peng/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
 declarator __attribute__((deprecated(message)))
 ^~~~~~~~~~
contextify.target.mk:95: recipe for target 'Release/obj.target/contextify/src/contextify.o' failed
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
make: Leaving directory '/home/peng/git-release/ambari/ambari-web/node_modules/contextify/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.13.0-25-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/peng/git-release/ambari/ambari-web/node_modules/contextify
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@github:pipobscure/fsevents#7dcdf9fa3f8956610fd6f69f72c67bace2de7138 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@0.2.1: wanted \{"os":"darwin","arch":"any"} (current: \{"os":"linux","arch":"x64"})
npm WARN Ambari@2.1.3 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/peng/.npm/_logs/2018-01-21T21_12_01_152Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ........................................ SUCCESS [ 4.504 s]
[INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.120 s]
[INFO] Ambari Web ......................................... FAILURE [ 6.345 s]
[INFO] Ambari Views ....................................... SKIPPED
[INFO] Ambari Admin View .................................. SKIPPED
[INFO] ambari-metrics ..................................... SKIPPED
[INFO] Ambari Metrics Common .............................. SKIPPED
[INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED
[INFO] Ambari Metrics Flume Sink .......................... SKIPPED
[INFO] Ambari Metrics Kafka Sink .......................... SKIPPED
[INFO] Ambari Metrics Storm Sink .......................... SKIPPED
[INFO] Ambari Metrics Collector ........................... SKIPPED
[INFO] Ambari Metrics Monitor ............................. SKIPPED
[INFO] Ambari Metrics Assembly ............................ SKIPPED
[INFO] Ambari Server ...................................... SKIPPED
[INFO] Ambari Agent ....................................... SKIPPED
[INFO] Ambari Client ...................................... SKIPPED
[INFO] Ambari Python Client ............................... SKIPPED
[INFO] Ambari Groovy Client ............................... SKIPPED
[INFO] Ambari Shell ....................................... SKIPPED
[INFO] Ambari Python Shell ................................ SKIPPED
[INFO] Ambari Groovy Shell ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.502 s
[INFO] Finished at: 2018-01-21T16:12:01-05:00
[INFO] Final Memory: 43M/1405M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile-npm) on project ambari-web: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :ambari-web



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)