nodejs / unofficial-builds

Unofficial binaries for Node.js
https://unofficial-builds.nodejs.org
250 stars 53 forks source link

on debian i386, emmintrin.h:630:1 broke my build #32

Closed ghost closed 3 years ago

ghost commented 3 years ago

Has Debian now defected to the traitors? Node.js is only available in version 10.XYZ unsolved.or.whatever! However, to use, build, etc. webpass, Node.js >=12 requirement with result install v12.22.1 failed! The thing is, it dutifully built happily for more than an hour and then this: _mm_set1_epi64x(i64) What has a 64 bit function got to do with an i386 architecture. Probably not rolled out cleanly? I could be completely wrong, who knows.

In file included from ../deps/zlib/contrib/optimizations/inffast_chunk.c:10:
../deps/zlib/contrib/optimizations/chunkcopy.h: In function ‘loadchunk’:
../deps/zlib/contrib/optimizations/chunkcopy.h:52:5: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
     const unsigned char FAR* s) {
     ^~~~~
In file included from ../deps/zlib/contrib/optimizations/chunkcopy.h:32,
                 from ../deps/zlib/contrib/optimizations/inffast_chunk.c:10:
../deps/zlib/contrib/optimizations/chunkcopy.h: In function ‘v_load64_dup’:
/usr/lib/gcc/i686-linux-gnu/8/include/emmintrin.h:630:1: error: inlining failed in call to always_inline ‘_mm_set1_epi64x’: target specific option mismatch
 _mm_set1_epi64x (long long __A)
 ^~~~~~~~~~~~~~~
In file included from ../deps/zlib/contrib/optimizations/inffast_chunk.c:10:
../deps/zlib/contrib/optimizations/chunkcopy.h:215:10: note: called from here
   return _mm_set1_epi64x(i64);
          ^~~~~~~~~~~~~~~~~~~~
make[1]: *** [deps/zlib/zlib.target.mk:109: /home/folkert/.nvm/.cache/src/node-v12.22.1/files/out/Release/obj.target/zlib/deps/zlib/contrib/optimizations/inffast_chunk.o] Fehler 1
rm b50ee9c7f577bb3ee438a1ef75f4ff1f3a3bc542.intermediate 88d8ac255769bf821a5a2797d6c5cd7267f7720e.intermediate 192f3ac2d775c01752d6cb5077b6307b3c71d3ec.intermediate 1366290a29b3a245309cc7e52107c9e95dd39f54.intermediate
make: *** [Makefile:104: node] Fehler 2
nvm: install v12.22.1 failed!
ghost commented 3 years ago

Now using node v12.0.0 (npm v6.9.0) Creating default alias: default -> v12.0.0

ghost commented 3 years ago

folkert@strshp:~/git/keeweb/keeweb$ npm run Lifecycle scripts included in keeweb: start grunt test grunt test

available via npm run-script: build-beta grunt --beta && cp dist/index.html ../keeweb-beta/index.html && cd ../keeweb-beta && git add index.html && git commit -a -m 'beta' && git push origin master electron cross-env KEEWEB_IS_PORTABLE=0 ELECTRON_DISABLE_SECURITY_WARNINGS=1 KEEWEB_EMULATE_HARDWARE_ENCRYPTION=persistent KEEWEB_HTML_PATH=http://localhost:8085 electron desktop --no-sandbox dev grunt dev dev-desktop-macos grunt dev-desktop-darwin --skip-sign dev-desktop-macos-signed grunt dev-desktop-darwin-signed dev-desktop-windows grunt dev-desktop-win32 --skip-sign dev-desktop-linux grunt dev-desktop-linux --skip-sign babel-helpers babel-external-helpers -l 'slicedToArray,toConsumableArray,defineProperty,typeof' -t global > app/lib/babel-helpers.js folkert@strshp:~/git/keeweb/keeweb$ npm run start

keeweb@1.17.5 start /home/folkert/git/keeweb/keeweb grunt

Loading "appdmg.js" tasks...ERROR

Error: Cannot find module 'macos-alias' Require stack:

  • /home/folkert/git/keeweb/keeweb/node_modules/ds-store/index.js
  • /home/folkert/git/keeweb/keeweb/node_modules/appdmg/lib/appdmg.js
  • /home/folkert/git/keeweb/keeweb/node_modules/appdmg/index.js
  • /home/folkert/git/keeweb/keeweb/node_modules/grunt-appdmg/tasks/appdmg.js
  • /home/folkert/git/keeweb/keeweb/node_modules/grunt/lib/grunt/task.js
  • /home/folkert/git/keeweb/keeweb/node_modules/grunt/lib/grunt.js
  • /home/folkert/git/keeweb/keeweb/node_modules/grunt/node_modules/grunt-cli/bin/grunt
  • /home/folkert/git/keeweb/keeweb/node_modules/grunt/bin/grunt Building KeeWeb v1.17.5 (933df5fa)

Running "clean:dist" (clean) task

0 paths cleaned.

Running "clean:desktop" (clean) task

0 paths cleaned.

Running "eslint:app" (eslint) task

Running "eslint:desktop" (eslint) task

Running "eslint:build" (eslint) task

Running "eslint:plugins" (eslint) task

Running "eslint:util" (eslint) task

Running "eslint:installer" (eslint) task

Running "copy:html" (copy) task Copied 1 file

Running "copy:icons" (copy) task Copied 17 files

Running "copy:manifest" (copy) task Copied 2 files

Running "webpack:app" (webpack) task Building fontawesome.woff2... ok: 2163ms, 154 icons, 13.82 KiB Webpack Bundle Analyzer saved report to /home/folkert/git/keeweb/keeweb/tmp/stats/analyzer_report.html Webpack Bundle Analyzer saved stats file to /home/folkert/git/keeweb/keeweb/tmp/stats/stats.json asset js/app.js 1.35 MiB [emitted] [minimized] [big] (name: app) asset css/app.css 128 KiB [emitted] (name: app) Entrypoint app [big] 1.48 MiB = css/app.css 128 KiB js/app.js 1.35 MiB orphan modules 19.7 KiB [orphan] 5 modules runtime modules 1.13 KiB 5 modules modules by path ./app/ 1.46 MiB (javascript) 134 KiB (css/mini-extract) modules by path ./app/scripts/ 904 KiB 202 modules modules by path ./app/templates/ 572 KiB 55 modules modules by path ./app/styles/.scss 50 bytes (javascript) 134 KiB (css/mini-extract) 2 modules 2 modules modules by path ./node_modules/ 515 KiB modules by path ./node_modules/handlebars/ 39.3 KiB 22 modules modules by path ./node_modules/lodash/.js 16.5 KiB 15 modules modules by path ./node_modules/argon2-browser/dist/ 47.8 KiB ./node_modules/argon2-browser/dist/argon2.js 14.4 KiB [optional] [built] [code generated] cjs full require argon2 ./app/scripts/util/kdbxweb/kdbxweb-init.js 79:33-58 ./node_modules/argon2-browser/dist/argon2.wasm 33.5 KiB [built] [code generated] cjs require argon2-wasm ./app/scripts/util/kdbxweb/kdbxweb-init.js 81:33-55 cjs self exports reference ./node_modules/argon2-browser/dist/argon2.wasm 1:0-14 external "null" 42 bytes [built] [code generated] cjs require crypto ./node_modules/kdbxweb/dist/kdbxweb.min.js 2:82-99 cjs require xmldom ./node_modules/kdbxweb/dist/kdbxweb.min.js 2:100-117 cjs require crypto ./node_modules/tweetnacl/nacl.min.js 1:18882-18899 moment (ignored) 15 bytes [optional] [built] [code generated] cjs require moment ./node_modules/pikaday/pikaday.js 15:23-40 1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) webpack 5.24.3 compiled with 1 warning in 43026 ms

Running "inline:app" (inline) task Processing tmp/index.html as filetype html... OK

Running "htmlmin:app" (htmlmin) task Minified 1 files

Running "csp-hashes:app" (csp-hashes) task Added CSP hashes: 1 style(s), 1 script(s)

Running "copy:content-dist" (copy) task Created 1 directory, copied 4 files

Running "string-replace:service-worker" (string-replace) task

1 files created

Running "string-replace:update-manifest" (string-replace) task

2 files created

Running "copy:dist-icons" (copy) task Copied 17 files

Running "copy:dist-manifest" (copy) task Copied 2 files

Done.

Execution Time (2021-05-01 17:48:47 UTC+2) loading tasks 2.8s ▇▇▇▇▇ 4% eslint:app 23.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 29% eslint:desktop 1.1s ▇▇ 1% eslint:build 1s ▇▇ 1% webpack:app 49.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 62% htmlmin:app 937ms ▇▇ 1% Total 1m 19.5s

folkert@strshp:~/git/keeweb/keeweb$

ghost commented 3 years ago

I'm closing the issue, I don't care if 12.22.1 is a problem.

ghost commented 3 years ago

I do not want to understate my success here! grafik