On 01/02/2014 06:08 AM, Brian Drummond wrote:

Very old version.

Check out the ghdl-updates repo at
http://sourceforge.net/projects/ghdl-updates/
or more specifically at
http://sourceforge.net/p/ghdl-updates/code/ci/default/tree/

Tristan has fixed a huge number of bugs and added a few enhancements
over the last couple of weeks so this is recommended even over the
"download" package on the ghdl-updates front page.


I am now working with:

ghdl-0.29       : http://ghdl.free.fr/ghdl-0.29.tar.bz2
ghdl-0.31dev    : SorceForge snapshot (2013-12-15)
ghdl-0.31dev    : Today's Mercurial clone:

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

I am definitely working with the most relevant and latest source.

Updated instructions describing building from source with gcc4.8 at
http://sourceforge.net/p/ghdl-updates/wiki/build%20ghdl%20from%20source%
20on%20Linux/

There are a few hints in the documentation but it seems weak and strained; there are unnecessary ambiguities, as if no one could spend an hour and try to be concise.

So far, my various attempts to build GHDL generally results in errors like:

gmake[2]: *** No rule to make target `../gcc/gtype-vhdl.h', needed by `ortho-lang.o'. Stop.

or:

gcc -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissin g-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-st rings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/gengtype \ build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o build/gengtype-state.o b
uild/version.o ../../build-i386-unknown-freebsd9.2/libiberty/libiberty.a
/bin/sh ../.././gcc/../move-if-change tmp-gi.list gtyp-input.list
echo timestamp > s-gtyp-input
build/gengtype  \
                    -S ../.././gcc -I gtyp-input.list -w tmp-gtype.state
../.././gcc/vhdl/ortho-lang.c:1266: unexpected character `/'
../.././gcc/vhdl/ortho-lang.c:1266: unexpected character `/'
../.././gcc/vhdl/ortho-lang.c:1267: unidentified type `vec'
../.././gcc/vhdl/ortho-lang.c:1267: parse error: expected '(', 'GTY', or an identifier, have '<'
../.././gcc/vhdl/ortho-lang.c:1297: unexpected character `/'
../.././gcc/vhdl/ortho-lang.c:1297: unexpected character `/'
../.././gcc/vhdl/ortho-lang.c:1298: unidentified type `vec'
../.././gcc/vhdl/ortho-lang.c:1298: parse error: expected '(', 'GTY', or an identifier, have '<'
../.././gcc/vhdl/ortho-lang.c:1883: unexpected character `/'
../.././gcc/vhdl/ortho-lang.c:1883: unexpected character `/'
../.././gcc/vhdl/ortho-lang.c:1884: unidentified type `vec'
../.././gcc/vhdl/ortho-lang.c:1884: parse error: expected '(', 'GTY', or an identifier, have '<'
gmake[2]: *** [s-gtype] Error 1

A quick web search indicates that this is a common problem but I haven't found a solution or an explanation of what leads to this common class of compilation error.

A version of this Wiki page describing the build process with the
dragonlace compiler would be a useful addition, so please keep us
updated as to how you get on...


Yes, definitely! Generously concise documentation written in such a way as to actually be helpful is a nice addition to pretty much anything.



_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to