https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69427

            Bug ID: 69427
           Summary: gcc-4.9.3 compilation for the cross target
                    m68k-rtems4.11 in i686-Cygwin
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kaluvalapalli.satish24 at gmail dot com
  Target Milestone: ---

Created attachment 37429
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37429&action=edit
gcc-4.9.3 compilation for the cross target m68k-rtems4.11 in i686-Cygwin

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.

Reply via email to