PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6k stars 1.18k forks source link

"cpu MHz" not found when running a Linux container on an ARM MAC #2747

Open terracotta75 opened 11 months ago

terracotta75 commented 11 months ago

https://github.com/PixarAnimationStudios/OpenUSD/blob/10b62439e9242a55101cf8b200f2c7e02420e1b0/pxr/base/arch/timing.cpp#L150

We wanted to bring the following issue to your attention. We are building a Linux container with USD, and testing it on a MAC ARM host, and we are getting the following error:

ArchError: Could not find 'cpu MHz' in /proc/cpuinfo
  Function: Arch_ComputeNanosecondsPerTick
      File: /opt/jenkins/workspace/some_release/build-Release/_deps/usd-src/pxr/base/arch/timing.cpp
      Line: 149
qemu: uncaught target signal 6 (Aborted) - core dumped

According to a quick search, other people have run into this. The "CPU MHz: " line is definitely missing from /proc/cpuinfo in the container in this case. Since that file can not be edited, we don't have a workaround right now.

Thank you!

jesschimein commented 11 months ago

Filed as internal issue #USD-8856

ysinh commented 8 months ago

Any updates?