Menu

build ghdl from source on Linux

Anonymous Brian Drummond Tristan Gingold

Instructions for building GHDL (version 0.34dev) with GCC4.9.2 on Linux

Prerequisites

You will need the following tools installed on your computer:

gcc (the c compiler)
g++ (the c++ compiler)
gnat (the Ada compiler)
make (build tool)
and various other tools normally installed on Linux systems. Full list at http://gcc.gnu.org/install/prerequisites.html

On newer Debian systems (including Jessie) installing gcc-multilib should eliminate build failures caused by multilibs. On older systems you may need the "export LIBRARY_PATH" setting described in step 7 below.

Ideally gcc, gnat and g++ are the same version, 4.9 have been used successfully.

Procedure

2) 1) Download gcc-4.9.2.tar.bz2 from ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/
(or other mirror listed on http://gcc.gnu.org/mirrors.html) and untar it into "source" - there should now be a
"source/gcc-4.9.2" folder.


2) Load the prerequisites for building GCC. GCC now provides a script to do this:

cd source/gcc-4.9.2
./contrib/download_prerequisites
cd ..

(leaving you in the "source" folder)


3) Acquire the GHDL source from the Mercurial repository, or by downloading the package (TODO)

hg clone http://hg.code.sf.net/p/ghdl-updates/code ghdl

Select the branch you want to build (e.g. either the current stable version or the latest)

cd ghdl
hg update

(or just "hg update -r ghdl-0.33" for the latest release)


4) Follow the instructions in source/ghdl/README


Related

Wiki: GHDL Developer Page

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.