[Pkg-javascript-devel] Bug#1010509: nodejs: add more info about build fail on riscv64

Bo YU tsu.yubo at gmail.com
Thu May 5 10:09:32 BST 2022


Package: nodejs
Version: 16.14.2+dfsg-5
Tags: patch, ftbfs
Followup-For: Bug #1010509
User: debian-riscv at lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv at lists.debian.org

Hi,

I noticed the buildd log on riscv64:

https://buildd.debian.org/status/fetch.php?pkg=nodejs&arch=riscv64&ver=16.14.2%2Bdfsg-5&stamp=1651638439&raw=0

So I want to try build nodejs on riscv64 locally with
`sbuild -d sid-riscv64-sbuild` on real riscv64 hardware(Unmatched boards):

It seems ok:

```
...

I: Lintian run was successful.

+------------------------------------------------------------------------------+
| Post Build                                                                   |
+------------------------------------------------------------------------------+


+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: riscv64
Build Type: binary
Build-Space: 17568828
Build-Time: 35693
Distribution: sid-riscv64-sbuild
Host Architecture: riscv64
Install-Time: 101
Job: /home/vimer/05/12_nodejs/nodejs_16.14.2+dfsg-5.dsc
Lintian: warn
Machine Architecture: riscv64
Package: nodejs
Package-Time: 35915
Source-Version: 16.14.2+dfsg-5
Space: 17568828
Status: successful
Version: 16.14.2+dfsg-5
--------------------------------------------------------------------------------
Finished at 2022-05-05T08:17:57Z
Build needed 09:58:35, 17568828k disk space
...

```
except:

```
...
if [ -x /<<PKGBUILDDIR>>/./node ] && [ -e /<<PKGBUILDDIR>>/./node ]; then /<<PKGBUILDDIR>>/./node  debian/doc-generator/versions.mjs out/previous-doc-versions.json; elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then `command -v node`  debian/doc-generator/versions.mjs out/previous-doc-versions.json; else echo "No available node, cannot run \"node  debian/doc-generator/versions.mjs out/previous-doc-versions.json\""; exit 1; fi;
if [ -x /<<PKGBUILDDIR>>/./node ] && [ -e /<<PKGBUILDDIR>>/./node ]; then /<<PKGBUILDDIR>>/./node  debian/doc-generator/apilinks.mjs out/doc/apilinks.json lib/_http_agent.js lib/_http_client.js lib/_http_common.js lib/_http_incoming.js lib/_http_outgoing.js lib/_http_server.js lib/_stream_duplex.js lib/_stream_passthrough.js lib/_stream_readable.js lib/_stream_transform.js lib/_stream_wrap.js lib/_stream_writable.js lib/_tls_common.js lib/_tls_wrap.js lib/assert.js lib/async_hooks.js lib/buffer.js lib/child_process.js lib/cluster.js lib/console.js lib/constants.js lib/crypto.js lib/dgram.js lib/diagnostics_channel.js lib/dns.js lib/domain.js lib/events.js lib/fs.js lib/http.js lib/http2.js lib/https.js lib/inspector.js lib/module.js lib/net.js lib/os.js lib/path.js lib/perf_hooks.js lib/process.js lib/punycode.js lib/querystring.js lib/readline.js lib/repl.js lib/stream.js lib/string_decoder.js lib/sys.js lib/timers.js lib/tls.js lib/trace_events.js lib/tty.js lib/url.js lib/util.js lib/v8.js lib/vm.js lib/wasi.js lib/worker_threads.js lib/zlib.js; elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then `command -v node`  debian/doc-generator/apilinks.mjs out/doc/apilinks.json lib/_http_agent.js lib/_http_client.js lib/_http_common.js lib/_http_incoming.js lib/_http_outgoing.js lib/_http_server.js lib/_stream_duplex.js lib/_stream_passthrough.js lib/_stream_readable.js lib/_stream_transform.js lib/_stream_wrap.js lib/_stream_writable.js lib/_tls_common.js lib/_tls_wrap.js lib/assert.js lib/async_hooks.js lib/buffer.js lib/child_process.js lib/cluster.js lib/console.js lib/constants.js lib/crypto.js lib/dgram.js lib/diagnostics_channel.js lib/dns.js lib/domain.js lib/events.js lib/fs.js lib/http.js lib/http2.js lib/https.js lib/inspector.js lib/module.js lib/net.js lib/os.js lib/path.js lib/perf_hooks.js lib/process.js lib/punycode.js lib/querystring.js lib/readline.js lib/repl.js lib/stream.js lib/string_decoder.js lib/sys.js lib/timers.js lib/tls.js lib/trace_events.js lib/tty.js lib/url.js lib/util.js lib/v8.js lib/vm.js lib/wasi.js lib/worker_threads.js lib/zlib.js; else echo "No available node, cannot run \"node  debian/doc-generator/apilinks.mjs out/doc/apilinks.json lib/_http_agent.js lib/_http_client.js lib/_http_common.js lib/_http_incoming.js lib/_http_outgoing.js lib/_http_server.js lib/_stream_duplex.js lib/_stream_passthrough.js lib/_stream_readable.js lib/_stream_transform.js lib/_stream_wrap.js lib/_stream_writable.js lib/_tls_common.js lib/_tls_wrap.js lib/assert.js lib/async_hooks.js lib/buffer.js lib/child_process.js lib/cluster.js lib/console.js lib/constants.js lib/crypto.js lib/dgram.js lib/diagnostics_channel.js lib/dns.js lib/domain.js lib/events.js lib/fs.js lib/http.js lib/http2.js lib/https.js lib/inspector.js lib/module.js lib/net.js lib/os.js lib/path.js lib/perf_hooks.js lib/process.js lib/punycode.js lib/querystring.js lib/readline.js lib/repl.js lib/stream.js lib/string_decoder.js lib/sys.js lib/timers.js lib/tls.js lib/trace_events.js lib/tty.js lib/url.js lib/util.js lib/v8.js lib/vm.js lib/wasi.js lib/worker_threads.js lib/zlib.js\""; exit 1; fi;
Error: Unrecognized type: 'string\[]'.
Please, edit the type or update 'file:///<<PKGBUILDDIR>>/debian/doc-generator/type-parser.mjs'.
at file:///<<PKGBUILDDIR>>/debian/doc-generator/type-parser.mjs:297:15
at Array.forEach (<anonymous>)
at Module.toLink (file:///<<PKGBUILDDIR>>/debian/doc-generator/type-parser.mjs:273:13)
at file:///<<PKGBUILDDIR>>/debian/doc-generator/html.mjs:153:61
at Array.forEach (<anonymous>)
at linkJsTypeDocs (file:///<<PKGBUILDDIR>>/debian/doc-generator/html.mjs:152:21)
at replaceInText (file:///<<PKGBUILDDIR>>/debian/doc-generator/html.mjs:116:10)
at file:///<<PKGBUILDDIR>>/debian/doc-generator/html.mjs:108:20
at Array.forEach (<anonymous>)
at preprocessText (file:///<<PKGBUILDDIR>>/debian/doc-generator/html.mjs:92:9) in It serializes the following types of values passed in `obj`:
{string|number|bigint|boolean|string\[]|number\[]|bigint\[]|boolean\[]}
The numeric values must be finite. Any other input values will be coerced to
empty strings.
...

```

But it should no harm to build riscv64 packages from result at last.

So maybe the rv-osuosl-02[0] machines has different with the real hardware?

BR,
Bo

[0]:https://people.debian.org/~mafm/posts/2019/20191211_debian-gnulinux-riscv64-port-sponsors-and-build-machines/



More information about the Pkg-javascript-devel mailing list