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

error: 'string' in namespace 'std' does not name a type #25598

Open
adamjstewart opened this issue Dec 19, 2024 · 1 comment
Open

error: 'string' in namespace 'std' does not name a type #25598

adamjstewart opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@adamjstewart
Copy link
Contributor

Description

I'm able to build jaxlib on x86_64, but when I try on aarch64, I see the following build error:

In file included from external/compute_library/arm_compute/core/utils/logging/FilePrinter.h:27,
                 from external/compute_library/src/core/utils/logging/FilePrinter.cpp:24:
external/compute_library/arm_compute/core/utils/logging/IPrinter.h:56:34: error: 'string' in namespace 'std' does not name a type
   56 |     inline void print(const std::string &msg)
      |                                  ^~~~~~
external/compute_library/arm_compute/core/utils/logging/IPrinter.h:28:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
   27 | #include "support/Mutex.h"
  +++ |+#include <string>
   28 | 

The fix is obvious, but I don't know where compute_library actually lives or how to patch it during the jaxlib build.

System info (python version, jaxlib version, accelerator, etc.)

  • Python: 3.13.0
  • Jaxlib: 0.4.38
  • GCC: 13.2.0

Build log

@adamjstewart adamjstewart added the bug Something isn't working label Dec 19, 2024
@adamjstewart
Copy link
Contributor Author

Looks like compute_library is added via https://github.com/openxla/xla/tree/main/third_party/compute_library, but I still don't know where the source code is or how to patch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant