Temporary header file '/tmp/Xh1uE99gx9/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/clAmdBlas.h" #include "/usr/include/clAmdBlas.version.h" #include "/usr/include/clBLAS-complex.h" #include "/usr/include/clBLAS.h" #include "/usr/include/clBLAS.version.h" // add classes _cl_buffer_region* tmp_add_class_0; _cl_image_desc* tmp_add_class_1; _cl_image_format* tmp_add_class_2; _cl_name_version* tmp_add_class_3; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/Xh1uE99gx9/dump1.h" In file included from /usr/include/CL/cl.h:20, from /usr/include/clBLAS.h:35, from /usr/include/clAmdBlas.h:33, from /tmp/Xh1uE99gx9/dump1.h:12: /usr/include/CL/cl_version.h:22:104: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’ 22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") | ^ In file included from /tmp/Xh1uE99gx9/dump1.h:14: /usr/include/clBLAS-complex.h:29:1: error: redefinition of ‘FloatComplex floatComplex(float, float)’ 29 | floatComplex(float real, float imag) | ^~~~~~~~~~~~ In file included from /usr/include/clBLAS.h:38: /usr/include/clBLAS-complex.h:29:1: note: ‘FloatComplex floatComplex(float, float)’ previously defined here 29 | floatComplex(float real, float imag) | ^~~~~~~~~~~~ /usr/include/clBLAS-complex.h:38:1: error: redefinition of ‘DoubleComplex doubleComplex(double, double)’ 38 | doubleComplex(double real, double imag) | ^~~~~~~~~~~~~ /usr/include/clBLAS-complex.h:38:1: note: ‘DoubleComplex doubleComplex(double, double)’ previously defined here 38 | doubleComplex(double real, double imag) | ^~~~~~~~~~~~~