<div dir="ltr"><div>(please avoid top-posting, it makes the discussion hard to read for newcomers - my reply is at the bottom)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 24, 2022 at 12:53 AM Bo YU <<a href="mailto:tsu.yubo@gmail.com">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">s/check/builtin</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 24, 2022 at 7:50 AM Bo YU <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 18, 2022 at 4:49 PM Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 18, 2022 at 8:25 AM Bo YU <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Jérémy,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 16, 2022 at 7:11 PM Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 15, 2022 at 10:46 PM Bo YU <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">HI</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 14, 2022 at 11:03 PM Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 14, 2022 at 3:58 PM Bo YU <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Jérémy,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 14, 2022 at 9:27 AM Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Package: nodejs<br>
Followup-For: Bug #994245<br>
X-Debbugs-Cc: Bo YU <<a href="mailto:tsu.yubo@gmail.com" target="_blank">tsu.yubo@gmail.com</a>><br>
<br>
Hi,<br>
<br>
recently Bo YU has worked on building nodejs 14 for riscv64.<br>
<br>
Bo, you can tell us here what you achieved, and what's blocking you right now ?<br>
<br></blockquote><div>Good news: I am building the nodejs(16.14) that remove d/control file about nocheck nodoc  nobuildt tags</div><div> with ` sudo sbuild --arch=riscv64 -d sid-riscv64-sbuild  --extra-package=/home/vimer/pre_install_debs/`.</div><div>Yadd hinted me: I firstly rebuild pkg-js-tools package and yadd told me that is all arch  and it does not need to</div><div>rebuild at all. So I downloaded those special packages form <a href="https://packages.debian.org/" target="_blank">https://packages.debian.org/</a> and pass them </div><div>with --extar-package argument. At last it can build. But according to last build experience, It will last 15+ h.</div><div>If everything is ok, I will upload the changes file to experimental tomorrow</div></div></div></blockquote><div><br></div><div>It's so simple it's painful :)</div></div></div></blockquote></div></div></blockquote><div><br></div><div>Well actually i got blinded by that simplicity, see below. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Bad news: <br>In the past two days, I got the same error when rebuild riscv arch nodejs package:</div><div><br></div><div>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;<br>node:internal/errors:464<br>    ErrorCaptureStackTrace(err);<br>    ^<br><br>Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/<<PKGBUILDDIR>>/deps/acorn/acorn/dist/acorn.mjs' imported from /<<PKGBUILDDIR>>/debian/doc-generator/apilinks.mjs<br>    at new NodeError (node:internal/errors:371:5)<br>    at finalizeResolution (node:internal/modules/esm/resolve:418:11)<br>    at moduleResolve (node:internal/modules/esm/resolve:981:10)<br>    at defaultResolve (node:internal/modules/esm/resolve:1078:11)<br>    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)<br>    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)<br>    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)<br>    at link (node:internal/modules/esm/module_job:78:36) {<br>  code: 'ERR_MODULE_NOT_FOUND'<br>}<br>make[3]: *** [Makefile:726: out/doc/apilinks.json] Error 1<br>make[2]: *** [Makefile:686: doc-only] Error 2<br>make[2]: Leaving directory '/<<PKGBUILDDIR>>'<br>make[1]: *** [debian/rules:249: override_dh_auto_build-indep] Error 2<br>make[1]: Leaving directory '/<<PKGBUILDDIR>>'<br>make: *** [debian/rules:186: binary] Error 2<br>dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2<br>--------------------------------------------------------------------------------<br>Build finished at 2022-03-15T18:52:50Z<br><br>Was I missing the dependencies?</div></div></div></blockquote><div><br></div><div>I repeat that to bootstrap nodejs you need to build first the arch-dependent packages (nodejs, libnode..)</div><div>--build=any<br></div><div>DEB_BUILD_PROFILES="nodoc nocheck nobuiltin"</div></div></div></blockquote><div>let me just clarify. First  I git clone nodejs from salsa && git checkout master-16.x</div><div>`dpkg-buildpackage --build=any` (with DEB_BUILD_PROFILES="nodoc nocheck nobuiltin"). I am not sure whether</div><div>to fix d/control file.</div></div></div></blockquote><div><br></div></div></div></blockquote><div><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>Yes, the command is</div><div>DEB_BUILD_PROFILES="nodoc nocheck nobuiltin"  dpkg-buildpackage --build=any</div></div></div></blockquote></div></div></blockquote></div></blockquote><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>After several times build fails about (on riscv hardware):<br> collect2: fatal error: ld terminated with signal 9 [Killed]<br>compilation terminated.<br>I have to switch VM. I checkout master/16.x today and noticed nodejs's deps about node-acorn with  <!pkg.nodejs.nobuiltin> tag?<br>Is this what we want?<br>In order to build nodejs-*.deb on riscv, I change it to <!nocheck> locally,OK?</blockquote></div><div><br></div><div>Yes, lintian raised this warning</div><div><a href="https://lintian.debian.org/tags/invalid-profile-name-in-source-relation">https://lintian.debian.org/tags/invalid-profile-name-in-source-relation</a><br></div><div>and fixing it requires to prefix package-specific build profiles with a namespace.</div><div>So it became:</div><div>DEB_BUILD_PROFILES="nodoc nocheck pkg.nodejs.nobuiltin"<br></div><div><br></div><div>Jérémy</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>