Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141848 - crossdev -s1 --target m68k-elf fails with repeatable GCC ICE
Summary: crossdev -s1 --target m68k-elf fails with repeatable GCC ICE
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 20:55 UTC by Tom Felker
Modified: 2006-07-31 22:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cross-m68k-elf-info.log (cross-m68k-elf-info.log,3.25 KB, text/plain)
2006-07-26 20:57 UTC, Tom Felker
Details
cross-m68k-elf-binutils.log (cross-m68k-elf-binutils.log,168 bytes, text/plain)
2006-07-26 20:58 UTC, Tom Felker
Details
cross-m68k-elf-gcc-stage1.log (cross-m68k-elf-gcc-stage1.log,318.03 KB, text/plain)
2006-07-26 20:59 UTC, Tom Felker
Details
cciM7RHW.out, the preprocessed source (cciM7RHW.out,8.97 KB, text/plain)
2006-07-26 20:59 UTC, Tom Felker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Felker 2006-07-26 20:55:58 UTC
I'm trying to build a cross compiler so I can build RockBox, but it fails like this (log files and dumps will be attached in a moment).  I've run memtest86 with no problems, and it's failed at the same place many times, so I don't think it's my hardware.

bigbert tom # crossdev -s1 --target m68k-elf
-------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   m68k
 * Target System:         m68k-elf
 * Stage:                 1 (C compiler only)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/m68k-elf
 * PORTAGE_TMPDIR:        /var/tmp/cross/m68k-elf
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
 * Forcing the latest versions of binutils-config/gcc-config ...                                                                     [ ok ]
 * Log: /var/log/portage/cross-m68k-elf-binutils.log
 * Emerging cross-binutils ...                                                                                                       [ ok ]
 * Log: /var/log/portage/cross-m68k-elf-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-m68k-elf-info.log
 * /var/log/portage/cross-m68k-elf-gcc-stage1.log

I also tried it with this command line (which specifies older versions than now):
crossdev -s1 --binutils 2.16.1-r2 --gcc 3.4.5-r1 --target m68k-elf
but it fails in the same way.

Some version info:
tom@bigbert ~/crosscompile_ice $ emerge -pv sys-devel/gcc crossdev

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-3.4.6-r1  USE="fortran gtk nls -bootstrap -boundschecking -build -doc -gcj -hardened -ip28 -ip32r10k -multislot -nocxx -nopie -nossp -objc -vanilla" 0 kB
[ebuild   R   ] sys-devel/crossdev-0.9.15-r1  0 kB
Comment 1 Tom Felker 2006-07-26 20:57:49 UTC
Created attachment 92821 [details]
cross-m68k-elf-info.log
Comment 2 Tom Felker 2006-07-26 20:58:19 UTC
Created attachment 92822 [details]
cross-m68k-elf-binutils.log
Comment 3 Tom Felker 2006-07-26 20:59:10 UTC
Created attachment 92823 [details]
cross-m68k-elf-gcc-stage1.log
Comment 4 Tom Felker 2006-07-26 20:59:39 UTC
Created attachment 92824 [details]
cciM7RHW.out, the preprocessed source
Comment 5 SpanKY gentoo-dev 2006-07-30 12:17:42 UTC
please try with gcc-4.1.1

gcc-3.4.x is dead
Comment 6 Tom Felker 2006-07-31 21:31:40 UTC
I tried upgrading my host compiler to 4.1.1, but I get the same failure.  Setting flags such that it builds version 4.1.1 of the cross compiler works, but unfortunately Rockbox won't build with that version.
Comment 7 SpanKY gentoo-dev 2006-07-31 22:04:52 UTC
i meant build a m68k-elf-gcc-4.1.1 ... works for me:

root@vapier 0 ~ # crossdev -s1 --target m68k-elf 
--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   m68k
 * Target System:         m68k-elf
 * Stage:                 1 (C compiler only)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/m68k-elf
 * PORTAGE_TMPDIR:        /var/tmp/cross/m68k-elf
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
 * Forcing the latest versions of binutils-config/gcc-config ...          [ ok ]
 * Log: /var/log/portage/cross-m68k-elf-binutils.log
 * Emerging cross-binutils ...                                            [ ok ]
 * Log: /var/log/portage/cross-m68k-elf-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                          [ ok ]
root@vapier 0 ~ # m58
root@vapier 0 ~ # m68k-elf-gcc --version
m68k-elf-gcc (GCC) 4.1.1 (Gentoo 4.1.1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.