Aah, finally, I'm hitting some paydirt with my cygwin-windows efforts! Note quite there yet, but getting closer
Today, I aimed to build the gcc-version of ghdl via cygwin. Here's a summary of the steps that worked out for me (I'll try refine these steps on the wiki eventually):
run the cygwin setup exe and install the following:
1) Grab the source for gcc v4.9.3
- cd ~/Downloads
- wget http://mirror.aarnet.edu.au/pu…cc-4.9.3/gcc-4.9.3.tar.gz
- mkdir gcc
- cd gcc
- tar xvf ../gcc-4.9.3.tar.gz
(wait patiently for it all to decompress)
2) Grab the latest version of ghdl via git and copy its source into gcc
- cd ~/Downloads
- git clone http://git.code.sf.net/p/ghdl-updates/ghdl-updates.git ghdl-updates
- cd ghdl-updates
- ./configure --with-gcc=$HOME/Downloads/gcc/gcc-4.9.3
- make copy-sources
3) Build and install gcc+ghdl
- cd ~/Downloads/gcc/
- mkdir gcc-objs; cd gcc-objs
- ../gcc-4.9.3/configure --prefix=/opt/gcc-4.9.3 --enable-languages=c,vhdl --disable-bootstrap --disable-lto --disable-multilib
- make -j2
- make install
- rm /usr/bin/ghdl
- ln -s /opt/gcc-4.9.3/bin/ghdl.exe /usr/bin/ghdl
- As a test, try typing "ghdl --disp-config"
- take a look at the output, and assure that there's no text anywhere that says "ghdl: installation problem:". If not, your ghdl exe is good to go!
4) Take it for a spin!
- cd "$HOMEPATH/My Documents/mega65"
- make simulate
- this churns away at quite a lot of *.vhdl files this time, no errors given
- then you will get a "cpu_test.exe" file
- Then give Paul's suggestion a try, of:
./cpu_test.exe | grep gs4510 | grep MAP
For me, this churned away for a while, and then resulted in this error:
./cpu_test:error: bound check failure at bitplanes.vhdl:267
./cpu_test:error: simulation failed
Aah, but that's ok, at least it's a human-readable error and something I can chase up
Whew, it's *almost* working then!