Closed dkwo closed 1 year ago
as part of upadting in Void Linux https://github.com/void-linux/void-packages/pull/42644 the command CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make .jsdep assets fails when cross-building e.g. from x86_64-musl to aarch64.
CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make .jsdep assets
Do you know where this should be reported? I tried at node-gyp, but it is mostly ignored https://github.com/nodejs/node-gyp/issues/2817
The build log:
cd ui && yarn --no-progress --no-emoji yarn install v1.22.18 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning "workspace-aggregator-aaade2ff-78c8-4469-b750-a6a736c83ed4 > chronograf-ui > cypress-image-snapshot@4.0.1" has incorrect peer dependency "cypress@^4.5.0". warning "workspace-aggregator-aaade2ff-78c8-4469-b750-a6a736c83ed4 > chronograf-ui > react-tooltip@3.11.6" has incorrect peer dependency "react@>=^16.0.0". warning "workspace-aggregator-aaade2ff-78c8-4469-b750-a6a736c83ed4 > chronograf-ui > react-tooltip@3.11.6" has incorrect peer dependency "react-dom@>=^16.0.0". warning "workspace-aggregator-aaade2ff-78c8-4469-b750-a6a736c83ed4 > chronograf-ui > cypress-image-snapshot > jest-image-snapshot@4.2.0" has incorrect peer dependency "jest@>=20 <=26". [4/4] Building fresh packages... warning Error running install script for optional dependency: "/builddir/chronograf-1.10.1/node_modules/msgpackr-extract: Command failed. Exit code: 1 Command: node-gyp-build-optional-packages Arguments: Directory: /builddir/chronograf-1.10.1/node_modules/msgpackr-extract Output: gyp info it worked if it ends with ok gyp info using node-gyp@8.4.1 gyp info using node@16.19.0 | linux | x64 gyp info find Python using Python version 3.11.3 found at \"/usr/bin/python3\" gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/builddir/chronograf-1.10.1/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/builddir/chronograf-1.10.1/node_modules/msgpackr-extract/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/builddir/chronograf-1.10.1/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/tmp/.cache/node-gyp/16.19.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/tmp/.cache/node-gyp/16.19.0', gyp info spawn args '-Dnode_gyp_dir=/builddir/chronograf-1.10.1/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/tmp/.cache/node-gyp/16.19.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/builddir/chronograf-1.10.1/node_modules/msgpackr-extract', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp infomake[1]: Entering directory '/builddir/chronograf-1.10.1/node_modules/msgpackr-extract/build' spawn make gyp CXX(target) Release/obj.target/extract/src/extract.o info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] aarch64-linux-gnu-g++: error: unrecognized command-line option '-m64' make[1]: *** [extract.target.mk:125: Release/obj.target/extract/src/extract.o] Error 1 make[1]: Leaving directory '/builddir/chronograf-1.10.1/node_modules/msgpackr-extract/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/builddir/chronograf-1.10.1/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) gyp ERR! System Linux 6.2.12_1 gyp ERR! command \"/usr/bin/node\" \"/builddir/chronograf-1.10.1/node_modules/.bin/node-gyp\" \"rebuild\" gyp ERR! cwd /builddir/chronograf-1.10.1/node_modules/msgpackr-extract gyp ERR! node -v v16.19.0 gyp ERR! node-gyp -v v8.4.1 gyp ERR! not ok" info This module is OPTIONAL, you can safely ignore this error error /builddir/chronograf-1.10.1/node_modules/lmdb: Command failed. Exit code: 1 Command: node-gyp-build-optional-packages Arguments: Directory: /builddir/chronograf-1.10.1/node_modules/lmdb Output: gyp info it worked if it ends with ok gyp info using node-gyp@8.4.1 gyp info using node@16.19.0 | linux | x64 gyp info find Python using Python version 3.11.3 found at "/usr/bin/python3" gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/builddir/chronograf-1.10.1/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/builddir/chronograf-1.10.1/node_modules/lmdb/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/builddir/chronograf-1.10.1/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/tmp/.cache/node-gyp/16.19.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/tmp/.cache/node-gyp/16.19.0', gyp info spawn args '-Dnode_gyp_dir=/builddir/chronograf-1.10.1/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/tmp/.cache/node-gyp/16.19.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/builddir/chronograf-1.10.1/node_modules/lmdb', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make[1]: Entering directory '/builddir/chronograf-1.10.1/node_modules/lmdb/build' CXX(target) Release/obj.target/lmdb/src/lmdb-js.o aarch64-linux-gnu-g++: error: unrecognized command-line option '-m64' make[1]: *** [lmdb.target.mk:153: Release/obj.target/lmdb/src/lmdb-js.o] Error 1 make[1]: Leaving directory '/builddir/chronograf-1.10.1/node_modules/lmdb/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/builddir/chronograf-1.10.1/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) gyp ERR! System Linux 6.2.12_1 gyp ERR! command "/usr/bin/node" "/builddir/chronograf-1.10.1/node_modules/.bin/node-gyp" "rebuild" gyp ERR! cwd /builddir/chronograf-1.10.1/node_modules/lmdb gyp ERR! node -v v16.19.0 gyp ERR! node-gyp -v v8.4.1 gyp ERR! not ok info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. make: *** [Makefile:75: .jsdep] Error 1
as part of upadting in Void Linux https://github.com/void-linux/void-packages/pull/42644 the command
CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make .jsdep assets
fails when cross-building e.g. from x86_64-musl to aarch64.Do you know where this should be reported? I tried at node-gyp, but it is mostly ignored https://github.com/nodejs/node-gyp/issues/2817
The build log: