Open thearperson opened 1 year ago
Thank you Steve for the reporting the issue. This branch didn't tried by us on linux before. From error above, it seems pthreads lib doesn't support well on your OS. Maybe you would like to check pthreads lib or install it if there is not.
Thanks for the prompt response!
yeah, there is something going on the pthread, but since this is building towards emscripten
I thought the pthread comes with emsdk? see: https://emscripten.org/docs/porting/pthreads.html
Also note that pthread is already widely used in other places in the code base.
The problem, instead, seems to be related to tint
and abseil
lib:
This warning right before the pthread error seems to be suspicious. I'm wondering whether absl is configured for emsdk in this case.
44.67 CMake Warning at third_party/abseil-cpp/absl/copts/AbseilConfigureCopts.cmake:70 (message):
44.67 Value of CMAKE_SYSTEM_PROCESSOR (x86) is unknown and cannot be used to set
44.67 ABSL_RANDOM_RANDEN_COPTS
44.67 Call Stack (most recent call first):
44.67 third_party/abseil-cpp/CMake/AbseilHelpers.cmake:18 (include)
44.67 third_party/abseil-cpp/CMakeLists.txt:81 (include)
Yes, you are right Steve, it is emscripten pthreads. Glad to know you got document for pthreads. From above error you mentioned, it seems CMAKE_SYSTEM_PROCESSOR is x86, are you using x86 arch device? Not sure what is wrong.
Looks like using newer version of emsdk solves the problem:
diff --git a/Dockerfile b/Dockerfile
index b0d7b230e..d10f618d8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
ARG CMAKE_VERSION=3.20.3
-ARG EMSCRIPTEN_VERSION=2.0.24
+ARG EMSCRIPTEN_VERSION=3.1.31
RUN apt-get -y update && apt-get install -y\
python-setuptools \
It is glad to know you get problem resolved, Steve, yes, upper version is better. The 3.1.33 is recommended to use from our readme here.
Description of Issue
Check out: https://github.com/autodesk-forks/USD/tree/adsk/feature/webgpu
Steps to Reproduce
Run docker command to build
Got errors:
System Information (OS, Hardware)
Ubuntu 22.04
Package Versions
Build Flags