cdefs.h build failed

Asked by Tomáš Kamenický

I have project successfully builded with arm-none-eabi version 4.8.4 20140725 (release), after upgrading to new compiler version: 6.3.1 20170215 (release) build fails on internal header file. Here is the console output:

arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mthumb-interwork -mlittle-endian -mno-unaligned-access -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3 -gdwarf-4 -DUSE_STDPERIPH_DRIVER -DHSE_CLOCK -DSTM32F030xC "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_GPU_Trm_Kernel\\Utilities\\Common_def" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Utilities\\system" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Libraries\\newlib\\libc\\include" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Utilities\\drivers" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Libraries\\STM32F0xx_StdPeriph_Driver\\inc" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Libraries\\CMSIS\\Include" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Libraries\\CMSIS\\Device\\ST\\STM32F0xx\\Include" "-IC:\\Users\\tomas.kamenicky\\workspace-luna\\GPFW_F030_Kernel\\Modules" -std=gnu11 -Wno-packed-bitfield-compat -v -c -o "Utilities\\system\\diag\\semihosting.o" "..\\Utilities\\system\\diag\\semihosting.c"
Using built-in specs.
COLLECT_GCC=C:\eclipse-luna\Compiler_6_2017q1\bin\arm-none-eabi-gcc.exe
Target: arm-none-eabi
Configured with: /tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw --libexecdir=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/lib --infodir=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/arm-none-eabi --with-libiconv-prefix=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/build-mingw/host-libs/usr --with-gmp=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/build-mingw/host-libs/usr --with-mpfr=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/build-mingw/host-libs/usr --with-mpc=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/build-mingw/host-libs/usr --with-isl=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/build-mingw/host-libs/usr --with-libelf=/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors 6-2017-q1-update' --with-multilib-list=rmprofile
Thread model: single
gcc version 6.3.1 20170215 (release) [ARM/embedded-6-branch revision 245512] (GNU Tools for ARM Embedded Processors 6-2017-q1-update)
COLLECT_GCC_OPTIONS='-mcpu=cortex-m0' '-mthumb' '-mthumb-interwork' '-mlittle-endian' '-mno-unaligned-access' '-O0' '-fmessage-length=0' '-fsigned-char' '-ffunction-sections' '-fdata-sections' '-g3' '-gdwarf-4' '-D' 'USE_STDPERIPH_DRIVER' '-D' 'HSE_CLOCK' '-D' 'STM32F030xC' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_GPU_Trm_Kernel\Utilities\Common_def' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\system' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\newlib\libc\include' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\drivers' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\STM32F0xx_StdPeriph_Driver\inc' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\CMSIS\Include' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\CMSIS\Device\ST\STM32F0xx\Include' '-I' 'C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Modules' '-std=gnu11' '-Wno-packed-bitfield-compat' '-v' '-c' '-o' 'Utilities\system\diag\semihosting.o'
 c:/eclipse-luna/compiler_6_2017q1/bin/../lib/gcc/arm-none-eabi/6.3.1/cc1.exe -quiet -v -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_GPU_Trm_Kernel\Utilities\Common_def -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\system -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\newlib\libc\include -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\drivers -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\STM32F0xx_StdPeriph_Driver\inc -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\CMSIS\Include -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\CMSIS\Device\ST\STM32F0xx\Include -I C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Modules -imultilib thumb/v6-m -iprefix c:\eclipse-luna\compiler_6_2017q1\bin\../lib/gcc/arm-none-eabi/6.3.1/ -isysroot c:\eclipse-luna\compiler_6_2017q1\bin\../arm-none-eabi -dD -D__USES_INITFINI__ -D USE_STDPERIPH_DRIVER -D HSE_CLOCK -D STM32F030xC ..\Utilities\system\diag\semihosting.c -quiet -dumpbase semihosting.c -mcpu=cortex-m0 -mthumb -mthumb-interwork -mlittle-endian -mno-unaligned-access -auxbase-strip Utilities\system\diag\semihosting.o -g3 -gdwarf-4 -O0 -Wno-packed-bitfield-compat -std=gnu11 -version -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -o C:\Users\TOMAS~1.KAM\AppData\Local\Temp\ccivKS3z.s
GNU C11 (GNU Tools for ARM Embedded Processors 6-2017-q1-update) version 6.3.1 20170215 (release) [ARM/embedded-6-branch revision 245512] (arm-none-eabi)
 compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "c:/eclipse-luna/compiler_6_2017q1/lib/gcc/../../lib/gcc/arm-none-eabi/6.3.1/include"
ignoring nonexistent directory "c:\eclipse-luna\compiler_6_2017q1\bin\../arm-none-eabi/tmp/jenkins-GCC-6-buildandreg-104_20170216_1487268972/install-mingw/lib/gcc/arm-none-eabi/6.3.1/../../../../include"
ignoring duplicate directory "c:/eclipse-luna/compiler_6_2017q1/lib/gcc/../../lib/gcc/arm-none-eabi/6.3.1/include-fixed"
ignoring duplicate directory "c:/eclipse-luna/compiler_6_2017q1/lib/gcc/../../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/include"
ignoring nonexistent directory "c:\eclipse-luna\compiler_6_2017q1\bin\../arm-none-eabi/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_GPU_Trm_Kernel\Utilities\Common_def
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\system
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\newlib\libc\include
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\drivers
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\STM32F0xx_StdPeriph_Driver\inc
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\CMSIS\Include
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Libraries\CMSIS\Device\ST\STM32F0xx\Include
 C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Modules
 c:\eclipse-luna\compiler_6_2017q1\bin\../lib/gcc/arm-none-eabi/6.3.1/include
 c:\eclipse-luna\compiler_6_2017q1\bin\../lib/gcc/arm-none-eabi/6.3.1/include-fixed
 c:\eclipse-luna\compiler_6_2017q1\bin\../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/include
End of search list.
GNU C11 (GNU Tools for ARM Embedded Processors 6-2017-q1-update) version 6.3.1 20170215 (release) [ARM/embedded-6-branch revision 245512] (arm-none-eabi)
 compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: a9e9642bc4a69c2c6e39da4443642949
In file included from c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\stdlib.h:19:0,
                 from C:\Users\tomas.kamenicky\workspace-luna\GPFW_F030_Kernel\Utilities\system/kernel.h:26,
                 from ..\Utilities\system\diag\semihosting.c:7:
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:240:21: error: missing binary operator before token "("
 #if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER)
                     ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:251:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:260:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 3) || __has_attribute(__alloc_size__)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:265:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 9) || __has_attribute(__alloc_align__)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:272:21: error: missing binary operator before token "("
 #if !__GNUC_PREREQ__(2, 95)
                     ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:363:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(2, 96)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:371:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(3, 1) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:377:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(3, 1)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:383:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(3, 3)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:391:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(3, 4)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:399:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 1)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:405:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 6) || __has_builtin(__builtin_unreachable)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:412:21: error: missing binary operator before token "("
 #if !__GNUC_PREREQ__(2, 7) && !defined(__INTEL_COMPILER)
                     ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:458:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(2, 96)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:466:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 0)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:491:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(3, 1)
                    ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:507:21: error: missing binary operator before token "("
 #if !__GNUC_PREREQ__(2, 7) && !defined(__INTEL_COMPILER)
                     ^
c:\eclipse-luna\compiler_6_2017q1\arm-none-eabi\include\sys\cdefs.h:532:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 3) || __has_attribute(__artificial__)
                    ^

As you can see it starts from stdlib.h which includes <sys/cdefs.h>. My question is, how can I solve this. We need new compiler version.

Question information

Language:
English Edit question
Status:
Expired
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.