importC Error: unsigned __int128 not supported

Dakota dakota at gmail.com
Sat Aug 3 05:03:23 UTC 2024


Is this a bugs? or I can add some flags to fix it:

```sh
/usr/lib/gcc/x86_64-linux-gnu/12/include/bmi2intrin.h(86): Error: 
unsigned __int128 not supported
/usr/lib/gcc/x86_64-linux-gnu/12/include/bmi2intrin.h(86): Error: 
unsigned __int128 not supported
/usr/lib/gcc/x86_64-linux-gnu/12/include/pconfigintrin.h(62): 
Error: found `else` without a corresponding `if` statement
/usr/lib/gcc/x86_64-linux-gnu/12/include/pconfigintrin.h(70): 
Error: no type for declarator before `return`
/usr/lib/gcc/x86_64-linux-gnu/12/include/pconfigintrin.h(71): 
Error: no type for declarator before `}`
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(141): Error: 
found `else` without a corresponding `if` statement
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(174): Error: 
no type for declarator before `return`
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(175): Error: 
no type for declarator before `}`
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(196): Error: 
found `else` without a corresponding `if` statement
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(217): Error: 
no type for declarator before `return`
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(218): Error: 
no type for declarator before `}`
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(233): Error: 
found `else` without a corresponding `if` statement
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(245): Error: 
no type for declarator before `return`
/usr/lib/gcc/x86_64-linux-gnu/12/include/sgxintrin.h(246): Error: 
no type for declarator before `}`
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
```

from macOS:

```sh
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/bmi2intrin.h(62): Error: unsigned __int128 not supported
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/bmi2intrin.h(62): Error: unsigned __int128 not supported
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
Error: size of type `_Float16` is not known
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512fp16intrin.h(103): Error: illegal combination of type specifiers
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512fp16intrin.h(3276): Error: found `16` when expecting `)`
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512fp16intrin.h(3276): Error: found `)` when expecting `;` following `return` statement
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512fp16intrin.h(3281): Error: found `16` when expecting `)`
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512fp16intrin.h(3281): Error: found `)` when expecting `;` following `return` statement
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512vlfp16intrin.h(57): Error: illegal combination of type specifiers
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512vlfp16intrin.h(62): Error: illegal combination of type specifiers
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512vlfp16intrin.h(2014): Error: found `16` when expecting `)`
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/avx512vlfp16intrin.h(2014): Error: found `)` when expecting `;` following `return` statement
```

DMD64 D Compiler v2.110.0-beta.1




More information about the Digitalmars-d-learn mailing list