Raghavendra, >Hi..tgingold, > >> you need to copy the ghdl source files in the gcc build environment. > >ghdl source code i kept in ghdl/translate/gcc/ghdl-0.29.tar.bz2 I'm not sure if you understand what Triston is saying. You need a copy of gcc (I use 4.3.4 w/ ghdl-0.29 not sure what version of ghdl you're using or if Triston's changed the version of gcc to use but it should say something in the README file). You then move the vhdl folder from the tarball into the gcc-4.3.4/gcc folder from the gcc tarball. You then configure gcc w/ something like ./configure --enable-languages=vhdl --disable-bootstrap. GHDL is basically a language plugin for gcc. Technically it adds simulation code since VHDL isn't a procedural language, but basically it acts like a language plugin.
$ tar xjvf gcc-core-4.3.4.tar.bz2 $ tar xjvf ghdl-0.29.tar.bz2 $ cd ghdl-0.29 $ mv vhdl ../gcc-4.3.4/gcc/ $ cd ../gcc-4.3.4/ $ ./configure --enable-languages=vhdl --disable-bootstrap $ make (I didn't test this just now, but iirc it's what I did w/ the version I'm using) > >> The simplest solution is to build (on i386) using BE=mcode > > >Please elobrate i didn't get it. > >I using a procedure to compile from github nick/ghdl >### Compiling for development. ### >################################### > >These steps can make GHDL development hard. You can avoid to compile GCC >everytime. To do this, edit ortho/gcc/Makefile and set two variables: >AGCC_GCCSRC_DIR is the GCC sources directory, while AGCC_GCCOBJ_DIR is where >you have compiled GCC+GHDL once. Then, you can compile: >the GHDL back-end (ghdl1) in ./translate: >$ make BE=gcc > >once i compiled gave below error >make[1]: Entering directory `/home/raghu/Desktop/ghdl/translate' >make[1]: *** No rule to make target `-objs/gcc/gtype-vhdl.h', needed by `ortho-lang.o'. Stop. > >make[1]: Leaving directory `/home/raghu/Desktop/ghdl/translate' >make: *** [compiler] Error 2 > >Regards >Raghavendra P.S. Pardon me if this doesn't properly show up as a reply, new to the list and just copy pasting this
_______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
