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 [2016/07/10 02:18]
– [Cygwin Prerequisites] - added gdb debugger gurce
preparing_a_build_environment_in_cygwin [2021/06/19 00:35] (current)
– [3) Build and install gcc+ghdl] gurce
Line 92: Line 92:
  
   * **cd ~** (ie, go to your home folder)   * **cd ~** (ie, go to your home folder)
-  * **git clone https://github.com/gardners/c65gs.git mega65**+  * **git clone https://github.com/MEGA65/mega65-core.git**
  
-The source-code will then be placed in the "~/mega65" path.+The source-code will then be placed in the "~/mega65-core" path.
  
 ===== Installing Ophis ===== ===== Installing Ophis =====
Line 129: Line 129:
  
   * **cd ~/Downloads**   * **cd ~/Downloads**
-  * **git clone http://git.code.sf.net/p/ghdl-updates/ghdl-updates.git ghdl-updates**+  * **%%git clone http://git.code.sf.net/p/ghdl-updates/ghdl-updates.git ghdl-updates --config core.autocrlf=input%%**
   * **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%%**
   * **make copy-sources**   * **make copy-sources**
  
Line 138: Line 138:
   * **cd ~/Downloads/gcc/**   * **cd ~/Downloads/gcc/**
   * **mkdir gcc-objs; cd gcc-objs**   * **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**+  * **%%../gcc-4.9.3/configure --prefix=/opt/gcc-4.9.3 --enable-languages=c,vhdl --disable-bootstrap --disable-lto --disable-multilib%%**
   * **make -j2**   * **make -j2**
     * If you get an error saying "//../../gcc-4.9.3/libcpp/system.h:142:63: error: ‘fputs_unlocked’ was not declared in this scope//":     * If you get an error saying "//../../gcc-4.9.3/libcpp/system.h:142:63: error: ‘fputs_unlocked’ was not declared in this scope//":
       * Edit the "**gcc-4.9.3/libcpp/system.h**" file       * Edit the "**gcc-4.9.3/libcpp/system.h**" file
       * 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
 +    * If you get an error saying "//: No such file or directory//", try typing:
 +      * **export SHELLOPTS**
 +      * **set -o igncr**
       * run **make -j2** again       * run **make -j2** again
   * **make install**   * **make install**
   * **rm /usr/bin/ghdl**   * **rm /usr/bin/ghdl**
   * **ln -s /opt/gcc-4.9.3/bin/ghdl.exe /usr/bin/ghdl**   * **ln -s /opt/gcc-4.9.3/bin/ghdl.exe /usr/bin/ghdl**
-  * As a test, try typing "**ghdl --disp-config**"+  * 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! :)   * 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! :)
  
preparing_a_build_environment_in_cygwin.1468138724.txt.gz · Last modified: 2016/07/10 02:18 by gurce