This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/70420] New: (Building GCC) mtune=native and internal compiler error at emit-rtl.c:1027


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

            Bug ID: 70420
           Summary: (Building GCC) mtune=native and internal compiler
                    error at emit-rtl.c:1027
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xsetech at gmail dot com
  Target Milestone: ---

I'm compiling GCC 5.3.0 for OS X. Specifically compiling it for:

OS X El Capitan 10.11.3
Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz

The following command-line causes an internal compiler error:

CFLAGS_FOR_BUILD="-march=native -mtune=native"
CXXFLAGS_FOR_BUILD="-march=native -mtune=native" CFLAGS="-march=native
-mtune=native -mfpmath=sse" CPPFLAGS="-march=native -mtune=native
-mfpmath=sse" ../configure --prefix=/home/setech/Local/usr/local/
--with-mpc=/home/setech/Local/usr/local/
--with-gmp=/home/setech/Local/usr/local/
--with-mpfr=/home/setech/Local/usr/local/
--with-isl=/home/setech/Local/usr/local/ --enable-languages=c,c++ -v
&& make -j 3


Without the -mtune and -march options, make completes without verbal error.

The exact place of error is:

../../../../libquadmath/math/rem_pio2q.c:587:1: internal compiler
error: in gen_reg_rtx, at emit-rtl.c:1027


Some context in the compilation process:

xgcc: internal compiler error: Abort trap: 6 (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[6]: *** [math/rem_pio2q.lo] Error 1
make[5]: *** [all] Error 2
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all-target-libquadmath] Error 2
make[1]: *** Waiting for unfinished jobs....


The host compiler is Xcode's version of GCC (LLVM). `gcc --version` returns:

Configured with:
--prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix


MPFR: 3.1.4
MPC: 1.0.3
GMP: 6.1.0
ISL: 0.16.1

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]