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

Eleventy-img plugin causing build error? #144

Open
tionosulis opened this issue Mar 7, 2023 · 1 comment
Open

Eleventy-img plugin causing build error? #144

tionosulis opened this issue Mar 7, 2023 · 1 comment
Labels
third-party Issue with a third party

Comments

@tionosulis
Copy link

tionosulis commented Mar 7, 2023

npx @11ty/eleventy build failed with zsh: illegal hardware instruction (core dumped) npm run build

Environment

  • OS: ManjaroLinux 22.0.2 Sikaris
  • CPU: 64-bit Pentium(R) Dual-Core E5700 @ 3.00GHz
  • Node-v: 18.13.0
  • NPM-v: 8.19.2

To Reproduce

  1. Fresh clone
  2. npm install
  3. npx @11ty/eleventy

Expected behavior

  • Build run as expected

Failure logs
zsh: illegal hardware instruction (core dumped) npm run build

Debug output:

DEBUG=Eleventy* npx @11ty/eleventy
  Eleventy:cmd command: eleventy { _: [], quiet: null, version: false, watch: false, dryrun: false, help: false, serve: false, incremental: false, 'ignore-initial': false } +0ms
  Eleventy:EventBus Setting up global EventBus. +0ms
  Eleventy:UserConfig Resetting EleventyConfig to initial values. +0ms
  Eleventy:UserConfig Adding universal filter 'slug' +118ms
  Eleventy:UserConfig Adding universal filter 'slugify' +1ms
  Eleventy:UserConfig Adding universal filter 'url' +1ms
  Eleventy:UserConfig Adding universal filter 'log' +0ms
  Eleventy:UserConfig Adding universal filter 'serverlessUrl' +0ms
  Eleventy:UserConfig Adding universal filter 'getCollectionItemIndex' +1ms
  Eleventy:UserConfig Adding universal filter 'getCollectionItem' +0ms
  Eleventy:UserConfig Adding universal filter 'getPreviousCollectionItem' +1ms
  Eleventy:UserConfig Adding universal filter 'getNextCollectionItem' +0ms
  Eleventy:TemplateConfig rootConfig { templateFormats: [ 'liquid',   'ejs', 'md',       'hbs', 'mustache', 'haml', 'pug',      'njk', 'html',     '11ty.js' ], pathPrefix: '/', markdownTemplateEngine: 'liquid', htmlTemplateEngine: 'liquid', htmlOutputSuffix: '-o', dataFileSuffixes: [ '.11tydata', '' ], dataFileDirBaseNameOverride: false, keys: { package: 'pkg', layout: 'layout', permalink: 'permalink', permalinkRoot: 'permalinkBypassOutputDir', engineOverride: 'templateEngineOverride', computed: 'eleventyComputed' }, dir: { input: '.', includes: '_includes', data: '_data', output: '_site' }, handlebarsHelpers: {}, nunjucksFilters: {} } +0ms
  Eleventy Setting process.env.ELEVENTY_ROOT: '/home/meysa/eleventy-base-blog' +0ms
  Eleventy:TemplateConfig Merging config with eleventy.config.js +7ms
zsh: illegal hardware instruction (core dumped)  DEBUG=Eleventy* npx @11ty/eleventy

Additional info
Build success by uninstalling eleventy-img plugin

Any help/workaround to this would be much appreciated.

@tionosulis tionosulis changed the title Eleventy-img plugin causing build error Build error on low-end CPU Mar 8, 2023
@tionosulis tionosulis changed the title Build error on low-end CPU Eleventy-img plugin causing build error? Mar 9, 2023
@zachleat
Copy link
Member

This is likely coming from the sharp dependency, I see a few related issues upstream! https://github.com/lovell/sharp/issues?q=is%3Aissue+illegal+hardware+instruction+is%3Aclosed

@zachleat zachleat added the third-party Issue with a third party label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party Issue with a third party
Projects
None yet
Development

No branches or pull requests

2 participants