Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7150392

Linux build breaks with GCC 4.7 due to unrecognized option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • infrastructure
    • None
    • b32
    • generic
    • linux

        Deepak Bhole reports:

        JDK builds currently fail with GCC 4.7 due to its stricter option
        checking.

        GCC 4.6 and prior ignored invalid options -- GCC 4.7 does not. Certain
        files in JDK supply the -mimpure-text option to GCC. This option is only
        valid on SPARC[1,2]. As a result, GCC 4.7 throws an error during build
        on Linux (I suppose .

        This patch removes the option:
        http://cr.openjdk.java.net/~dbhole/GCC-4.7-JDK8.00

        1: http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/SPARC-Options.html
        2: http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/i386-and-x86_002d64-Options.html

              dholmes David Holmes
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: