Getting these error, does this mean that the dawn version is mismatched?
> npm run all --dawnversion=0.0.1
> webgpu@0.1.16 all /home/avatar/tmp/webgpu
> npm run generate && npm run build
> webgpu@0.1.16 generate /home/avatar/tmp/webgpu
> node --experimental-modules --experimental-json-modules ./generator/index.mjs
(node:2762) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Code minification is disabled!
Generating bindings for 0.0.1...
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'callback'
Warning: Unexpected member type 'buffer map callback'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'void *'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'void const *'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'callback'
Warning: Unexpected member type 'device lost callback'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Unexpected node category 'native'
Warning: Unexpected member type 'size_t'
Warning: Expected 'length' property to be set for 'char' type
Warning: Cannot handle fixed String length in 'GPUAdapterProperties'.'name'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromMetalLayer'.'layer'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromWindowsHWND'.'hinstance'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromWindowsHWND'.'hwnd'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromXlib'.'display'
Warning: Cannot handle fixed String length in 'GPUAdapterProperties'.'name'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromMetalLayer'.'layer'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromWindowsHWND'.'hinstance'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromWindowsHWND'.'hwnd'
Warning: Unexpected member type 'void*' in 'GPUSurfaceDescriptorFromXlib'.'display'
Successfully generated bindings!
> webgpu@0.1.16 build /home/avatar/tmp/webgpu
> node ./build.js
Compiling bindings for version 0.0.1...
Platform: linux | x64
Node: 14.9.0
V8: 8.4.371.19-node.13
Copying files..
Done!
Compiling bindings..
Copying /home/avatar/tmp/dawn//out/Shared/libshaderc_spvc.so -> ./generated/0.0.1/linux/build/Release//libshaderc_spvc.so
Failed to copy /home/avatar/tmp/dawn//out/Shared/libshaderc_spvc.so -> ./generated/0.0.1/linux/build/Release//libshaderc_spvc.so
/home/avatar/tmp/webgpu/build.js:130
throw error;
^
[
[Error: ENOENT: no such file or directory, lstat '/home/avatar/tmp/dawn/out/Shared/libshaderc_spvc.so'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/home/avatar/tmp/dawn/out/Shared/libshaderc_spvc.so'
}
]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webgpu@0.1.16 build: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webgpu@0.1.16 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/avatar/.npm/_logs/2020-09-18T18_35_52_502Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webgpu@0.1.16 all: `npm run generate && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webgpu@0.1.16 all script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/avatar/.npm/_logs/2020-09-18T18_35_52_610Z-debug.log
exit 1
avatar@linux-zc13:~/tmp/webgpu> make: Entering directory '/home/avatar/tmp/webgpu/generated/0.0.1/linux/build'
CXX(target) Release/obj.target/addon-linux/src/index.o
In file included from ../src/index.cpp:30:
../../../../src/GPURayTracingAccelerationContainer.h:21:5: error: unknown type name 'WGPURayTracingAccelerationContainer'; did you mean 'GPURayTracingAccelerationContainer'?
WGPURayTracingAccelerationContainer instance;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GPURayTracingAccelerationContainer
../../../../src/GPURayTracingAccelerationContainer.h:6:7: note: 'GPURayTracingAccelerationContainer' declared here
class GPURayTracingAccelerationContainer : public Napi::ObjectWrap<GPURayTracingAccelerationContainer> {
^
../../../../src/GPURayTracingAccelerationContainer.h:21:41: error: field has incomplete type 'GPURayTracingAccelerationContainer'
WGPURayTracingAccelerationContainer instance;
^
../../../../src/GPURayTracingAccelerationContainer.h:6:7: note: definition of 'GPURayTracingAccelerationContainer' is not complete until the closing '}'
class GPURayTracingAccelerationContainer : public Napi::ObjectWrap<GPURayTracingAccelerationContainer> {
^
In file included from ../src/index.cpp:31:
../../../../src/GPURayTracingShaderBindingTable.h:20:5: error: unknown type name 'WGPURayTracingShaderBindingTable'; did you mean 'GPURayTracingShaderBindingTable'?
WGPURayTracingShaderBindingTable instance;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GPURayTracingShaderBindingTable
../../../../src/GPURayTracingShaderBindingTable.h:6:7: note: 'GPURayTracingShaderBindingTable' declared here
class GPURayTracingShaderBindingTable : public Napi::ObjectWrap<GPURayTracingShaderBindingTable> {
^
../../../../src/GPURayTracingShaderBindingTable.h:20:38: error: field has incomplete type 'GPURayTracingShaderBindingTable'
WGPURayTracingShaderBindingTable instance;
^
../../../../src/GPURayTracingShaderBindingTable.h:6:7: note: definition of 'GPURayTracingShaderBindingTable' is not complete until the closing '}'
class GPURayTracingShaderBindingTable : public Napi::ObjectWrap<GPURayTracingShaderBindingTable> {
^
In file included from ../src/index.cpp:32:
../../../../src/GPURayTracingPipeline.h:18:5: error: unknown type name 'WGPURayTracingPipeline'; did you mean 'GPURayTracingPipeline'?
WGPURayTracingPipeline instance;
^~~~~~~~~~~~~~~~~~~~~~
GPURayTracingPipeline
../../../../src/GPURayTracingPipeline.h:6:7: note: 'GPURayTracingPipeline' declared here
class GPURayTracingPipeline : public Napi::ObjectWrap<GPURayTracingPipeline> {
^
../../../../src/GPURayTracingPipeline.h:18:28: error: field has incomplete type 'GPURayTracingPipeline'
WGPURayTracingPipeline instance;
^
../../../../src/GPURayTracingPipeline.h:6:7: note: definition of 'GPURayTracingPipeline' is not complete until the closing '}'
class GPURayTracingPipeline : public Napi::ObjectWrap<GPURayTracingPipeline> {
^
In file included from ../src/index.cpp:33:
../../../../src/GPURayTracingPassEncoder.h:32:5: error: unknown type name 'WGPURayTracingPassEncoder'; did you mean 'GPURayTracingPassEncoder'?
WGPURayTracingPassEncoder instance;
^~~~~~~~~~~~~~~~~~~~~~~~~
GPURayTracingPassEncoder
../../../../src/GPURayTracingPassEncoder.h:6:7: note: 'GPURayTracingPassEncoder' declared here
class GPURayTracingPassEncoder : public Napi::ObjectWrap<GPURayTracingPassEncoder> {
^
../../../../src/GPURayTracingPassEncoder.h:32:31: error: field has incomplete type 'GPURayTracingPassEncoder'
WGPURayTracingPassEncoder instance;
^
../../../../src/GPURayTracingPassEncoder.h:6:7: note: definition of 'GPURayTracingPassEncoder' is not complete until the closing '}'
class GPURayTracingPassEncoder : public Napi::ObjectWrap<GPURayTracingPassEncoder> {
^
8 errors generated.
make: *** [addon-linux.target.mk:191: Release/obj.target/addon-linux/src/index.o] Error 1
make: Leaving directory '/home/avatar/tmp/webgpu/generated/0.0.1/linux/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/avatar/.nvm/versions/node/v14.9.0/lib/node_modules/npm/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 4.12.14-lp151.28.67-default
gyp ERR! command "/home/avatar/.nvm/versions/node/v14.9.0/bin/node" "/home/avatar/.nvm/versions/node/v14.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /home/avatar/tmp/webgpu/generated/0.0.1/linux
gyp ERR! node -v v14.9.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Getting these error, does this mean that the dawn version is mismatched?