Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on OS400 #124

Open
mikemicmike opened this issue Dec 12, 2022 · 1 comment
Open

Compiling on OS400 #124

mikemicmike opened this issue Dec 12, 2022 · 1 comment

Comments

@mikemicmike
Copy link

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/watcher@2.0.4 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/watcher@2.0.4 install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @parcel/watcher@2.0.4 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

@devongovett
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants