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

build: Warn when using snapshot on Armv6 #282

Closed
wants to merge 1 commit into from
Closed

Conversation

Cydox
Copy link

@Cydox Cydox commented Jan 10, 2015

Building io.js on armv6 with snapshot enabled does not work due to a bug in v8, so it now is disabled by default when building on armv6.
However I added a --force-snapshot option so the user can enable snapshot for debuging purposes.

I found this problem while trying to build io.js on my Raspberry Pi. With snapshot disabled v8 and all of the code compiles
, but still when testing io.js I get an 'illegal instruction' error. I´ll open an issue for that.

@piscisaureus
Copy link
Contributor

I don't really like having two options "--without-snapshot" and "--force-snapshot". It seems more reasonable to either enable "--without-snapshot" by default on armv6. Or change the option to "--snapshot=on|off|auto". @bnoordhuis wdyt?

@Cydox
Copy link
Author

Cydox commented Jan 10, 2015

Yeah i thought about that too. But i´d rather have the "--snapshot=on|off|auto" option so that
you can enable snapshot on armv6 for debugging purposes.
and on armv6 default is off

@bnoordhuis
Copy link
Member

I think I agree with Bert. In fact, I think I wouldn't change any configure switches but just print a big fat warning when someone leaves snapshots enabled on ARMv6. Being noisy about bugs gives people an incentive to go in and fix issue. Silently working around it accomplishes pretty much the opposite.

@Cydox
Copy link
Author

Cydox commented Jan 11, 2015

Ok now it will just print a warning at the end of the configure script.

@rvagg
Copy link
Member

rvagg commented Jan 11, 2015

lgtm, please squash your commits @Cydox and make them conform to the contributing guidelines in CONTRIBUTING.md.

Building io.js on armv6 with snapshot enabled does not work due to a bug in v8,
so it now warns when building on armv6 and having snapshot enabled.

I found this problem while trying to build io.js on my Raspberry Pi. With snapshot disabled v8 and all of the code compiles
, but still when testing io.js I get an 'illegal instruction' error. I´ll open an issue for that.
@Cydox
Copy link
Author

Cydox commented Jan 11, 2015

OK, i squashed the commits and changed the commit message.

@Cydox Cydox changed the title Dont use Snapshot on armv6 by default build: Warn when using snapshot on Armv6 Jan 11, 2015
@Cydox
Copy link
Author

Cydox commented Jan 11, 2015

I changed the title to fit your guideline.

rvagg pushed a commit that referenced this pull request Jan 12, 2015
Building io.js on armv6 with snapshot enabled does not work due to a bug in v8,
so it now warns when building on armv6 and having snapshot enabled.

PR-URL: #282
Reviewed-By: Rod Vagg <rod@vagg.org>
@rvagg
Copy link
Member

rvagg commented Jan 12, 2015

landed in 0cca6fe, thanks @Cydox, I'm glad we have people still concerned about armv6 builds

@rvagg rvagg closed this Jan 12, 2015
@silverwind
Copy link
Contributor

@Cydox Got a reference to that snapshot bug in v8?

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

Successfully merging this pull request may close these issues.

5 participants