From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John Breen" To: egcs@cygnus.com Subject: Success(?): egcs-1.1a, target=m68k-elf Date: Fri, 25 Sep 1998 20:49:00 -0000 Message-id: <19980925205832.181.qmail@hotmail.com> X-SW-Source: 1998-09/msg01380.html This may be a bit premature, but hopefully I'll head off numerous replies and suggestions to the other mail I sent today. I finally got egcs compiled as an m68k-elf cross-compiler; however, I haven't actually run the code yet, due to my target being in the lab for modifications. But I wanted to document some of this before my memory fades. Here are some pertinent data: > cat config.status #!/bin/sh # This file was generated automatically by configure. Do not edit. # This directory was configured as follows: ../src/egcs-1.1a/configure --host=hppa1.1-hp-hpux10.20 --with-gcc-version-trigge r=/data/ecad_libs/egcs/src/egcs-1.1a/gcc/version.c --prefix=/data/ecad_libs/cont rib --target=m68k-elf --with-gnu-as --with-gnu-ld --with-dwarf --with-newlib --w ith-elf --norecursion # using "mh-frag" > m68k-elf-gcc --version egcs-2.91.57 > ../src/egcs-1.1a/config.guess hppa1.1-hp-hpux10.20 Off the top of my head, here are the things I had trouble with: 1. header files: I was surprised it needed the system header files to build. In the end I got around it by creating links in the top-level source directory (egcs-1.1a/) to libgloss and newlib in the newlib source directory (newlib-1.8.1). This also resulted in automatic building of newlib (although I have no idea how to turn it off). 2. libf2c: I had lots of trouble here. First, it requires crt0.o. I put in a dummy one and got past that. Then it complained about needing autoconf (after rereading the FAQ, this may have been due to me applying a patch to libf2c that I found on the list). In the end I renamed libf2c in the source tree and reconfigured. I'm assuming this is only needed for Fortran. 3. When installing, I set LANGUAGES="c c++". It died with a "no rule to make 'c++`" message. I set LANGUAGES to "c" and tried again, and the install completed (although I didn't try any c++ code, but it looks like libstdc++ is there). My thanks to those of you who offered suggestions and help. -- John A. Breen jab3@hotmail.com ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com