Giter Site home page Giter Site logo

Comments (9)

imp-partner-test avatar imp-partner-test commented on May 22, 2024

The complete console output:
Building in workspace /data/jenkins/jobs/Automatic APIary Test/workspace
Checkout:workspace / /data/jenkins/jobs/Automatic APIary Test/workspace - hudson.remoting.LocalChannel@14e4ed4
Using strategy: Default
Last Built Revision: Revision 367475bec30334f138309b9c28e63e953b773adc (origin/master, origin/HEAD)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision 367475bec30334f138309b9c28e63e953b773adc (origin/master, origin/HEAD)
Checking out Revision 367475bec30334f138309b9c28e63e953b773adc (origin/master, origin/HEAD)
Warning : There are multiple branch changesets here
$ /data/jenkins/tools/nodejs/bin/npm install -g dredd
npm http GET https://registry.npmjs.org/dredd
npm http 304 https://registry.npmjs.org/dredd
npm http GET https://registry.npmjs.org/protagonist
npm http GET https://registry.npmjs.org/uri-template
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/html
npm http GET https://registry.npmjs.org/htmlencode
npm http GET https://registry.npmjs.org/marked
npm http GET https://registry.npmjs.org/advisable
npm http GET https://registry.npmjs.org/proxyquire
npm http GET https://registry.npmjs.org/coffee-script/1.6.3
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/file
npm http GET https://registry.npmjs.org/gavel
npm http GET https://registry.npmjs.org/winston
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/proxyquire
npm http 304 https://registry.npmjs.org/htmlencode
npm http 304 https://registry.npmjs.org/uri-template
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/html
npm http 304 https://registry.npmjs.org/coffee-script/1.6.3
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/winston
npm http 304 https://registry.npmjs.org/advisable
npm http 304 https://registry.npmjs.org/file
npm http 304 https://registry.npmjs.org/marked
npm http 304 https://registry.npmjs.org/protagonist
npm http 304 https://registry.npmjs.org/gavel
npm WARN engine [email protected]: wanted: {"node":"~0.10.4"} (current: {"node":"v0.11.12","npm":"1.4.3"})
npm http GET https://registry.npmjs.org/pct-encode
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/pct-encode
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/async/0.2.9
npm http GET https://registry.npmjs.org/commander/2.0.0
npm http GET https://registry.npmjs.org/curl-trace-parser/0.0.7
npm http GET https://registry.npmjs.org/http-string-parser/0.0.4
npm http GET https://registry.npmjs.org/googlediff/0.1.0
npm http GET https://registry.npmjs.org/json-pointer/0.0.4
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/commander/2.0.0
npm http 304 https://registry.npmjs.org/curl-trace-parser/0.0.7
npm http 304 https://registry.npmjs.org/googlediff/0.1.0
npm http 304 https://registry.npmjs.org/async/0.2.9
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/http-string-parser/0.0.4
npm http 304 https://registry.npmjs.org/json-pointer/0.0.4
npm http 304 https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/qs
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.11.12","npm":"1.4.3"})
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/hoek
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.11.12","npm":"1.4.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.11.12","npm":"1.4.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.11.12","npm":"1.4.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.11.12","npm":"1.4.3"})
npm http GET https://registry.npmjs.org/foreach
npm http GET https://registry.npmjs.org/commander/1.2.0
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5

[email protected] install /data/jenkins/tools/nodejs/lib/node_modules/dredd/node_modules/protagonist
node-gyp rebuild

