#2539 closed defect (invalid)
gcc-4.9.3 Compilation errors for m68k target using cygwin
Reported by: | Satish | Owned by: | |
---|---|---|---|
Priority: | highest | Milestone: | 4.11 |
Component: | tool/gcc | Version: | 4.11 |
Severity: | blocker | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
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.
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 \
-o build/genpreds.o /cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/genpreds.c
In file included from /cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/system.h:1064:0,
from /cygdrive/d/DevelopmentTools/Build/build-gcc493-rtems411_X_freebsd92_cygwin/tools/gcc-4.9.3/gcc/genpreds.c:24:
/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
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
/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’
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
/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’
(REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \
/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’
#if REAL_WIDTH == 1
/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
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
/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’
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
/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’
+ (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
/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’
#if REAL_WIDTH == 1
/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
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
/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’
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
/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’
(REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \
/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’
# if REAL_WIDTH == 2
/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
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
/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’
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
/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’
+ (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
/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’
# if REAL_WIDTH == 2
/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
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
/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’
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
/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’
(REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \
/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’
# if REAL_WIDTH == 3
/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
#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG)
Thanks in advance.
Satish kaluvalapalli.
Attachments (1)
Change History (3)
Changed on 01/22/16 at 04:19:25 by Satish
Attachment: | gcc-4.9.3CompilationErrors.txt added |
---|
comment:1 Changed on 01/23/17 at 14:10:47 by Sebastian Huber
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please use the RSB to build the tools.
comment:2 Changed on 10/10/17 at 05:58:26 by Sebastian Huber
Component: | GCC → tool/gcc |
---|
gcc-4.9.3 compilation errors