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]> 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]>> 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]>
> >     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
>
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to