watcher icon indicating copy to clipboard operation
watcher copied to clipboard

Compiling on OS400

Open mikemicmike opened this issue 3 years ago • 1 comments

Hi,

I'm trying to install this onto a IBM I Power (AS400), When trying to run an npm install with a project that includes watcher, the build process fails completely.

I get the following error code

@parcel/[email protected] install /Portal/MPILO0/oceanex-js-final/node_modules/@parcel/watcher node-gyp-build

gmake: Entering directory '/Portal/MPILO0/oceanex-js-final/node_modules/@parcel/watcher/build' CC(target) Release/obj.target/nothing/../../node-addon-api/nothing.o AR(target) Release/obj.target/../../node-addon-api/nothing.a COPY Release/nothing.a CXX(target) Release/obj.target/watcher/src/binding.o CXX(target) Release/obj.target/watcher/src/Watcher.o CXX(target) Release/obj.target/watcher/src/Backend.o CXX(target) Release/obj.target/watcher/src/DirTree.o SOLINK_MODULE(target) Release/obj.target/watcher.node ld: 0711-224 WARNING: Duplicate symbol: typeinfo for std::exception ld: 0711-224 WARNING: Duplicate symbol: .std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() ld: 0711-224 WARNING: Duplicate symbol: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() ld: 0711-224 WARNING: Duplicate symbol: typeinfo name for std::exception ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. ld: 0711-317 ERROR: Undefined symbol: vtable for BruteForceBackend collect2: error: ld returned 8 exit status gmake: *** [watcher.target.mk:147: Release/obj.target/watcher.node] Error 1 gmake: Leaving directory '/Portal/MPILO0/oceanex-js-final/node_modules/@parcel/watcher/build'

then this towards the end npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @parcel/[email protected] install: node-gyp-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @parcel/[email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Is there any workaround for me to be able to get this to install on an AS400 OS (this is a unix like OS that does support C/C++)

Thanks

mikemicmike avatar Dec 12 '22 13:12 mikemicmike

I am not familiar with that system, but perhaps one of these conditions is not matching and therefore none of the platform specific code is being included? You could try modifying this and see if it works. https://github.com/parcel-bundler/watcher/blob/master/binding.gyp#L11

devongovett avatar Jan 05 '23 04:01 devongovett