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

Building UI fails #42

Closed
cutephoton opened this issue Jun 26, 2020 · 1 comment
Closed

Building UI fails #42

cutephoton opened this issue Jun 26, 2020 · 1 comment

Comments

@cutephoton
Copy link

The build for the UI does not complete successfully on Fedora 32. (Also F30...) Tried different branches 4.2. Tried master. Same result. I followed the instruction in the ui/README, and even tried to follow along with the CI build server. (Will be testing ubuntu 18 as well...)

(This was the 2nd run... lost the error on the terminal the first time, but it is the same.)

[1/47] link wasm/trace_processor.js
FAILED: wasm/trace_processor.js 
/home/fosterb/projects/webapps/perfetto/buildtools/emsdk/emscripten/em++ --em-config "EMSCRIPTEN_ROOT='/home/fosterb/projects/webapps/perfetto/buildtools/emsdk/emscripten';LLVM_ROOT='/home/fosterb/projects/webapps/perfetto/buildtools/emsdk/llvm';BINARYEN_ROOT='/home/fosterb/projects/webapps/perfetto/buildtools/emsdk/llvm/binaryen';EMSCRIPTEN_NATIVE_OPTIMIZER='/home/fosterb/projects/webapps/perfetto/buildtools/emsdk/llvm/optimizer';NODE_JS='/home/fosterb/projects/webapps/perfetto/buildtools/nodejs/bin/node';COMPILER_ENGINE=NODE_JS;JS_ENGINES=[NODE_JS];" -fuse-ld=lld -s WASM=1 -s DISABLE_EXCEPTION_CATCHING=1 -s NO_DYNAMIC_EXECUTION=1 -s TOTAL_MEMORY=33554432 -s ALLOW_MEMORY_GROWTH=1 -s RESERVED_FUNCTION_POINTERS=32 -s BINARYEN_METHOD=\'native-wasm\' -s BINARYEN_TRAP_MODE=\'clamp\' -s EXPORT_FUNCTION_TABLES=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=\[\'ccall\',\ \'cwrap\',\ \'addFunction\',\ \'FS\'\] -s MEMFS_APPEND_TO_TYPED_ARRAYS=1 -s MODULARIZE=1 -s EXPORT_NAME=trace_processor_wasm -O3 -Wl,--gc-sections -Wl,--icf=all -Wl,-O1 -pie -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=.  wasm/obj/src/trace_processor/dynamic/lib.describe_slice_generator.o wasm/obj/src/trace_processor/dynamic/lib.experimental_counter_dur_generator.o wasm/obj/src/trace_processor/dynamic/lib.experimental_flamegraph_generator.o ..............  -lpthread -lrt -o wasm/trace_processor.js
/home/fosterb/projects/webapps/perfetto/buildtools/emsdk/llvm/llvm-ar: /lib64/libtinfo.so.5: no version information available (required by /home/fosterb/projects/webapps/perfetto/buildtools/emsdk/llvm/llvm-ar)
error: asm2wasm seeing an invalid argument type at index 5 (this will not validate) in call from $__ZN8perfetto4base11PagedMemory8AllocateEji to $___mmap (this is likely due to undefined behavior in C, like defining a function one way and calling it in another, which is important to fix)
error: asm2wasm seeing an invalid argument type at index 1 (this will not validate) in call from $_unixRead to $_lseek (this is likely due to undefined behavior in C, like defining a function one way and calling it in another, which is important to fix)
error: asm2wasm seeing an invalid argument type at index 1 (this will not validate) in call from $_unixWrite to $_lseek (this is likely due to undefined behavior in C, like defining a function one way and calling it in another, which is important to fix)
error: asm2wasm seeing an invalid argument type at index 1 (this will not validate) in call from $_unixFileControl to $_lseek (this is likely due to undefined behavior in C, like defining a function one way and calling it in another, which is important to fix)
error: asm2wasm seeing an invalid argument type at index 1 (this will not validate) in call from $_unixShmMap to $_lseek (this is likely due to undefined behavior in C, like defining a function one way and calling it in another, which is important to fix)
[wasm-validator error in function $__ZN8perfetto4base11PagedMemory8AllocateEji] 1 != 2: call param types must match, on 
[i32] (call $___mmap
 [i32] (i32.const 0)
 [i32] (i32.sub
  [i32] (get_local $1)
  [i32] (i32.const -8192)
 )
 [i32] (i32.const 3)
 [i32] (i32.const 34)
 [i32] (i32.const -1)
 [i32] (i32.const 0)
)
(on argument 5)
[wasm-validator error in function $_unixRead] 1 != 2: call param types must match, on 
[i64] (call $_lseek
 [i32] (i32.load
  [i32] (get_local $9)
 )
 [i32] (get_local $7)
 [i32] (i32.const 0)
)
(on argument 1)
[wasm-validator error in function $_unixRead] 2 != 1: binary child types must be equal, on 
[i32] (i32.lt_s
 [i64] (call $_lseek
  [i32] (i32.load
   [i32] (get_local $9)
  )
  [i32] (get_local $7)
  [i32] (i32.const 0)
 )
 [i32] (i32.const 0)
)
[wasm-validator error in function $_unixRead] 2 != 1: i32 op, on 
[i32] (i32.lt_s
 [i64] (call $_lseek
  [i32] (i32.load
   [i32] (get_local $9)
  )
  [i32] (get_local $7)
  [i32] (i32.const 0)
 )
 [i32] (i32.const 0)
)```

... etc ...
@cutephoton
Copy link
Author

Deleting ~/.emscripten_cache folder solved this issue.

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

1 participant