[Pkg-javascript-devel] Bug#850506: acorn: FTBFS randomly (Error: missing module import)
Santiago Vila
sanvila at debian.org
Sat Jan 7 10:16:39 UTC 2017
Package: src:acorn
Version: 4.0.3-3
Severity: important
Dear maintainer:
I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep
dh_testdir -i
dh_update_autotools_config -i
dh_autoreconf -i
dh_auto_configure -i
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p dist/bin
mkdir -p dist/loose
mkdir -p dist/walk
ln -s dist/index.js acorn.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/location.js > dist/location.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/walk/index.js > dist/walk/index.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/locutil.js > dist/locutil.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/util.js > dist/util.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/lval.js > dist/lval.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/node.js > dist/node.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/expression.js > dist/expression.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/state.js > dist/state.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/parseutil.js > dist/parseutil.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/tokenize.js > dist/tokenize.js
compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/ src/bin/acorn.js > dist/bin/acorn.js
/usr/lib/nodejs/es6-module-transpiler/bin/compile-modules:82
throw ex;
^
Error: missing module import from src/bin/acorn.js for path: acorn
at Container.getModule (/usr/lib/nodejs/es6-module-transpiler/lib/container.js:94:9)
at Module.getModule (/usr/lib/nodejs/es6-module-transpiler/lib/module.js:189:25)
at ImportDeclaration.<anonymous> (/usr/lib/nodejs/es6-module-transpiler/lib/module_binding_declaration.js:106:40)
at ImportDeclaration.Object.defineProperty.get (/usr/lib/nodejs/es6-module-transpiler/lib/utils.js:15:31)
at CommonJSFormatter.importedReference (/usr/lib/nodejs/es6-module-transpiler/lib/formatters/commonjs_formatter.js:319:46)
at Context.Rewriter.getExportReferenceForReference (/usr/lib/nodejs/es6-module-transpiler/lib/rewriter.js:363:20)
at Context.Rewriter.visitIdentifier (/usr/lib/nodejs/es6-module-transpiler/lib/rewriter.js:106:32)
at Context.invokeVisitorMethod (/usr/lib/nodejs/ast-types/lib/path-visitor.js:344:49)
at Rewriter.PVp.visitWithoutReset (/usr/lib/nodejs/ast-types/lib/path-visitor.js:196:32)
at visitChildren (/usr/lib/nodejs/ast-types/lib/path-visitor.js:246:25)
debian/rules:36: recipe for target 'dist/bin/acorn.js' failed
make[1]: *** [dist/bin/acorn.js] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:11: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------
This is just how the build ends, not necessarily the relevant part.
I've put several build logs here:
https://people.debian.org/~sanvila/build-logs/acorn/
If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.
The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).
Thanks.
More information about the Pkg-javascript-devel
mailing list