-
-
Notifications
You must be signed in to change notification settings - Fork 837
Refactor @stdlib/blas/base/dcopy
#792
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
Conversation
I am facing some error while pushing |
I am receiving the following error while generating native addons, using 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 '/home/pranavchiku/stdlib/lib/node_modules/@stdlib/blas/base/dcopy/build'
RULE binding_gyp_addon_target_compile_fortran_linux_0 Release/obj.target/addon/geni/dcopy.o
CC(target) Release/obj.target/addon/src/addon.o
../src/addon.c:29:1: error: unknown type name ‘namespace’
29 | namespace stdlib_blas_base_dcopy {
| ^~~~~~~~~
../src/addon.c:29:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
29 | namespace stdlib_blas_base_dcopy {
| ^
make[1]: *** [addon.target.mk:171: Release/obj.target/addon/src/addon.o] Error 1
make[1]: Leaving directory '/home/pranavchiku/stdlib/lib/node_modules/@stdlib/blas/base/dcopy/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pranavchiku/stdlib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.15.0-56-generic
gyp ERR! command "/usr/bin/node" "/home/pranavchiku/stdlib/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pranavchiku/stdlib/lib/node_modules/@stdlib/blas/base/dcopy
gyp ERR! node -v v12.22.9
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok
Error: failed to build add-on: /home/pranavchiku/stdlib/lib/node_modules/@stdlib/blas/base/dcopy |
I am not sure why it is occurring, @kgryte if you can have a look? |
You haven't refactored |
Ohh yes, sorry for that. On it. |
When I try to commit changes of make[1]: Entering directory '/home/pranavchiku/stdlib'
Linting file: lib/node_modules/@stdlib/blas/base/dcopy/docs/types/index.d.ts
Error: Cannot find module '/home/pranavchiku/.dts/typescript-installs/4.2/node_modules/typescript'
Require stack:
- /home/pranavchiku/stdlib/node_modules/dtslint/bin/lint.js
- /home/pranavchiku/stdlib/node_modules/dtslint/bin/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at testDependencies (/home/pranavchiku/stdlib/node_modules/dtslint/bin/lint.js:64:16)
at Object.<anonymous> (/home/pranavchiku/stdlib/node_modules/dtslint/bin/lint.js:26:28)
at Generator.next (<anonymous>)
at /home/pranavchiku/stdlib/node_modules/dtslint/bin/lint.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/pranavchiku/stdlib/node_modules/dtslint/bin/lint.js:4:12)
make[1]: *** [/home/pranavchiku/stdlib/tools/make/lib/lint/typescript/dtslint.mk:110: dtslint-files] Error 1
make[1]: Leaving directory '/home/pranavchiku/stdlib'
make: *** [/home/pranavchiku/stdlib/tools/make/lib/lint/typescript/Makefile:178: lint-typescript-declarations-files] Error 2
TypeScript declaration file lint errors. |
Try deleting your node modules folder and doing a fresh |
Nope, I still receive same error. |
Are you able to confirm that the |
It does not exist. |
No. |
I guess I don't have $ dtslint --version
Command 'dtslint' not found, did you mean:
command 'dtblint' from deb dt-utils (2021.03.0+ds-2)
Try: sudo apt install <deb name> |
No, it would be in your |
I am not sure about version, Edit: |
Okay, that is the same version as me, and mine currently works, so not sure why your installation is throwing the error above. |
What version of Node.js are you running? |
v12.22.9 |
Try upgrading to at least |
You can also try to lint the files directly via $ make lint-typescript-declarations TYPESCRIPT_DECLARATIONS_FILTER=.*/blas/base/dcopy/.* |
I did this, now trying |
Still facing same issue. I guess |
A bit odd that you wouldn't have encountered this error before. |
Yeah, I didn't encounter updating |
Apart from |
Maybe you have a permissions issue. You can try manually creating a |
You can also try doing some It's possible that errors are being swallowed regarding permissions, etc. |
I have the folder installed, it does not have |
In short, I don't have an easy answer atm, apart from doing a bit of digging and debugging on your end. |
No worries, I will try to get it done asap. |
My initial sense is to start putting console log calls in the code actually responsible for the installations. Mucking about with the |
All tests and benchmarks cleared. This PR can have a review. Apologies for taking so long to complete this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks, @Pranavchiku!
Checklist
I will keep on populating the checklist as and when necessary.
@kgryte