[RTEMS Project] #2539: gcc-4.9.3 Compilation errors for m68k target using cygwin

RTEMS trac trac at rtems.org
Fri Jan 22 04:16:54 UTC 2016


#2539: gcc-4.9.3 Compilation errors for m68k target using cygwin
---------------------+------------------
 Reporter:  Satish   |      Owner:
     Type:  defect   |     Status:  new
 Priority:  highest  |  Milestone:  4.11
Component:  GCC      |    Version:  4.11
 Severity:  blocker  |   Keywords:
---------------------+------------------
 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.

--
Ticket URL: <http://devel.rtems.org/ticket/2539>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list