Building newlib for h8300-hms
Fri Nov 21 22:32:00 GMT 2003
You should be configuring and building from the top level, not the newlib
subdirectory. Use /src/configure as opposed to /src/newlib/configure.
-- Jeff J.
> I am trying to build newlib for the h8300-hms series.
> I've come across a few pages that tell you how to do it, but
> when i build and install it it installs to <prefix>/i686-pc-linux-gnu.
> I started with the following PATH:
> from the build-newlib directory I configured as such:
> ../src/newlib/configure --target=h8300-hms --prefix=/usr/local/h8300-hms --srcdir=../src/newlib > configure.out
> then did a
> make CFLAGS="-Os" all
> the instructions i followed said that it should then install to:
> /usr/local/h8300-hms/h8300-hms, but it installs to /usr/local/h8300-hms/i686-pc-linux-gnu.
> The only thing I can assume is that it is not compiling to the target I
> gave it.
> Further more I tried the following,
> I added to the beginning of my path:
> which is where the symlinks for the h8300 cross compiler are.
> I then removed everything and reran configure as:
> ../src/newlib/configure --target=h8300-hms --prefix=/usr/local/h8300-hms --host=h8300-hms --srcdir=../src/newlib > configure.out
> then ran make the same as above.
> I now run into the following error:
> gcc -mh -mn -I/storage/renesas/h8300h/normal/build-newlib/targ-include -I/storage/renesas/src/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.11.0\" -I. -I../../../../../../src/newlib/libc/machine/h8300 -O2 -DSMALL_DTOA -DSMALL_MEMORY -fno-builtin -Os -mh -mn -c ../../../../../../src/newlib/libc/machine/h8300/reg_memcpy.S
> ../../../../../../src/newlib/libc/machine/h8300/reg_memcpy.S: Assembler messages:
> ../../../../../../src/newlib/libc/machine/h8300/reg_memcpy.S:23: Error: Wrong size pointer register for architecture.
> ../../../../../../src/newlib/libc/machine/h8300/reg_memcpy.S:24: Error: Wrong size pointer register for architecture.
> Any pointers would be greatly appreciated.
More information about the Newlib