Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nodejs 3.0 and 4.0 #81

Closed
danielgtaylor opened this issue Aug 12, 2015 · 36 comments
Closed

Support nodejs 3.0 and 4.0 #81

danielgtaylor opened this issue Aug 12, 2015 · 36 comments

Comments

@danielgtaylor
Copy link
Contributor

I'm seeing build failures on CI hosts using the recently released iojs 3.0.0:

https://travis-ci.org/danielgtaylor/aglio/jobs/75231420

The issue seems to be related to nan. This other project is moving to nan 2.x to fix a similar issue:

Automattic/node-canvas#606

@Freundschaft
Copy link

yes also it doesnt work right now with nodejs 4.0 as far as i can see

@pksunkara
Copy link
Contributor

Ah, we need to fix this using nan.

@mrmurphy
Copy link

mrmurphy commented Sep 9, 2015

What's the preferred way for you to know when issues are important to other people? I don't want to spam with +1 here, but I'm interested in throwing in my vote for attention to this issue. I'd love to move to Node 4.0 when possible. Thanks so much for all your work!

@pksunkara
Copy link
Contributor

@splodingsocks Using +1 is perfectly okay with us. 😄

We are working on an important release first and would prefer to not do this until that. Any contributions are welcome though. We have to update the nan package version and fix any issues (most probably none) that rise up.

@mrmurphy
Copy link

mrmurphy commented Sep 9, 2015

Okay, great! I wish I were able to dive in right now and figure out how to do this, never having compiled native extensions before. If I'm able to, I'll post back here. If not, I'll just be patient :)

Thanks again!

@zakhenry
Copy link

+1 This is causing issues with travis ci failing to compile (tried base travis config, 0.12 & 4.0.0)

@ChALkeR
Copy link

ChALkeR commented Sep 12, 2015

Adding to the list: nodejs/node#2798.
You have to update nan to v2.

@tobiashm
Copy link
Contributor

I've made a PR #90 with an upgrade to Nan 2.0
This was done mostly using a script. It seems to be working fine on my machine with Node 4.0 and 4.1, but it currently fails on the CI builds, so I'm a bit lost on what's wrong.
If anyone has more knowledge about the code could take a look, that would be great, because I actually don't know what I'm doing here :-) I'm not a C/C++ developer.

@ChALkeR
Copy link

ChALkeR commented Sep 21, 2015

@tobiashm Travis builds are failing because they use gcc 4.6, while the minimum supported gcc version is 4.8. Travis config has to be changed.

@zdne
Copy link
Contributor

zdne commented Sep 21, 2015

Travis builds are failing because they use gcc 4.6, while the minimum supported gcc version is 4.8. Travis config has to be changed.

So upgrading to support Node.js 3+ implies we discontinue supporting systems with GCC 4.6? /cc @klokane

@trodrigues
Copy link

Not a big deal but also ran into this using https://www.npmjs.com/package/aglio

@ChALkeR
Copy link

ChALkeR commented Sep 24, 2015

@zdne

So upgrading to support Node.js 3+ implies we discontinue supporting systems with GCC 4.6?

No, it doesn't. Afaik, your package will work with old gcc and old node, with new gcc and old node, with new gcc and new node, but not with old gcc and new node. Without this patch, your package doesn't work with new node at all.

@klokane
Copy link
Contributor

klokane commented Sep 24, 2015

I'm going to decide about supported versions of compilers in next week, make some testing and we will see

@ChALkeR
Copy link

ChALkeR commented Sep 24, 2015

Not quite sure what are you going to decide on. Node.js 4.0 won't compile with GCC 4.6.
In order to compile with Node.js 4.0, one should use a more recent gcc version.
See https://github.com/nodejs/node#unix--macintosh.

@klokane
Copy link
Contributor

klokane commented Sep 24, 2015

Thanks for link.

We are thinking about drop support of older version compilers and allow some subset of C++ 11 features in drafter/snowcrash codebase.

@igrayson
Copy link

Looking forward to using 4.0, so +1

@zanuka
Copy link

zanuka commented Sep 25, 2015

👍

@fesor
Copy link

fesor commented Sep 25, 2015

👍

2 similar comments
@dkcwd
Copy link

dkcwd commented Sep 28, 2015

👍

@RapsIn4
Copy link

RapsIn4 commented Sep 28, 2015

👍

@tbostelmann
Copy link

👍

@tobiashm
Copy link
Contributor

There's a lot of support for this issue. If anyone could take a look at #90 and help sorting out the last issues, we might be able to close it 😸

@artlogic
Copy link

artlogic commented Oct 1, 2015

👍

1 similar comment
@ghost
Copy link

ghost commented Oct 1, 2015

👍

@zachgersh
Copy link

👍
Just hit this today with v4.1.1.

@natdm
Copy link

natdm commented Oct 4, 2015

Hitting it with rpi-gpio. 4.1.1.

@tobiashm
Copy link
Contributor

tobiashm commented Oct 7, 2015

Since #90 has been merged, this issue could now be closed.
So now we are just awaiting a new release version ;-)

@pksunkara
Copy link
Contributor

The master branch now supports nodejs 3.0 and 4.0. We still need to fix a few bugs in apiaryio/drafter and release protagonist.

@rvlander
Copy link

Any idea of when it will be released?

@pksunkara
Copy link
Contributor

@rvlander We are working on this. There are a few changes which need to be made to Drafter before this can be done.

@kadishmal
Copy link

👍 Can't upgrade aglio due to this issue.

@ye
Copy link

ye commented Oct 22, 2015

👍 I guess this issue is the root cause of this one danielgtaylor/aglio#183

@kylef
Copy link
Member

kylef commented Oct 23, 2015

Thanks for your patience everyone. Protagonist 1.1.0 now supports Node 3 and Node 4.

NOTE: Any tooling such as Aglio will need to be moved to use Protagonist 1.1.0.

@kylef kylef closed this as completed Oct 23, 2015
@zanuka
Copy link

zanuka commented Oct 25, 2015

👍

@ScotterC
Copy link

ScotterC commented Nov 3, 2015

@ChALkeR thanks for this comment #81 (comment). I had GCC 4.6 and Node 4 and it wasn't working. Downgrading to Node 0.12 fixes the protagonist compilation if you can't upgrade GCC

@ChALkeR
Copy link

ChALkeR commented Nov 3, 2015

@ScotterC I don't recommend downgrading to 0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests