This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't build m68k-elf target with gcc-3.3.2 or gcc-3.4-20031224 tree


I have been trying various things for almost a week trying to get gcc-3.3.2 & gcc-3.4-20031224 to build
properly for a target of 'm68k-elf'. I have found several GCC-FAQs that provided several useful hints
but I have yet to make it all the way through the build.


I am running configure as follows:

   ---configure-complete---
   ${SHELL}  ${SRCDIR}/configure                                 \
           --prefix=$LOCAL                                         \
           --target=m68k-elf                                       \
           --program-prefix=m68k-elf-                              \
           --with-gnu-as                                           \
           --with-gnu-ld                                           \
           --enable-languages="c,c++,objc"                         \
           --disable-nls                                           \
           --verbose                                               \
           #

My latest attempt was with the gcc-3.4-20031224 tree and the build died as follows:

     ...
     3367  Configuring in m68k-elf/libstdc++-v3
     3368  configure: creating cache ../config.cache
     3369  checking build system type... sparc-sun-solaris2.7
     3370  checking host system type... m68k-unknown-elf
     ...
     3470  checking for thread model used by GCC... single
     3471  configure: Debug build flags set to -g3 -O0
     3472  checking for additional debug build... no
     3473  checking for extra compiler flags for building...
     3474  configure: error: No support for this host/target combination.
     3475  make: *** [configure-target-libstdc++-v3] Error 1

The error here would lead me to think that the 'm68k-elf' target wasn't supported anymore, however,
the actual cross compiler (xgcc) builds fine. Earlier I was able to build build a 'bootstrap gcc' in
the gcc-3.4-20031224 tree with the 'all-gcc' target and I was able to install it with the 'install-gcc'
target. In this case I ran configure as follows:


---configure-min--- ${SHELL} ${SRCDIR}/configure \
--prefix=$LOCAL \
--target=m68k-elf \
--program-prefix=m68k-elf- \
--with-gnu-as \
--with-gnu-ld \
--without-headers \
--with-newlib \
--verbose \
#


From this I assumed that the 'm68k-elf' target was supposed to be supported in gcc-3.4-20031224

After this bit of success I decided to now try to build a complete cross-gcc/g++ again now that the bootstrap-gcc
is installed. I must say that having the bootstrap-gcc installed made a big difference in that several of the
sub-configure tests that previously died because there was no 'libc.a' available ran this time through. I looked
into the associated configure script for libstdc++-v3 but it is 60,000 lines long and virtually unreadable.


I completed another test this morning where I ran the build of gcc-3.2.3 using the same arguments to configure
as (---configure-complete---). That build ran fine.
------------------------------------------------------------
Q:
1. Is the 'm68k-elf' target still supported? If so, I'll file a bug report. If not, is there another m68k-elf target variant that is supported?


I just want a gcc/g++ cross-compiler & libraries that I can adapt for a real-time kernel target. It's OK if some of the
library routines make some incroorect assumptions about the OS environment for now.


Thanks much.
Paul






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]