FP16 icon indicating copy to clipboard operation
FP16 copied to clipboard

Build error: 'uint32_t' does not name a type

Open adamjstewart opened this issue 3 years ago • 1 comments

I'm encountering the following build error on Cray CNL5 with GCC 5.3.0:

/opt/gcc/5.3.0/snos/include/g++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from /scratch/sciteam/stewart1/spack-stage-fp16-master-a4ipfk3ac7yo6kgg6mkx2yireigufok4/spack-src/test/tables.cc:3:0:
/scratch/sciteam/stewart1/spack-stage-fp16-master-a4ipfk3ac7yo6kgg6mkx2yireigufok4/spack-src/test/tables.h:6:15: error: 'uint32_t' does not name a type
  extern const uint32_t normalizedValues[1024];
               ^
...
/scratch/sciteam/stewart1/spack-stage-fp16-master-a4ipfk3ac7yo6kgg6mkx2yireigufok4/spack-src/include/fp16/fp16.h:45:47: error: 'UINT32_C' was not declared in this scope
...

The build log is attached:

According to https://stackoverflow.com/questions/11069108/uint32-t-does-not-name-a-type it seems like a missing include statement.

adamjstewart avatar Jul 07 '21 02:07 adamjstewart

This is related to https://github.com/pytorch/pytorch/issues/23482. Hopefully solving one will solve the other too.

adamjstewart avatar Jul 07 '21 02:07 adamjstewart

This is for an ancient version of GCC on a system I no longer have access to. I think it's safe to close this issue.

adamjstewart avatar Oct 28 '23 21:10 adamjstewart