You are not logged in.
Lost Password?


Register To Post



 Bottom   Previous Topic   Next Topic

#1
gccVB build
Posted on: 2005/8/4 20:38
Nintendoid!
Joined 2004/10/25
USA
100 Posts
CoderLong Time User (14 Years) App Coder
Hey, I have been trying for the last 8 hours to build gccvb using the v850 patches and I always error out in the same way.

First i figured out that you need to change '##' to ' ' in tc-v810.c, so binutils build just fine. but every time I try to make gcc I fail with an unsuported flag on 'as'.

As near as I can tell the make script is trying to call the system 'as' and not the newly made 'v810-as', what is the proper work around for this?

there are several floating point bugs I would like to fix in the compiler but If i can not build it....

David
Top

#2
Re: gccVB build
Posted on: 2005/8/4 20:48
Nintendoid!
Joined 2004/10/25
USA
100 Posts
CoderLong Time User (14 Years) App Coder
I also figured out that you need to make the directory
/usr/local/v810/sys-include but it is not clear why the build scripts fail to make this dir.

David
Top

#3
Re: gccVB build
Posted on: 2005/8/4 21:03
Nintendoid!
Joined 2004/10/25
USA
100 Posts
CoderLong Time User (14 Years) App Coder
You also need to remove spurrious quotes in gcc/ch/loop.c

I guess GCC 3 still dives into #ifndef blocks
Top

#4
Re: gccVB build
Posted on: 2005/8/4 23:09
Nintendoid!
Joined 2004/10/25
USA
100 Posts
CoderLong Time User (14 Years) App Coder
Ok here is how it works on Suse 9.3, It might work on cygwin, but it definently fails if you relocate the base (arg).

Assuming that you have the folowing files in a directory:
binutils-2.10.tar.gz
binutils-2.10-v810patch0928.gz
gcc-2.95.2.tar.gz
gcc-2.95.2-v810patch0927.gz

Open a terminal and cd to that directory and exicute the following:

$ tar zxvf binutils-2.10.tar.gz
$ cd binutils-2.10
$ gzip -dc ../binutils-2.10-v810patch0928.gz | patch -p1
$ ./configure --target=v810 --prefix=/usr/local
$ vi gas/config/tc-v810.c
; goto line 1169 and replace name##"(" with name "("
$ make
$ su root
$ make install
$ exit ;go back to user land
$ cd ..

$ tar zxvf gcc-2.95.2.tar.gz
$ cd gcc-2.95.2
$ gzip -dc ../gcc-2.95.2-v810patch0927.gz | patch -p1
$ su root ;get super user priveleges
$ mkdir /usr/local/sys-include
$exit ; return to user land
$ ./configure --target=v810 --prefix=/usr/local --with-newlib
$ vi gcc/ch/loop.c
; goto lines 322 and 323 and remove the quotes
; (or place the block in a comment field)
$ make
$ su root
$ make install
$ exit

You might be tempted to build the whole thing as root but don't, it wont work on Suse, because root does not map /user to the path.

from here you have to collect up the apropriet tools and build the missing pieces from the gccvb zip file... more to follow
Top

#5
Re: gccVB build
Posted on: 2005/8/5 7:28
PVB Elite
Joined 2003/7/26
USA
1464 Posts
PVBCC EntryCoderContributorSpecial AchievementTop10 PosterHOTY09 EntryLong Time User (15 Years) App Coder20+ Game RatingsPVBCC 2013 Entry
I don't know if you know about it, but here is binutils-2.10-v810patch1021.gz ([url]http://hp.vector.co.jp/authors/VA007898/pcfxga/develop/binutils-2.10-v810patch1021.gz[/url])

Can't wait to get your floating point patches...
Top

 Top   Previous Topic   Next Topic


Register To Post