[Bug c/42557] gcc no compile for m68k(coff/elf)
--- Comment #5 from law at redhat dot com 2010-02-24 21:45 --- 1. m68k-coff support was removed from gas and isn't realistically supported by GCC anymore either. 2. In-tree builds haven't been supported for ages -- law at redhat dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42557
[Bug c/42557] gcc no compile for m68k(coff/elf)
--- Comment #4 from mikpe at it dot uu dot se 2010-01-02 14:21 --- (In reply to comment #3) However, the goal is to compile gcc for the coff format and I'm having it difficulties. Consider the following two facts: 1. binutils-2.17 removed m68k-coff support, that was 3.5 years ago 2. gcc-4.4's NEWS file lists m68k-coff as unmaintained and scheduled for removal I'm sure that problem has easy solution, but I'm starting now. What books can help in this process? Your best option is to target m68k-elf instead, as that's still supported. If you absolutely must use coff, it's probably best to use older versions of binutils and gcc from the time when it was still supported. binutils-2.16.1 and gcc-3.4.6 might be a good starting point. You can't expect any upstream support for these old versions, however. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42557
[Bug c/42557] gcc no compile for m68k(coff/elf)
--- Comment #3 from miltoncsl at yahoo dot com 2010-01-02 02:51 --- I quoted the compilation of the binutils because it is part of the process for the construction of gcc. From your indication of version 2.16.1, I knew that this was the last that supported the coff format. I used the instructions of the LSB 6.5 (http://www.linuxfromscratch.org/lfs/view/6.5/chapter05/gcc-pass1.html) and its recommendations. However, the goal is to compile gcc for the coff format and I'm having it difficulties. I use the command: ../gcc-4.4.2/configure --target=m68k-coff \ --prefix=/usr \ --disable-nls \ --disable-shared \ --disable-multilib \ --disable-decimal-float \ --disable-threads \ --disable-libmudflap \ --disable-libssp \ --disable-libgomp \ --enable-languages=c \ --enable-obsolete and I get as error: ... /home/miltoncsl/Documents/coldfire/gcc/gcc-build/./gcc/xgcc -B/home/miltoncsl/Documents/coldfire/gcc/gcc-build/./gcc/ -B/usr/m68k-coff/bin/ -B/usr/m68k-coff/lib/ -isystem /usr/m68k-coff/include -isystem /usr/m68k-coff/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../../../gcc-4.4.2/libgcc -I../../../gcc-4.4.2/libgcc/. -I../../../gcc-4.4.2/libgcc/../gcc -I../../../gcc-4.4.2/libgcc/../include -DHAVE_CC_TLS -o _double.o -MT _double.o -MD -MP -MF _double.dep -DL_double -xassembler-with-cpp \ -c ../../../gcc-4.4.2/libgcc/../gcc/config/m68k/lb1sf68.asm ../../../gcc-4.4.2/libgcc/../gcc/config/m68k/lb1sf68.asm: Assembler messages: ../../../gcc-4.4.2/libgcc/../gcc/config/m68k/lb1sf68.asm:669: Error: unknown pseudo-op: `.hidden' make[2]: *** [_double.o] Error 1 make[2]: Leaving directory `/home/miltoncsl/Documents/coldfire/gcc/gcc-build/m68k-coff/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/home/miltoncsl/Documents/coldfire/gcc/gcc-build' make: *** [all] Error 2 $ I'm sure that problem has easy solution, but I'm starting now. What books can help in this process? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42557
[Bug c/42557] gcc no compile for m68k(coff/elf)
--- Comment #1 from mikpe at it dot uu dot se 2009-12-30 22:40 --- (In reply to comment #0) I tried to compile gcc (4.4.1 and 4.4.2) for m68k-coff for Linux. I'm using Ubuntu 9.10 AMD64. However, I get an error stating that gas is not supported for the version of binutils (2.20) used: ... Configuring in ./gas ... This target is no longer supported in gas make[1]: *** [configure-gas] Error 1 make[1]: Leaving directory `/home/miltoncsl/Documents/coldfire/binutils-2.20' make: *** [all] Error 2 Confirmed, but this is a binutils problem so you should report it to them not us. binutils-2.16.1 does build for m68k-unknown-coff. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42557
[Bug c/42557] gcc no compile for m68k(coff/elf)
--- Comment #2 from mikpe at it dot uu dot se 2009-12-31 00:53 --- (In reply to comment #0) When compiling m68k-elf the process went smoothly and I can install (m68k-elf-as, m68k-elf-ar, etc.). But this time I can not compile gcc 4.4.1 or 4.4.2 (m68k-elf-gcc) because I get an error stating problems with libgcc.mvars: ... Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop. make[2]: Leaving directory `/home/miltoncsl/Documents/coldfire/gcc-4.4-4.4.1.orig/gcc-4.4.1/m68k-elf/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/home/miltoncsl/Documents/coldfire/gcc-4.4-4.4.1.orig/gcc-4.4.1' make: *** [all] Error 2 I can reproduce this, but only by doing the build in the source directory itself. Never ever do that with gcc. Doing the build in a separate object directory and configuring with --target=m68k-unknown-elf --disable-libssp I'm easily able to build gcc-4.4.2 as cross-compiler to m68k-unknown-elf on i686-linux. This PR should be closed as invalid. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42557