public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61737] New: ICE when building libgcc for cris cross-compiler
Date: Mon, 07 Jul 2014 14:45:00 -0000 [thread overview]
Message-ID: <bug-61737-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61737
Bug ID: 61737
Summary: ICE when building libgcc for cris cross-compiler
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dhowells at redhat dot com
Created attachment 33082
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33082&action=edit
Reduced preprocessed source that induces the error message
When trying to build a cross-compiler for cris with libgcc, I get the following
error and several others like it (make -j is in operation) during the compiler
build:
/data/fedora/cross-gcc/gcc-4.9.0-20140702/cris-linux-gnu/./gcc/xgcc
-B/data/fedora/cross-gcc/gcc-4.9.0-20140702/cris-linux-gnu/./gcc/
-B/usr/cris-linux-gnu/bin/ -B/usr/cris-linux-gnu/lib/ -isystem
/usr/cris-linux-gnu/include -isystem /usr/cris-linux-gnu/sys-include -g -O2
-O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fPIC -I. -I.
-I../.././gcc -I../../../gcc-4.9.0-20140702/libgcc
-I../../../gcc-4.9.0-20140702/libgcc/.
-I../../../gcc-4.9.0-20140702/libgcc/../gcc
-I../../../gcc-4.9.0-20140702/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o
_subvsi3.o -MT _subvsi3.o -MD -MP -MF _subvsi3.dep -DL_subvsi3 -c
../../../gcc-4.9.0-20140702/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
../../../gcc-4.9.0-20140702/libgcc/libgcc2.c: In function ‘__subvsi3’:
../../../gcc-4.9.0-20140702/libgcc/libgcc2.c:122:1: error: unrecognizable insn:
}
^
(call_insn 27 26 28 7 (parallel [
(call (mem:QI (symbol_ref:SI ("abort") [flags 0x41] <function_decl
0x7f5784e05d00 abort>) [0 __builtin_abort S1 A8])
(const_int 0 [0]))
(clobber (reg:SI 16 srp))
]) ../../../gcc-4.9.0-20140702/libgcc/libgcc2.c:119 -1
(expr_list:REG_NORETURN (const_int 0 [0])
(expr_list:REG_EH_REGION (const_int 0 [0])
(nil)))
(nil))
../../../gcc-4.9.0-20140702/libgcc/libgcc2.c:122:1: internal compiler error: in
extract_insn, at recog.c:2202
0x71c16a _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
../../gcc-4.9.0-20140702/gcc/rtl-error.c:109
0x71c199 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../gcc-4.9.0-20140702/gcc/rtl-error.c:117
0x6ee18a extract_insn(rtx_def*)
../../gcc-4.9.0-20140702/gcc/recog.c:2202
0x5d08d0 instantiate_virtual_regs_in_insn
../../gcc-4.9.0-20140702/gcc/function.c:1607
0x5d08d0 instantiate_virtual_regs
../../gcc-4.9.0-20140702/gcc/function.c:1925
0x5d08d0 execute
../../gcc-4.9.0-20140702/gcc/function.c:1975
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugzilla.redhat.com/bugzilla/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
I'm also very intrigued by that last line - I can reproduce it quite easily.
Anyway, I've added a reduced libgcc2.i that causes the error to occur. I don't
think it'll help because you need the intermediate-stage compiler binaries
also.
System gcc being used to build the cross-compiler:
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-isl=/builddir/build/BUILD/gcc-4.8.2-20131212/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.2-20131212/obj-x86_64-redhat-linux/cloog-install
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC)
>From gcc-bugs-return-455792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 07 15:14:56 2014
Return-Path: <gcc-bugs-return-455792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32254 invoked by alias); 7 Jul 2014 15:14:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 31438 invoked by uid 48); 7 Jul 2014 15:14:43 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61737] ICE when building libgcc for cris cross-compiler
Date: Mon, 07 Jul 2014 15:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61737-4-KFjI7h8bRL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-07/txt/msg00383.txt.bz2
Content-length: 3366
https://gcc.gnu.org/bugzilla/show_bug.cgi?ida737
--- Comment #1 from dhowells at redhat dot com <dhowells at redhat dot com> ---
I needed the following change to gcc (courtesy of Nick Clifton) to get cris-gcc
to build at all, even without libgcc:
Index: gcc/config.gcc
==================================================================--- gcc/config.gcc
+++ gcc/config.gcc
@@ -1130,7 +1130,7 @@
crisv32-*-linux* | cris-*-linux*)
tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h
cris/linux.h"
# We need to avoid using t-linux, so override default tmake_file
- tmake_file="cris/t-cris cris/t-linux t-slibgcc t-linux"
+ tmake_file="${tmake_file} cris/t-cris cris/t-linux t-slibgcc"
extra_options="${extra_options} cris/linux.opt"
case $target in
cris-*-*)
This behaviour can be produced with the SVNREV 212237 (2014-07-02) gcc-4.9.0
compiler tarball plus one patch and then the following config:
AR_FOR_TARGET=/usr/bin/cris-linux-gnu-ar \
AS_FOR_TARGET=/usr/bin/cris-linux-gnu-as \
DLLTOOL_FOR_TARGET=/usr/bin/cris-linux-gnu-dlltool \
LD_FOR_TARGET=/usr/bin/cris-linux-gnu-ld \
NM_FOR_TARGET=/usr/bin/cris-linux-gnu-nm \
OBJDUMP_FOR_TARGET=/usr/bin/cris-linux-gnu-objdump \
RANLIB_FOR_TARGET=/usr/bin/cris-linux-gnu-ranlib \
STRIP_FOR_TARGET=/usr/bin/cris-linux-gnu-strip \
WINDRES_FOR_TARGET=/usr/bin/cris-linux-gnu-windres \
WINDMC_FOR_TARGET=/usr/bin/cris-linux-gnu-windmc \
LDFLAGS='-Wl,-z,relro ' \
../gcc-4.9.0-20140702/configure --bindir=/usr/bin
--build=x86_64-redhat-linux-gnu \
--datadir=/usr/share --disable-decimal-float --disable-dependency-tracking \
--disable-gold --disable-libgomp --disable-libmudflap --disable-libquadmath \
--disable-libssp --disable-nls --disable-plugin --disable-shared \
--disable-silent-rules --disable-sjlj-exceptions --disable-threads \
--enable-checking= --enable-gnu-unique-object --enable-initfini-array \
--enable-languages=c,c++ --enable-linker-build-id --enable-nls
--enable-obsolete \
--enable-targets=all --exec-prefix=/usr --host=x86_64-redhat-linux-gnu \
--includedir=/usr/include --infodir=/usr/share/info --libexecdir=/usr/libexec
\
--localstatedir=/var --mandir=/usr/share/man --prefix=/usr \
--program-prefix=cris-linux-gnu- --sbindir=/usr/sbin
--sharedstatedir=/var/lib \
--sysconfdir=/etc --target=cris-linux-gnu \
--with-bugurl=http://bugzilla.redhat.com/bugzilla/ \
--with-linker-hash-style=gnu --with-newlib
--with-sysroot=/usr/cris-linux-gnu/sys-root \
--with-system-libunwind --with-system-zlib --without-headers --without-isl \
--without-cloog
The binutils is:
cris-linux-gnu-as -v
GNU assembler version 2.24.0 (cris-linux-gnu) using BFD version version
2.24.0-4.fc20 20140613
The compiler is built with:
AR_FOR_TARGET=/usr/bin/cris-linux-gnu-ar \
AS_FOR_TARGET=/usr/bin/cris-linux-gnu-as \
DLLTOOL_FOR_TARGET=/usr/bin/cris-linux-gnu-dlltool \
LD_FOR_TARGET=/usr/bin/cris-linux-gnu-ld \
NM_FOR_TARGET=/usr/bin/cris-linux-gnu-nm \
OBJDUMP_FOR_TARGET=/usr/bin/cris-linux-gnu-objdump \
RANLIB_FOR_TARGET=/usr/bin/cris-linux-gnu-ranlib \
STRIP_FOR_TARGET=/usr/bin/cris-linux-gnu-strip \
WINDRES_FOR_TARGET=/usr/bin/cris-linux-gnu-windres \
WINDMC_FOR_TARGET=/usr/bin/cris-linux-gnu-windmc \
make -C cris-linux-gnu tooldir=/usr all-gcc
libgcc is built with:
make -C cris-linux-gnu tooldir=/usr all-target-libgcc
next reply other threads:[~2014-07-07 14:45 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-07 14:45 dhowells at redhat dot com [this message]
2014-07-07 16:05 ` [Bug target/61737] " dhowells at redhat dot com
2014-07-14 19:08 ` hp at gcc dot gnu.org
2014-07-14 19:26 ` hp at gcc dot gnu.org
2014-07-15 0:40 ` hp at gcc dot gnu.org
2014-07-15 0:43 ` hp at gcc dot gnu.org
2014-07-15 0:44 ` hp at gcc dot gnu.org
2014-07-15 0:58 ` hp at gcc dot gnu.org
2014-07-15 2:48 ` hp at gcc dot gnu.org
2014-07-15 3:07 ` hp at gcc dot gnu.org
2014-07-15 9:19 ` dhowells at redhat dot com
2014-07-15 9:34 ` dhowells at redhat dot com
2014-07-15 9:36 ` dhowells at redhat dot com
2014-07-15 14:42 ` hp at gcc dot gnu.org
2014-07-15 14:44 ` hp at gcc dot gnu.org
2014-07-15 14:58 ` dhowells at redhat dot com
2014-07-17 2:05 ` hp at gcc dot gnu.org
2014-07-17 3:54 ` hp at gcc dot gnu.org
2014-07-17 4:27 ` hp at gcc dot gnu.org
2014-07-18 13:22 ` dhowells at redhat dot com
2014-07-18 15:53 ` hp at gcc dot gnu.org
2014-07-18 15:58 ` hp at gcc dot gnu.org
2014-07-18 16:04 ` dhowells at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-61737-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).