This is the mail archive of the gcc-help@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]

Re: Problems when compiling gcc-2.95.1 for H8/300 target.


On Mon, 25 Oct 1999 19:39:28 +0200, Eric Huiban <ehuiban@pyrenet.fr>
wrote:

>I'm trying to compile gcc-2.95.1 for "H8/300-hms" on a "i586-pc-linux-gnulibc1
>host". I previously compiled the native gcc 2.95.1 using the gcc-2.7.2.3 :
>everything looked perfect. I'm compiling in a separate directory and use the
>commands : "../gcc-2.95.1/configure --target=h8300-hms --with-gnu-as
>--with-gnu-as" (no error messages) and "make bootstrap" or "make LANGUAGES=c".
>Here the result is that no stdlib.h and no unistd.h files are found.
>
>The binutils were also well compiled. 
>
>Does someone know or feel where i am doing a bad configuration ? I'm quite
>new with gcc cross-compiler generation and use but i really don't think that
>such error can be a remaining bug.

For a compiler toolset one normally needs:

 1. binutils with assembler, linker etc.

 2. the C/C++ compiler binaries.

 3. the C-library with headers and libs.

 4. the debugger (with a possible simulator for the target).

Now you have the 1. and 2. but not the 3. and 4.

Solutions for the C-library :

 1. build the C-library yourself, the Cygnus newlib is the recommended
    one (there aren't alternatives...). Please see:
        http://sourceware.cygnus.com/newlib
    be prepared to struggle with the 'chicken and egg' problems...

 2. get a precompiled gcc-2.95.1 for some other host, with prebuilt
    libs and headers. Install the libs and headers and continue
    building the extra libs... Or just use also these libs from the
    distribution, neglecting the 'reinventing the wheel'. Please see:
        http://www.nettilinja.fi/~ankosken/embtools.htm

Solutions for the debugger with a H8/300[HS]-simulator:

 1. get GDB sources, configure and build for h8300-hms target. The
    result is a text-based one. Use it with the 'ddd' GUI, using the
    option '--debugger h8300-hms-gcc' when starting (if you use the
    default name for the h8300-hms target GDB)

 2. get Insight sources, configure and build for h8300-hms target.
    The result is a tcl/tk-GUI-based one.

For the GDB/Insight sources, please see:
    http://sourceware.cygnus.com/insight

and see the screenshots, link to the 'ddd' etc. The appearance is
quite the same under Linux as it is under Win32, www.nettilinja.fi/...

Cheers, Kai


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