make: Entering directory /data/jenkins/tools/nodejs/lib/node_modules/dredd/node_modules/protagonist/build' CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/HTTP.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/MarkdownBlock.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/MarkdownParser.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/Parser.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/ParserCore.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/Serialize.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/SerializeJSON.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/SerializeYAML.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/snowcrash.o CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/posix/RegexMatch.o AR(target) Release/obj.target/snowcrash/snowcrash.a COPY Release/snowcrash.a CC(target) Release/obj.target/sundown/snowcrash/sundown/src/autolink.o CC(target) Release/obj.target/sundown/snowcrash/sundown/src/buffer.o CC(target) Release/obj.target/sundown/snowcrash/sundown/html/houdini_href_e.o CC(target) Release/obj.target/sundown/snowcrash/sundown/html/houdini_html_e.o CC(target) Release/obj.target/sundown/snowcrash/sundown/html/html.o CC(target) Release/obj.target/sundown/snowcrash/sundown/html/html_smartypants.o CC(target) Release/obj.target/sundown/snowcrash/sundown/src/markdown.o CC(target) Release/obj.target/sundown/snowcrash/sundown/src/stack.o CC(target) Release/obj.target/sundown/snowcrash/sundown/src/src_map.o AR(target) Release/obj.target/snowcrash/sundown.a COPY Release/sundown.a CXX(target) Release/obj.target/protagonist/src/annotation.o In file included from ../src/annotation.cc:1:0: ../src/protagonist.h:12:47: error: expected class-name before ‘{’ token ../src/protagonist.h:27:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type ../src/protagonist.h:27:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] ../src/protagonist.h:34:54: error: expected class-name before ‘{’ token ../src/protagonist.h:46:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type ../src/protagonist.h:46:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] ../src/protagonist.h:53:44: error: expected class-name before ‘{’ token ../src/protagonist.h:67:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type ../src/protagonist.h:67:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] ../src/protagonist.h:74:46: error: ‘Arguments’ in namespace ‘v8’ does not name a type ../src/protagonist.h:74:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h: In static member function ‘static void protagonist::SourceAnnotation::Init(v8::Handle<v8::Object>)’: /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:768:13: error: ‘v8::HandleScope::HandleScope()’ is private ../src/annotation.cc:19:17: error: within this context ../src/annotation.cc:21:58: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:3346:34: error: initialising argument 1 of ‘static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)’ [-fpermissive] ../src/annotation.cc:25:61: error: no matching function for call to ‘v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >::New(v8::Local<v8::Function>)’ ../src/annotation.cc:25:61: note: candidate is: /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:5591:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::Function, M = v8::NonCopyablePersistentTraits<v8::Function>] /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:5591:4: note: candidate expects 2 arguments, 1 provided ../src/annotation.cc:26:68: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >&)’ ../src/annotation.cc:26:68: note: candidates are: /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:2057:8: note: bool v8::Object::Set(v8::Handle<v8::Value>, v8::Handle<v8::Value>, v8::PropertyAttribute) /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:2057:8: note: no known conversion for argument 2 from ‘v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >’ to ‘v8::Handle<v8::Value>’ /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:2061:8: note: bool v8::Object::Set(uint32_t, v8::Handle<v8::Value>) /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:2061:8: note: no known conversion for argument 1 from ‘v8::Local<v8::String>’ to ‘uint32_t {aka unsigned int}’ ../src/annotation.cc: At global scope: ../src/annotation.cc:29:43: error: ‘Arguments’ does not name a type ../src/annotation.cc:29:54: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> protagonist::SourceAnnotation::New(const int&)’: /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:768:13: error: ‘v8::HandleScope::HandleScope()’ is private ../src/annotation.cc:31:17: error: within this context ../src/annotation.cc:33:17: error: ‘class protagonist::SourceAnnotation’ has no member named ‘Wrap’ ../src/annotation.cc:33:27: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ ../src/annotation.cc:34:29: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> protagonist::SourceAnnotation::NewInstance()’: /home/jboss/.node-gyp/0.11.12/deps/v8/include/v8.h:768:13: error: ‘v8::HandleScope::HandleScope()’ is private ../src/annotation.cc:39:17: error: within this context ../src/annotation.cc:40:41: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >’ ../src/annotation.cc: In static member function ‘static v8::Local<v8::Object> protagonist::SourceAnnotation::WrapSourceAnnotation(const snowcrash::SourceAnnotation&)’: ../src/annotation.cc:55:47: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >’ ../src/annotation.cc: In static member function ‘static v8::Handle<v8::Value> protagonist::SourceAnnotation::New(const int&)’: ../src/annotation.cc:35:1: warning: control reaches end of non-void function [-Wreturn-type] make: *** [Release/obj.target/protagonist/src/annotation.o] Error 1 make: Leaving directory/data/jenkins/tools/nodejs/lib/node_modules/dredd/node_modules/protagonist/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/data/jenkins/tools/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:107:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1045:12)
gyp ERR! System Linux 3.5.0-47-generic
gyp ERR! command "node" "/data/jenkins/tools/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/jenkins/tools/nodejs/lib/node_modules/dredd/node_modules/protagonist
gyp ERR! node -v v0.11.12
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/foreach
npm http 304 https://registry.npmjs.org/commander/1.2.0
npm http GET https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/keypress
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the protagonist package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls protagonist
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.5.0-47-generic
npm ERR! command "/data/jenkins/tools/nodejs/bin/node" "/data/jenkins/tools/nodejs/bin/npm" "install" "-g" "dredd"
npm ERR! cwd /home/jboss/apache-tomcat-7.0.37/apache-tomcat-7.0.37/bin
npm ERR! node -v v0.11.12
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/jboss/apache-tomcat-7.0.37/apache-tomcat-7.0.37/bin/npm-debug.log
npm ERR! not ok code 0

