Problems building gcc 2.8.1 for --target=sh-hms
randall loomis
rsl@zanshinsys.com
Thu Jan 14 11:08:00 GMT 1999
gcc's out of date, use egcs.
Here's pretty much how to build the H8 tools, ymmv
25 #
26 # unpack the archives
27 #
28 tar xvzf binutils-2.9.1.tar.gz
29 tar xvzf egcs-1.1b.tar.gz
30 tar xvzf newlib-1.8.1.tar.gz
31
32 #
33 # create the build directories
34 #
35 mkdir build-binutils
36 mkdir build-egcs
37
38 #
39 # build h8 version of binutils
40 #
41 cd build-binutils
42 ../binutils-2.9.1/configure --target=h8300-hitachi-hms \
43 --prefix=/usr/local/crossgcc \
44 --exec-prefix=/usr/local/crossgcc/h8300-hitachi-hms
45 make all install
46
47 #
48 # add newlib source dir link to egcs source tree
49 # so newlib will get automatically built with egcs
50 #
51 cd ..
52 ln -s ../newlib-1.8.1/newlib egcs-1.1b/newlib
53
54 #
55 # remove g77 from egcs source tree,
56 # won't build, don't need it
57 #
58 mv egcs-1.1b/libf2c .
59
60 //
61 // add the new h8 binutils to front of path
62 //
63 export PATH=/usr/local/crossgcc/h8300-hitachi-hms/bin:$PATH
64
65 //
66 // build h8 version egcs
67 //
68 cd ../build-egcs
69 ../egcs-1.1b/configure \
70 --target=h8300-hitachi-hms \
71 --prefix=/usr/local/crossgcc \
72 --exec-prefix=/usr/local/crossgcc/h8300-hitachi-hms \
73 --with-newlib \
74
--with-headers=/home/rsl/job/crossgcc/newlib-1.8.1/newlib/libc/include \
75 --enable-target-optspace
76
77
78 make cross LANGUAGES="c c++" install
If you're able to use a linux platform for your development, you can
download the
already built binaries at
http://www.zanshinsys.com/linux-h8300
--
|\/|
|/\| randall@elgar.com
|\/| rsl@zanshinsys.com http://www.zanshinsys.com
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list