<div dir="ltr"><div>I am trying to make a RTEMS tool chain for the m68k target, while compilation of gcc we are facing below errors.Before 2 months we are able to compile same version tar file of gcc-4.9.3.tar.gz but now we are facing below errors with the same compiler. Could you please help me to solve.</div><div><br></div><div>Following are the compilation errors:</div><div>-------------------------------------------------------</div><div>g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc -I/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/build -I/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/../include -I/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/../libcpp/include \</div><div><br></div><div>-o build/genpreds.o /cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/genpreds.c</div><div><br></div><div>In file included from /cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/system.h:1064:0,</div><div><br></div><div>from /cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/genpreds.c:24:</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:16:39: error: division by zero in #if</div><div><br></div><div>#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’</div><div><br></div><div># define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:71:25: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’</div><div><br></div><div>(REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:85:5: note: in expansion of macro ‘REAL_WIDTH’<br></div><div><br></div><div>#if REAL_WIDTH == 1</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:16:39: error: division by zero in #if</div><div><br></div><div>#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’</div><div><br></div><div># define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG</div><div><br></div><div><br></div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:72:28: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’</div><div><br></div><div>+ (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:85:5: note: in expansion of macro ‘REAL_WIDTH’</div><div><br></div><div>#if REAL_WIDTH == 1</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:16:39: error: division by zero in #if</div><div><br></div><div>#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’</div><div><br></div><div># define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:71:25: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’<br></div><div><br></div><div>(REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:88:6: note: in expansion of macro ‘REAL_WIDTH’</div><div><br></div><div># if REAL_WIDTH == 2</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:16:39: error: division by zero in #if<br></div><div><br></div><div>#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’</div><div><br></div><div># define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:72:28: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’<br></div><div><br></div><div>+ (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:88:6: note: in expansion of macro ‘REAL_WIDTH’<br></div><div><br></div><div># if REAL_WIDTH == 2</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:16:39: error: division by zero in #if<br></div><div><br></div><div>#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:60:35: note: in expansion of macro ‘HOST_BITS_PER_LONG’<br></div><div><br></div><div># define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:71:25: note: in expansion of macro ‘HOST_BITS_PER_WIDE_INT’<br></div><div><br></div><div>(REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/real.h:91:7: note: in expansion of macro ‘REAL_WIDTH’<br></div><div><br></div><div># if REAL_WIDTH == 3</div><div><br></div><div>/cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/hwint.h:16:39: error: division by zero in #if<br></div><div><br></div><div>#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)</div><div><br></div><div>Thanks in advance.</div><div>Satish kaluvalapalli.</div></div>