from dredd.

netmilk avatar netmilk commented on May 22, 2024

Thanks for the report, can you be more specific about Jenkins's environment? Especially which C++ parser do you use.

$ c++ --version
$ echo $CC

from dredd.

OrCharles avatar OrCharles commented on May 22, 2024

I am also experiencing errors with this on OS X 10.10, here is my console output:

$ c++ --version
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

$ echo $CC

nothing is outputted for $CC but I do get the same output w/r/t protagonist/node-gyp as shown above:

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "update"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the protagonist package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls protagonist
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/cwisniewski/Documents/dev/git/api/tests/node/npm-debug.log

Should I reach out here as well? https://github.com/apiaryio/protagonist/issues

from dredd.

netmilk avatar netmilk commented on May 22, 2024

@OrCharles thanks a lot for the report and I'm sorry about any inconvenience. I think this is more likely a Protagonist related issue, so report it there, please.

Protagonist is a wrapper around Snowcrash API Blueprint parser, so you can try to install Snowcrash directly on osx:

$ brew install --HEAD \
  https://raw.github.com/apiaryio/snowcrash/master/tools/homebrew/snowcrash.rb

If this will fail, it's definitely a problem with installation of Protagonist.

Btw: my osx system outputs this:

$ echo $CC
gcc-4.2

Maybe figure this out and it will work.

from dredd.

bugthing avatar bugthing commented on May 22, 2024

i can not npm install dredd as it depends on protagonist 0.17 and node 0.12.2 (on arch linux) does not build this .. it will however build protagonist 0.19 .. therefore it would be super rad if dredd depended on version 0.19 of protagonist

not sure why, etc., just reporting my findings

from dredd.

kylef avatar kylef commented on May 22, 2024

This issue is due to installing dredd with NPM on NodeJS v0.12. I experienced it before, the current release of dredd requires NodeJS v0.10 due to depending on an older protagonist that doesn't work on NodeJS v0.12.

TL;DR: dredd 0.5.0 will require NodeJS v0.10 instead of v0.12 (latest).

from dredd.

netmilk avatar netmilk commented on May 22, 2024

Dredd supports node v0.10, node v0.12 and io.js as well for some time already. Closing this one, please reopen or submit new issue if you'll experience any further inconvenience regarding this.

from dredd.

HansHauge avatar HansHauge commented on May 22, 2024

For what it's worth we just had this issue. We ended up needing to update gcc on our Jenkins server.

from dredd.

honzajavorek avatar honzajavorek commented on May 22, 2024

@HansHauge I believe it's a different issue. Recent changes cause that to be able to install newer Dredd, one will need a C++ compiler able to compile C++11. In the future we will eventually migrate to js-only parser by default and no compiler will be needed, but as of now, this change is needed in order to make Dredd work with your CI (especially Travis CI config files need changes - see e.g. apiaryio/dredd-hooks-python#19).

Details on why all this: https://github.com/apiaryio/protagonist/blob/master/CHANGELOG.md#breaking

from dredd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.