diff options
author | rahulp13 | 2022-02-21 18:42:49 +0530 |
---|---|---|
committer | rahulp13 | 2022-02-21 19:39:39 +0530 |
commit | 4a3e5881d37fd0cce916d0a8238535b830cf177b (patch) | |
tree | 68543af44af0b00f2d7be043504a0def0056d34d /Windows | |
parent | 5542c808370a3ffebe12b3d04c551e47bc75d685 (diff) | |
download | nghdl-4a3e5881d37fd0cce916d0a8238535b830cf177b.tar.gz nghdl-4a3e5881d37fd0cce916d0a8238535b830cf177b.tar.bz2 nghdl-4a3e5881d37fd0cce916d0a8238535b830cf177b.zip |
Updated MSYS2 reduction instructions
Diffstat (limited to 'Windows')
-rw-r--r-- | Windows/MinGW+MSYS.md | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/Windows/MinGW+MSYS.md b/Windows/MinGW+MSYS.md index d2f682a..1cc0def 100644 --- a/Windows/MinGW+MSYS.md +++ b/Windows/MinGW+MSYS.md @@ -3,25 +3,36 @@ > MinGW provides the GCC compiler required to build the Ngspice executable. -[Download MinGW (unmodified)](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z)\ -[Download MSYS (unmodified)](https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/MSYS-20111123.zip/download) +> [Download MSYS2 (unmodified)](https://www.msys2.org/). Following packages are found to be required for building Ngspice and Verilator: + + - $ pacman -S --needed base-devel mingw-w64-x86_64-toolchain + + When prompted for the options, Select the one corresponding to ``mingw-w64-x86_64-gcc`` + + - $ pacman -S --needed mingw-w64-x86_64-python mingw-w64-x86_64-make + - $ pacman -S --needed mingw-w64-x86_64-dlfcn autoconf2.71 + **Reduced versions of MinGW and MSYS for NGHDL can be found in this repository under `sources/` folder.** ## Usage of MinGW + MSYS -1. Add `/mingw64/bin/` and `/mingw64/msys/bin` to the path so that all the utilities are able to find each other. +1. Add `/MSYS/usr/bin/` and `/MSYS/mingw64/bin` to the path so that all the utilities are able to find each other. 2. Open Windows command prompt at the location you want to use `MinGW + MSYS`. 3. Execute the command to launch `bash` provided by MSYS at this location. ```sh - > pathtoMSYS/bin/bash.exe + > pathtoMSYS/usr/bin/bash.exe ``` - 4. This comand launches bash in the CMD window which can then be used as `BASH shell`, with commands similar to Linux. - - +4. This comand launches bash in the CMD window which can then be used as `BASH shell`, with commands similar to Linux. +5. Note that this reduced version is not sufficient for building Ngspice and Verilator from their source codes. + + ## Reduction of MinGW + MSYS > Originally MinGW and MSYS are provided for a large variety of development scenarios which are not required by NGHDL, causing size overheads in the final distribution. 1. To remove unrequired parts of MSYS and MinGW, a trial and error based approach is to be followed. -2. To start, both utilities should be reduced to the bare minimum required components which can be noted by studying the Ngspice configure file `(/ngspice/configure)`. -The rest of the utilities are to added by accessing the errors in the logs provided during the configure-make-make install process. +2. To start with, the packages listed above can work as the base for the reduction. + +3. Both utilities should be reduced to the bare minimum required components which can be noted by studying the Ngspice configure file `(/ngspice/configure)`. + +4. The rest of the utilities are to added by accessing the errors in the logs provided during the ``configure``-``make``-``make install`` process. Similar can be done for Verilator as well. |