Skip to content

Instantly share code, notes, and snippets.

@dcerisano
Created January 14, 2020 09:50
Show Gist options
  • Save dcerisano/ebc3639384d763b2e8faa83c9b1a9f61 to your computer and use it in GitHub Desktop.
Save dcerisano/ebc3639384d763b2e8faa83c9b1a9f61 to your computer and use it in GitHub Desktop.
dcerisano@kronos:~/git/webgpu$ npm run all --dawnversion=0.0.3
> webgpu@0.0.8 all /home/dcerisano/git/webgpu
> npm run generate & npm run build
> webgpu@0.0.8 build /home/dcerisano/git/webgpu
> node ./build.js
> webgpu@0.0.8 generate /home/dcerisano/git/webgpu
> node --experimental-modules ./generator/index.mjs
(node:31439) ExperimentalWarning: The ESM module loader is experimental.
Compiling bindings for version 0.0.3...
Platform: linux | x64
Node: 8.10.0
V8: 6.2.414.50
Copying files..
Done!
Compiling bindings..
Copying ./src/ -> ./generated/0.0.3/linux/build/Release//../../src/
Code minification is disabled!
Memory layouts are not inlined yet.
Generating bindings for 0.0.3...
Warning: Unexpected node category 'callback'
Warning: Unexpected member type 'device lost callback'
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 'GPUCreateBufferMappedResult'.'data'
Warning: Cannot handle fixed String length in 'GPUAdapterProperties'.'name'
Warning: Unexpected member type 'void*' in 'GPUCreateBufferMappedResult'.'data'
Successfully generated bindings!
make: Entering directory '/home/dcerisano/git/webgpu/generated/0.0.3/linux/build'
CXX(target) Release/obj.target/addon-linux/src/*.o
In file included from ../src/GPURenderBundleEncoder.cpp:1:
In file included from ../src/GPURenderBundleEncoder.h:4:
In file included from ../src/Base.h:6:
/home/dcerisano/git/dawn/src/include/dawn/dawn_proc.h:18:10: fatal error: 'dawn/dawn_proc_table.h' file not found
#include "dawn/dawn_proc_table.h"
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
addon-linux.target.mk:145: recipe for target 'Release/obj.target/addon-linux/src/*.o' failed
make: *** [Release/obj.target/addon-linux/src/*.o] Error 1
make: Leaving directory '/home/dcerisano/git/webgpu/generated/0.0.3/linux/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-58-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /home/dcerisano/git/webgpu/generated/0.0.3/linux
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed to compile bindings for 0.0.3!dcerisano@kronos:~/git/webgpu$ locate dawn_proc_table.h
/home/dcerisano/git/dawn/generator/templates/dawn_proc_table.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment