Re: Status of m6812 target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 31, 2010, at 12:26 AM, Ian Lance Taylor wrote:

> Yevgeny Binder <yev@xxxxxxxxxxxxxxx> writes:
> 
>> I'm trying to cross-compile GCC 4.5.2 for m6812-elf and not having
>> much luck. I know that several years ago it was necessary to apply a
>> set of patches written by Stéphane Carrez in order for GCC (then
>> version 3.3.6) to be usable on that target. Does anyone know if those
>> patches have been integrated with into the official source tree since
>> then, or if the equivalent improvements have been added? Is anyone
>> even developing for these Freescale chips with GCC anymore? I'm
>> curious to know the current status before trying to figure out why I
>> can't build a toolchain.
> 
> As far as I know the m6812-elf target works.  Certainly a number of
> patches from Stéphane Carrez have been incorporated into the gcc
> sources.  If you tell us the actual problem we may be able to suggest
> something.
> 
> Ian

That's great to hear! I was hoping the port was still active.

After compiling and installing binutils-2.21, I'm trying to compile the latest stable gcc release (4.5.2) on OS X 10.6.5 with the standard developer tools, which include a binary distribution of gcc 4.2.1. I get through about 5 minutes of compilation before this happens, with 100% reproducibility:

----
objdir/./gcc/xgcc -Bobjdir/./gcc/ -Bm6812-elf/bin/ -Bm6812-elf/lib/ -isystem m6812-elf/include -isystem m6812-elf/sys-include    -g -O2 -m68hc11 -Os -mrelax  -DUSE_GAS -DIN_GCC -Dinhibit_libc -g  -DIN_LIBGCC2  -I. -I. -I../../.././gcc -I../../../../src/gcc-4.5.2/libgcc -I../../../../src/gcc-4.5.2/libgcc/. -I../../../../src/gcc-4.5.2/libgcc/../gcc -I../../../../src/gcc-4.5.2/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o _negdi2.o -MT _negdi2.o -MD -MP -MF _negdi2.dep -DL_negdi2 -c ../../../../src/gcc-4.5.2/libgcc/../gcc/libgcc2.c \
	  
../../../../src/gcc-4.5.2/libgcc/../gcc/libgcc2.c: In function ‘__negdi2’:
../../../../src/gcc-4.5.2/libgcc/../gcc/libgcc2.c:76:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [_negdi2.o] Error 1
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2
----

I did some hunting and found that this is an instance of bug 32431, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32431 . Apparently it's been open for over three years. Since this is a known bug, I won't file a new report, but I'm wondering if anyone would be kind enough to take another look at fixing it. From the bug tracking notes, it looks like the fix is nontrivial, at least for users unfamiliar with gcc internals (myself). I'd be happy to do testing on my end if someone figures out a solution. Thanks!

Yevgeny



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux