public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40428] New: build fails for sh2a
@ 2009-06-12 14:56 ce at embedded-software dot de
2009-06-12 14:58 ` [Bug c/40428] " ce at embedded-software dot de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ce at embedded-software dot de @ 2009-06-12 14:56 UTC (permalink / raw)
To: gcc-bugs
I am trying to make a cross toolchain for sh2a-linux-uclib,
bu I always get:
"Internal error, aborting at /var/tmp/cross/sh2a-linux-uclibc/por
tage/cross-sh2a-linux-uclibc/binutils-2.19.1-r1/work/binutils-2.19.1/gas/config/
tc-sh.c line 3968 in md_apply_fix
Please report this bug." and that is what I do.
I get this error both on using Buildroot and Gentoo Crossdev.
My logs attached are for Crossdev:
Configuring GCC with:
--prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/sh2a-linux-uclibc/gcc-bin/4.4.0
--includedir=/usr/lib/gcc/sh2a-linux-uclibc/4.4.0/include
--datadir=/usr/share/gcc-data/sh2a-linux-uclibc/4.4.0
--mandir=/usr/share/gcc-data/sh2a-linux-uclibc/4.4.0/man
--infodir=/usr/share/gcc-data/sh2a-linux-uclibc/4.4.0/info
--with-gxx-include-dir=/usr/lib/gcc/sh2a-linux-uclibc/4.4.0/include/g++-v4
--host=x86_64-pc-linux-gnu
--target=sh2a-linux-uclibc
--build=x86_64-pc-linux-gnu
--disable-altivec
--disable-fixed-point
--without-ppl
--without-cloog
--enable-nls
--without-included-gettext
--with-system-zlib
--disable-checking
--disable-werror
--enable-secureplt
--disable-multilib
--disable-libmudflap
--disable-libssp
--disable-libgomp
--enable-cld
--disable-libgcj
--enable-languages=c
--disable-shared
--with-sysroot=/usr/sh2a-linux-uclibc
--disable-bootstrap
--disable-libgomp
--disable-__cxa_atexit
--enable-target-optspace
--with-bugurl=http://bugs.gentoo.org/
--with-pkgversion=Gentoo 4.4.0 p1.1
Build ends with:
"/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/build/./gcc/xgcc
-B/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/build/./gcc/
-B/usr/sh2a-linux-uclibc/bin/ -B/usr/sh2a-linux-uclibc/lib/ -isystem
/usr/sh2a-linux-uclibc/include -isystem /usr/sh2a-linux-uclibc/sys-include -g
-Os -O2 -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
-isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -fpic -DNO_FPSCR_VALUES -I. -I. -I../.././gcc
-I/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/gcc-4.4.0/libgcc
-I/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/gcc-4.4.0/libgcc/.
-I/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/gcc-4.4.0/libgcc/../gcc
-I/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/gcc-4.4.0/libgcc/../include
-DHAVE_CC_TLS -o _ffsdi2.o -MT _ffsdi2.o -MD -MP -MF _ffsdi2.dep -DL_ffsdi2 -c
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/gcc-4.4.0/libgcc/../gcc/libgcc2.c
\
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/temp/cc4ysW8w.s:
Assembler messages:
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/temp/cc4ysW8w.s:592:
Internal error, aborting at
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/binutils-2.19.1-r1/work/binutils-2.19.1/gas/config/tc-sh.c
line 3968 in md_apply_fix
Please report this bug.
make[2]: *** [_ffssi2.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/temp/ccGWjYYv.s:
Assembler messages:
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/temp/ccGWjYYv.s:818:
Internal error, aborting at
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/binutils-2.19.1-r1/work/binutils-2.19.1/gas/config/tc-sh.c
line 3968 in md_apply_fix
Please report this bug.
make[2]: *** [_ffsdi2.o] Fehler 1
make[2]: Leaving directory
`/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/build/sh2a-linux-uclibc/libgcc'
make[1]: *** [all-target-libgcc] Fehler 2
make[1]: Leaving directory
`/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/gcc-4.4.0/work/build'
make: *** [all] Fehler 2"
--
Summary: build fails for sh2a
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ce at embedded-software dot de
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: sh2a-linux-uclibc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40428
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/40428] build fails for sh2a
2009-06-12 14:56 [Bug c/40428] New: build fails for sh2a ce at embedded-software dot de
@ 2009-06-12 14:58 ` ce at embedded-software dot de
2009-06-12 15:16 ` [Bug target/40428] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ce at embedded-software dot de @ 2009-06-12 14:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ce at embedded-software dot de 2009-06-12 14:57 -------
Created an attachment (id=17989)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17989&action=view)
Log for GCC compile run
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40428
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/40428] build fails for sh2a
2009-06-12 14:56 [Bug c/40428] New: build fails for sh2a ce at embedded-software dot de
2009-06-12 14:58 ` [Bug c/40428] " ce at embedded-software dot de
@ 2009-06-12 15:16 ` pinskia at gcc dot gnu dot org
2009-06-12 17:30 ` ce at embedded-software dot de
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-12 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-06-12 15:15 -------
>Internal error, aborting at
/var/tmp/cross/sh2a-linux-uclibc/portage/cross-sh2a-linux-uclibc/binutils-2.19.1-r1/work/binutils-2.19.1/gas/config/tc-sh.c
line 3968 in md_apply_fix
Please report this bug.
This really means to report the bug to binutils and not GCC.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40428
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/40428] build fails for sh2a
2009-06-12 14:56 [Bug c/40428] New: build fails for sh2a ce at embedded-software dot de
2009-06-12 14:58 ` [Bug c/40428] " ce at embedded-software dot de
2009-06-12 15:16 ` [Bug target/40428] " pinskia at gcc dot gnu dot org
@ 2009-06-12 17:30 ` ce at embedded-software dot de
2009-06-12 22:54 ` kkojima at gcc dot gnu dot org
2009-06-13 1:26 ` ce at embedded-software dot de
4 siblings, 0 replies; 6+ messages in thread
From: ce at embedded-software dot de @ 2009-06-12 17:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ce at embedded-software dot de 2009-06-12 17:30 -------
I reported this bug to binutils as bug # 10271
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40428
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/40428] build fails for sh2a
2009-06-12 14:56 [Bug c/40428] New: build fails for sh2a ce at embedded-software dot de
` (2 preceding siblings ...)
2009-06-12 17:30 ` ce at embedded-software dot de
@ 2009-06-12 22:54 ` kkojima at gcc dot gnu dot org
2009-06-13 1:26 ` ce at embedded-software dot de
4 siblings, 0 replies; 6+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-06-12 22:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kkojima at gcc dot gnu dot org 2009-06-12 22:53 -------
Because sh2a-*-linux* is an unsupported configuration for gcc-4.4.
Could you try the patch below?
--- ORIG/gcc-4_4-branch/gcc/config.gcc 2009-05-19 07:23:48.000000000 +0900
+++ gcc-4_4-branch/gcc/config.gcc 2009-06-13 07:36:18.000000000 +0900
@@ -2002,6 +2002,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbian
case ${target} in
sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
shbe-*-* | sheb-*-*) with_endian=big,little ;;
+ sh2a*-*-*) with_endian=big ;;
sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;;
shl* | sh64l* | sh*-*-linux* | \
sh5l* | sh-superh-elf) with_endian=little,big ;;
--
kkojima at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kkojima at gcc dot gnu dot
| |org
Severity|blocker |normal
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Priority|P3 |P4
Last reconfirmed|0000-00-00 00:00:00 |2009-06-12 22:53:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40428
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/40428] build fails for sh2a
2009-06-12 14:56 [Bug c/40428] New: build fails for sh2a ce at embedded-software dot de
` (3 preceding siblings ...)
2009-06-12 22:54 ` kkojima at gcc dot gnu dot org
@ 2009-06-13 1:26 ` ce at embedded-software dot de
4 siblings, 0 replies; 6+ messages in thread
From: ce at embedded-software dot de @ 2009-06-13 1:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ce at embedded-software dot de 2009-06-13 01:26 -------
OK, you are right, this patch fixes this, but the unsupported configuration
leads to failures in different other files like gcc-4.4.0/gcc/config/sh/sh.c
...
long way to go for me, as I try to make a toolchain.
THX
(In reply to comment #4)
> Because sh2a-*-linux* is an unsupported configuration for gcc-4.4.
>
> Could you try the patch below?
>
> --- ORIG/gcc-4_4-branch/gcc/config.gcc 2009-05-19 07:23:48.000000000 +0900
> +++ gcc-4_4-branch/gcc/config.gcc 2009-06-13 07:36:18.000000000 +0900
> @@ -2002,6 +2002,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbian
> case ${target} in
> sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
> shbe-*-* | sheb-*-*) with_endian=big,little ;;
> + sh2a*-*-*) with_endian=big ;;
> sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;;
> shl* | sh64l* | sh*-*-linux* | \
> sh5l* | sh-superh-elf) with_endian=little,big ;;
>
--
ce at embedded-software dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40428
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-06-13 1:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-12 14:56 [Bug c/40428] New: build fails for sh2a ce at embedded-software dot de
2009-06-12 14:58 ` [Bug c/40428] " ce at embedded-software dot de
2009-06-12 15:16 ` [Bug target/40428] " pinskia at gcc dot gnu dot org
2009-06-12 17:30 ` ce at embedded-software dot de
2009-06-12 22:54 ` kkojima at gcc dot gnu dot org
2009-06-13 1:26 ` ce at embedded-software dot de
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).