Ask Your Question

Error "make[2]: *** [ghdl1] Error 4" while Building GHDL on top of a newer GCC 4.6.3

asked 2012-08-28 08:01:09 -0600

Raghu gravatar image

updated 2012-08-28 09:34:47 -0600

hhlp gravatar image

HI All, I am currently trying to Build GHDL-0.29 on top of a newer GCC 4.6.3(fedora 16),

../gcc-4.6.3/configure --enable-languages=vhdl --disable-bootstrap

configured successfully. and applied Kevin Steffensen patch

( and then

'make CFLAGS="-O"' Got below error

collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc
gnatmake: *** link failed.
make[2]: *** [ghdl1] Error 4
make[2]: Leaving directory `/root/rpmbuild/BUILD/gcc-4.6.3-20120306/host-x86_64-unknown-linux-gnu/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/gcc-4.6.3-20120306'
make: *** [all] Error 2

Please give me some ideas to build new version of ghdl,any suggestion is more helpful.

Regards Raghavendra

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-08-30 00:14:19 -0600

Raghu gravatar image

Thanks Ankur..I gone through spec file of ghdl,actualliy that built for old gcc version 4.3.4.My plan is to built for newer version of gcc 4.6.3 for fedora 16.I attached ghdl spec file.

edit flag offensive delete link more

answered 2012-08-28 22:58:03 -0600

FranciscoD_ gravatar image

I see ghdl in the repositories:

[root@ankur ~]# yum info ghdl
Loaded plugins: changelog, fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora:
 * rpmfusion-free:
 * rpmfusion-free-updates:
 * rpmfusion-nonfree:
 * rpmfusion-nonfree-updates:
 * updates:
Installed Packages
Name        : ghdl
Arch        : x86_64
Version     : 0.29
Release     : 2.143svn.6.fc17
Size        : 9.1 M
Repo        : installed
From repo   : updates
Summary     : A VHDL simulator, using the GCC technology
URL         :
Licence     : GPLv2+
Description : GHDL is a VHDL simulator, using the GCC technology. VHDL is a language
            : standardized by the IEEE, intended for developing electronic systems. GHDL
            : implements the VHDL language according to the IEEE 1076-1987 or the IEEE
            : 1076-1993 standard. It compiles VHDL files and creates a binary that simulates
            : (or executes) your design. GHDL does not do synthesis: it cannot translate your
            : design into a netlist.
            : Since GHDL is a compiler (i.e., it generates object files), you can call
            : functions or procedures written in a foreign language, such as C, C++, or
            : Ada95.

[root@ankur ~]#

I suggest you look at the spec file the maintainers use for hints on how to compile it, if absolutely necessary.

edit flag offensive delete link more

Question Tools


Asked: 2012-08-28 08:01:09 -0600

Seen: 1,904 times

Last updated: Aug 30 '12