[Pkg-javascript-devel] Bug#1016322: node-undici: FTBFS: bin/build_wasm.ts(30, 23): error TS2722: Cannot invoke an object which is possibly 'undefined'.

Lucas Nussbaum lucas at debian.org
Fri Jul 29 19:40:28 BST 2022


Source: node-undici
Version: 5.8.0+dfsg1+~cs18.9.16-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220728 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure --buildsystem=nodejs
> Link ./node_modules/@types/debug -> /usr/share/nodejs/@types/debug
> Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
> Link ./node_modules/@types/semver -> /usr/share/nodejs/@types/semver
> Link node_modules/binary-search -> ../binary-search
> Link node_modules/llhttp -> ../llhttp
> Link node_modules/llparse -> ../llparse
> Link node_modules/llparse-builder -> ../llparse-builder
> Link node_modules/llparse-frontend -> ../llparse-frontend
> Link llparse-frontend/node_modules/llparse-builder -> ../../llparse-builder
> Link llparse/node_modules/llparse-frontend -> ../../llparse-frontend
> Link llhttp/node_modules/llparse -> ../../llparse
>    dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
> Found debian/nodejs/llparse-builder/build
> 	cd ./llparse-builder && sh -ex ../debian/nodejs/llparse-builder/build
> + tsc
> Found debian/nodejs/llparse-frontend/build
> 	cd ./llparse-frontend && sh -ex ../debian/nodejs/llparse-frontend/build
> + tsc
> Found debian/nodejs/llparse/build
> 	cd ./llparse && sh -ex ../debian/nodejs/llparse/build
> + tsc
> Found debian/nodejs/llhttp/build
> 	cd ./llhttp && sh -ex ../debian/nodejs/llhttp/build
> + ts-node bin/generate.ts
> + tsc
> + WASI_ROOT=/usr ts-node bin/build_wasm.ts
> /usr/share/nodejs/ts-node/src/index.ts:865
>     return new TSError(diagnosticText, diagnosticCodes, diagnostics);
>            ^
> TSError: ⨯ Unable to compile TypeScript:
> bin/build_wasm.ts(30,23): error TS2722: Cannot invoke an object which is possibly 'undefined'.
> bin/build_wasm.ts(30,43): error TS2722: Cannot invoke an object which is possibly 'undefined'.
> 
>     at createTSError (/usr/share/nodejs/ts-node/src/index.ts:865:12)
>     at reportTSError (/usr/share/nodejs/ts-node/src/index.ts:869:19)
>     at getOutput (/usr/share/nodejs/ts-node/src/index.ts:1083:36)
>     at Object.compile (/usr/share/nodejs/ts-node/src/index.ts:1439:41)
>     at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1623:30)
>     at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
>     at Object.require.extensions.<computed> [as .ts] (/usr/share/nodejs/ts-node/src/index.ts:1627:12)
>     at Module.load (node:internal/modules/cjs/loader:998:32)
>     at Function.Module._load (node:internal/modules/cjs/loader:839:12)
>     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
>   diagnosticCodes: [ 2722, 2722 ]
> }
> dh_auto_build: error: cd ./llhttp && sh -ex ../debian/nodejs/llhttp/build returned exit code 1
> make: *** [debian/rules:11: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2022/07/28/node-undici_5.8.0+dfsg1+~cs18.9.16-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list