preparing_a_build_environment_in_cygwin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
preparing_a_build_environment_in_cygwin [2016/07/06 03:24] – more details on pre-reqs, ophis and retrieving mega65 code gurce | preparing_a_build_environment_in_cygwin [2021/06/19 00:34] – [3) Build and install gcc+ghdl] - work around a windows EOL issue in cygwin gurce | ||
---|---|---|---|
Line 71: | Line 71: | ||
* **gcc-g++** | * **gcc-g++** | ||
* **gcc-ada** | * **gcc-ada** | ||
+ | * **gdb** | ||
* **gmp-devel** | * **gmp-devel** | ||
* **mpfr-devel** | * **mpfr-devel** | ||
Line 91: | Line 92: | ||
* **cd ~** (ie, go to your home folder) | * **cd ~** (ie, go to your home folder) | ||
- | * **git clone https:// | + | * **git clone https:// |
- | The source-code will then be placed in the " | + | The source-code will then be placed in the " |
===== Installing Ophis ===== | ===== Installing Ophis ===== | ||
Line 118: | Line 119: | ||
==== 1) Grab the source for gcc v4.9.3 ==== | ==== 1) Grab the source for gcc v4.9.3 ==== | ||
- | * cd ~/ | + | |
- | * wget http:// | + | |
- | * mkdir gcc | + | |
- | * cd gcc | + | |
- | * tar xvf ../ | + | |
* (wait patiently for it all to decompress) | * (wait patiently for it all to decompress) | ||
==== 2) Grab the latest version of ghdl via git and copy its source into gcc ==== | ==== 2) Grab the latest version of ghdl via git and copy its source into gcc ==== | ||
- | * cd ~/ | + | |
- | * git clone http:// | + | * **%%git clone http:// |
- | * cd ghdl-updates | + | |
- | * ./configure --with-gcc=$HOME/ | + | * **%%./configure --with-gcc=$HOME/ |
- | * make copy-sources | + | |
==== 3) Build and install gcc+ghdl ==== | ==== 3) Build and install gcc+ghdl ==== | ||
- | * cd ~/ | + | |
- | * mkdir gcc-objs; cd gcc-objs | + | |
- | * ../ | + | * **%%../ |
- | * make -j2 | + | |
- | * make install | + | * If you get an error saying "// |
- | * rm / | + | * Edit the " |
- | * ln -s / | + | * Towards the start of the file, add " |
- | * As a test, try typing "ghdl --disp-config" | + | * run **make -j2** again |
- | * take a look at the output, and assure that there' | + | * If you get an error saying ": No such file or directory", |
+ | * **export SHELLOPTS** | ||
+ | * **set -o igncr** | ||
+ | * run **make -j2** again | ||
+ | | ||
+ | | ||
+ | | ||
+ | * As a test, try typing "**%%ghdl --disp-config%%**" | ||
+ | * take a look at the output, and assure that there' | ||
==== 4) Take it for a spin! ==== | ==== 4) Take it for a spin! ==== | ||
- | * cd " | + | |
- | * make simulate | + | |
* this churns away at quite a lot of *.vhdl files this time, no errors given | * this churns away at quite a lot of *.vhdl files this time, no errors given | ||
- | * then you will get a " | + | * then you will get a "**cpu_test.exe**" file |
* Then give Paul's suggestion a try, of: | * Then give Paul's suggestion a try, of: | ||
- | * ./ | + | |
- | You should start seeing cpu instructions being outputted to the screen as they are executed. | + | You should start seeing cpu instructions being outputted to the screen as they are executed, something like the following: |
+ | |||
+ | < | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | gs4510.vhdl: | ||
+ | </ |
preparing_a_build_environment_in_cygwin.txt · Last modified: 2021/06/19 00:35 by gurce