Project

General

Profile

Actions

Bug #17491

closed

webpack:compile fails on ARMv8

Added by Anonymous over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Rake tasks
Target version:

Description

From http://ci.theforeman.org/job/packaging_build_deb_coreproject/arch=armv8,label=debian,os=xenial/3871/console

00:34:46 /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/.bin/webpack --config /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/config/webpack.config.js --bail

00:35:00 ModuleBuildError: Module build failed: TypeError: /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/webpack/assets/javascripts/react_app/components/hosts/PowerStatusContainer.js: this.labels.get is not a function
00:35:00     at Scope.getLabel (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/scope/index.js:473:24)
00:35:00     at Scope.hasLabel (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/scope/index.js:469:19)
00:35:00     at Scope.generateUid (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/scope/index.js:273:19)
00:35:00     at Scope.generateUidIdentifier (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/scope/index.js:260:30)
00:35:00     at Scope.generateUidIdentifierBasedOnNode (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/scope/index.js:361:17)
00:35:00     at run (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:137:30)
00:35:00     at PluginPass.ClassExpression (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-plugin-transform-es2015-classes/lib/index.js:48:60)
00:35:00     at newFn (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/visitors.js:276:21)
00:35:00     at NodePath._call (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/path/context.js:76:18)
00:35:00     at NodePath.call (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/path/context.js:48:17)
00:35:00     at NodePath.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/path/context.js:105:12)
00:35:00     at TraversalContext.visitQueue (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:150:16)
00:35:00     at TraversalContext.visitSingle (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:108:19)
00:35:00     at TraversalContext.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:192:19)
00:35:00     at Function.traverse.node (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/index.js:114:17)
00:35:00     at NodePath.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/path/context.js:115:19)
00:35:00     at TraversalContext.visitQueue (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:150:16)
00:35:00     at TraversalContext.visitMultiple (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:103:17)
00:35:00     at TraversalContext.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:190:19)
00:35:00     at Function.traverse.node (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/index.js:114:17)
00:35:00     at NodePath.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/path/context.js:115:19)
00:35:00     at TraversalContext.visitQueue (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:150:16)
00:35:00     at TraversalContext.visitQueue (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:156:21)
00:35:00     at TraversalContext.visitMultiple (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:103:17)
00:35:00     at TraversalContext.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:190:19)
00:35:00     at Function.traverse.node (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/index.js:114:17)
00:35:00     at NodePath.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/path/context.js:115:19)
00:35:00     at TraversalContext.visitQueue (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:150:16)
00:35:00     at TraversalContext.visitSingle (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:108:19)
00:35:00     at TraversalContext.visit (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/context.js:192:19)
00:35:00     at Function.traverse.node (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/babel-traverse/lib/index.js:114:17)
00:35:00     at DependenciesBlock.onModuleBuildFailed (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/webpack-core/lib/NormalModuleMixin.js:315:19)
00:35:00     at nextLoader (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/webpack-core/lib/NormalModuleMixin.js:270:31)
00:35:00     at /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15
00:35:00     at runSyncOrAsync (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/webpack-core/lib/NormalModuleMixin.js:173:4)
00:35:00     at nextLoader (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3)
00:35:00     at /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
00:35:00     at Storage.finished (/var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
00:35:00     at /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/armv8/label/debian/os/xenial/debian/xenial/build-foreman/foreman-1.14.0/node_modules/graceful-fs/graceful-fs.js:78:16
00:35:00     at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

00:35:31 rake aborted!
00:35:31 Command failed with status (1): [/var/lib/workspace/workspace/packaging_bui...]
00:35:31 /var/lib/gems/2.3.0/gems/webpack-rails-0.9.9/lib/tasks/webpack.rake:17:in `block (2 levels) in <top (required)>'
00:35:31 /var/lib/gems/2.3.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
00:35:31 Tasks: TOP => webpack:compile

As the build succeeds on x86 and ARMv7, it's likely that this is an issue in nodejs (4.2.6~dfsg-1ubuntu4.1) or a part of the toolchain. Note that there are no nodesource packages for ARMv8, so that builder can not get simply updated.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #14688: Add power status to All Hosts pageClosedOndřej Pražák04/18/2016Actions
Actions #1

Updated by Anonymous over 7 years ago

Actions #2

Updated by Anonymous over 7 years ago

In theory, as last resort, we could build our own packages of 4.6.1~dfsg-1, but I hope for a different solution.

Actions #3

Updated by Anonymous over 7 years ago

I compiled myself a nodejs-4.6.1~dfsg-1 and that works...

Actions #4

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomer Brisker
  • Pull request https://github.com/theforeman/foreman/pull/4059 added
Actions #5

Updated by Anonymous over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Anonymous over 7 years ago

  • Status changed from Closed to Assigned
  • Assignee changed from Tomer Brisker to Anonymous

Unfortunately, the pbuilder build still fails, I guess some v8 codepaths are trigged differently at each build. So I propose that https://github.com/mmoll/nodejs is getting built into the Foreman repo (ARMv8 only) and the dependencies are set (for ARMv8 only) to that nodejs version.

I also opened https://bugs.launchpad.net/ubuntu/+source/nodejs/+bug/1645010 but don't expect a quick resolution there.

Once everything is green again, the change to Foreman core can be reverted.

Actions #7

Updated by Dominic Cleal over 7 years ago

  • Status changed from Assigned to Closed
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1438 added
Actions #8

Updated by The Foreman Bot over 7 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4066 added
Actions

Also available in: Atom PDF