Skip to content

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

@adamjstewart

Description

@adamjstewart

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions