I have tried out. but get an error. gcc -c -o ortho-lang.o ../../gcc/vhdl/ortho-lang.c -g -Wall -DIN_GCC -I..//gcc -I../../gcc/../include -I../../gcc/../gcc -I../../gcc/../gcc/config -I../../gcc/../libcpp/include In file included from ../../gcc/vhdl/ortho-lang.c:17: ../../gcc/../gcc/real.h:26:18: error: mpfr.h: Datei oder Verzeichnis nicht gefunden In file included from ../../gcc/vhdl/ortho-lang.c:17: ../../gcc/../gcc/real.h:449: error: expected declaration specifiers or ‘...’ before ‘mpfr_srcptr’ ../../gcc/../gcc/real.h:449: error: expected declaration specifiers or ‘...’ before ‘mp_rnd_t’ ../../gcc/../gcc/real.h:450: error: expected ‘)’ before ‘const’ ../../gcc/vhdl/ortho-lang.c: In function ‘new_signed_literal’: ../../gcc/vhdl/ortho-lang.c:982: warning: right shift count >= width of type ../../gcc/vhdl/ortho-lang.c: In function ‘new_unsigned_literal’: ../../gcc/vhdl/ortho-lang.c:999: warning: right shift count >= width of type ../../gcc/vhdl/ortho-lang.c: In function ‘new_float_literal’: ../../gcc/vhdl/ortho-lang.c:1034: warning: right shift count >= width of type make[2]: *** [ortho-lang.o] Fehler 1 make[2]: Leaving directory `/home/red/iso/ghdl/gcc-4.3.4/build_x86_64_linux/gcc' make[1]: *** [all-gcc] Fehler 2 make[1]: Leaving directory `/home/red/iso/ghdl/gcc-4.3.4/build_x86_64_linux' make: *** [all] Fehler 2
Karthik Baddam schrieb: > I left some variables blank, you'll need to fill them yourself, > according to your needs > > On Mon, Oct 12, 2009 at 4:29 PM, Karthik Baddam > <[email protected] <mailto:[email protected]>> > wrote: > > I followed these instructions and could compile some vhdl with > ghdl. However I am having some problems in actually using ghdl > (debugging now) > tar -xjvf mpfr-2.4.1.tar.bz2 > tar -xjvf gmp-4.3.1.tar.bz2 > tar -xjvf gcc-4.3.4.tar.bz2 > tar -xjvf ghdl-0.28.tar.bz2 > > set GHDL_TARGET_PATH= > set GHDL_DEPS_PATH= > > cd gmp-4.3.1 > ./configure --prefix=${GHDL_DEPS_PATH} > --libdir=${GHDL_DEPS_PATH}/lib64 > make ; make check > make install > > cd .. > cd mpfr-2.4.1 > ./configure --prefix=${GHDL_DEPS_PATH} > --libdir=${GHDL_DEPS_PATH}/lib64 > --with-gmp-include=${GHDL_DEPS_PATH}/include > --with-gmp-lib=${GHDL_DEPS_PATH}/lib64 > make; make check > make install > > #and GNAT GPL is installed with path option ${GHDL_DEPS_PATH} > > setenv GHDL_TARGET_PATH > setenv GHDL_DEPS_PATH > setenv PATH ${GHDL_DEPS_PATH}/bin:${PATH} > setenv LD_LIBRARY_PATH ${GHDL_DEPS_PATH}/lib64:${LD_LIBRARY_PATH} > setenv LD_RUN_PATH ${GHDL_DEPS_PATH}/lib64:${LD_RUN_PATH} > > > cd .. > mv ghdl-0.28/vhdl gcc-4.3.4/gcc/. > cd gcc-4.3.4 > mkdir build_x86_64_linux > cd build_x86_64_linux > > ../configure --prefix=${GHDL_TARGET_PATH} > --libdir=${GHDL_TARGET_PATH}/lib64 > --with-gmp-include=${GHDL_DEPS_PATH}/include > --with-gmp-lib=${GHDL_DEPS_PATH}/lib64 > --with-mpfr-include=${GHDL_DEPS_PATH}/include > --with-mpfr-lib=${GHDL_DEPS_PATH}/lib64 --enable-languages=vhdl > --disable-bootstrap > make CFLAGS="-O2" > make install > > > ### either add ghdl bin to your path or create a wrapper in your path > ###### add these in .cshrc > setenv GHDL_TARGET_PATH > setenv GHDL_DEPS_PATH > setenv PATH ${GHDL_DEPS_PATH}/bin:${PATH} > setenv LD_LIBRARY_PATH ${GHDL_DEPS_PATH}/lib64:${LD_LIBRARY_PATH} > setenv LD_RUN_PATH ${GHDL_DEPS_PATH}/lib64:${LD_RUN_PATH} > > > > > > > On Mon, Oct 12, 2009 at 3:54 PM, R.Doss <[email protected] > <mailto:[email protected]>> wrote: > > Is my only chance a compilation of ghdl? > > > Karthik Baddam schrieb: > > yep, those options are passed to the gcc tool chain. > > > > > > On Mon, Oct 12, 2009 at 3:06 PM, R.Doss <[email protected] > <mailto:[email protected]> > > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > > > Karthik Baddam schrieb: > > > did try the -Wl option ?? > > > > > ghdl -e -Wc,-m32 -Wa,--32 -Wl,--32 hello_world > > > > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: > > i386 architecture of input file `e~hello_world.o' is > incompatible with > > i386:x86-64 output > > and the same long list. > > > > What are this options? Is this something from gcc? > > I have read ghdl is a special gcc compiler. > > A little bit amazing. > > > > > > > > > > > > _______________________________________________ > > Ghdl-discuss mailing list > > [email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>> > > https://mail.gna.org/listinfo/ghdl-discuss > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Ghdl-discuss mailing list > > [email protected] <mailto:[email protected]> > > https://mail.gna.org/listinfo/ghdl-discuss > > > > > _______________________________________________ > Ghdl-discuss mailing list > [email protected] <mailto:[email protected]> > https://mail.gna.org/listinfo/ghdl-discuss > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Ghdl-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/ghdl-discuss > _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
