> > RISC-V glibc will require corresponding muilti-lib has built there, > > otherwise will report something like: > > > > /usr/include/gnu/stubs.h:11:11: fatal error: gnu/stubs-ilp32d.h: No > > such file or directory > > > > But actually we only require those fixed length types to compile and > > scan assembly or dump, > > So we don't really have those multilib built, that's the reason we > > workaround this way. > > > > This way could work even if the multilib build is disabled, and seems > > ARM has same issue around that and just disable those tests: > > Then just mimic that or avoid using stdint.h and instead use things like > __INT32_TYPE__?
Hmmm, then that seems like we are inline those types definition from stdint-gcc.h? I mean what stdint-gcc.h did is just same as that: #ifdef __INT8_TYPE__ typedef __INT8_TYPE__ int8_t; #endif ... #ifdef __UINT64_TYPE__ typedef __UINT64_TYPE__ uint64_t; #endif