User Tools

Site Tools






preparing_a_build_environment_in_cygwin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
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
preparing_a_build_environment_in_cygwin [2024/12/24 05:03] (current)
gurce
Line 121: Line 121:
   * **cd ~/Downloads**   * **cd ~/Downloads**
   * **wget http://mirror.aarnet.edu.au/pub/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.gz**   * **wget http://mirror.aarnet.edu.au/pub/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.gz**
 +    * NOTE: (12/12/2024) In this discord thread, I mention that I used a newer version of gcc - 9.4.0, also mentioned some other caveats/gotchyas...)
 +      * https://discord.com/channels/719326990221574164/782759365064917065/1107932116139909151
   * **mkdir gcc**   * **mkdir gcc**
   * **cd gcc**   * **cd gcc**
Line 130: Line 132:
   * **cd ~/Downloads**   * **cd ~/Downloads**
   * **%%git clone http://git.code.sf.net/p/ghdl-updates/ghdl-updates.git ghdl-updates --config core.autocrlf=input%%**   * **%%git clone http://git.code.sf.net/p/ghdl-updates/ghdl-updates.git ghdl-updates --config core.autocrlf=input%%**
 +    * NOTE: I think it might be better to grab a newer version of this repo at this location (which might work better with newer versions of gcc too):
 +      * https://github.com/ghdl/ghdl/blob/master/doc/development/building/GCC.rst
   * **cd ghdl-updates**   * **cd ghdl-updates**
   * **%%./configure --with-gcc=$HOME/Downloads/gcc/gcc-4.9.3%%**   * **%%./configure --with-gcc=$HOME/Downloads/gcc/gcc-4.9.3%%**
Line 144: Line 148:
       * Towards the start of the file, add "**#define __GNU_VISIBLE 1**" (prior to "#include <stdio.h>")       * Towards the start of the file, add "**#define __GNU_VISIBLE 1**" (prior to "#include <stdio.h>")
       * run **make -j2** again       * run **make -j2** again
-    * If you get an error saying ": No such file or directory", try typing:+    * If you get an error saying "//: No such file or directory//", try typing:
       * **export SHELLOPTS**       * **export SHELLOPTS**
       * **set -o igncr**       * **set -o igncr**
preparing_a_build_environment_in_cygwin.1624084479.txt.gz · Last modified: 2021/06/19 00:34 by gurce