October 13, 2023
https://issues.dlang.org/show_bug.cgi?id=24187

          Issue ID: 24187
           Summary: dmd ImportC: cmathcalls.h(55): Error: illegal type
                    combination
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: mingwu@gmail.com

$ cat /etc/issue
Ubuntu 22.04 LTS \n \l


$ dmd --version
DMD64 D Compiler v2.105.0

I try to build s7 with ImportC from here:

https://ccrma.stanford.edu/software/s7/s7.tar.gz


$ dmd s7.c
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(55): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(55): Error: missing comma or
semicolon after declaration of `_Float32`, found `cacosf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(55): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(55): Error: missing comma or
semicolon after declaration of `_Float32`, found `__cacosf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(57): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(57): Error: missing comma or
semicolon after declaration of `_Float32`, found `casinf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(57): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(57): Error: missing comma or
semicolon after declaration of `_Float32`, found `__casinf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(59): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(59): Error: missing comma or
semicolon after declaration of `_Float32`, found `catanf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(59): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(59): Error: missing comma or
semicolon after declaration of `_Float32`, found `__catanf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(62): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(62): Error: missing comma or
semicolon after declaration of `_Float32`, found `ccosf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(62): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(62): Error: missing comma or
semicolon after declaration of `_Float32`, found `__ccosf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(64): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(64): Error: missing comma or
semicolon after declaration of `_Float32`, found `csinf32` instead
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(64): Error: illegal type
combination
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h(64): Error: missing comma or
semicolon after declaration of `_Float32`, found `__csinf32` instead

--