Hi Vince,

thanks… it seems that i missed the forest for the trees. Now the configure runs 
successfully and
I’m able to start the compile process.:)

Greetz,
Torsten


> Am 13.07.2015 um 23:56 schrieb Vincent Mirian <[email protected]>:
> 
> Hi Torsten,
> 
> I recently installed ghdl v0.33 with gcc. You can install the prereqs with 
> './contrib/download_prerequisites' from the gcc directory.
> 
> Hope this helps,
> 
> On Mon, Jul 13, 2015 at 5:49 PM, Torsten Meißner <[email protected]> 
> wrote:
> Hi,
> 
> 
> I want to build the actual HEAD of GHDL because of the new VHDL 08 related 
> features which the
> 0.31 stable release is missing. I tried several hours to build, but sadly I 
> can’t get over the first steps of the build process.
> 
> It seems, that the build instructions on the SF website are outdated, they 
> rely on
> some files that doesn’t exist anymore, translate/dist.sh for example.
> 
> So I tried to follow the README. I downloaded GCC 4.9.2 and then run the 
> configure.sh script, which
> runs fine without errors:
> 
> $ ./configure --with-gcc=../gcc-4.9.2
> Build machine is: x86_64-apple-darwin14.3.0
> Creating ghdl.gpr
> Creating Makefile
> Generate default_pathes.ads
> 
> Then I run make copy-sources without problems:
> 
> $ make copy-sources
> rm -f -rf ../gcc-4.9.2/gcc/vhdl
> mkdir ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/*.ad? ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/vhdl/*.ad? ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/vhdl/translate/*.ad? ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/psl/*.ad? ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/ortho/*.ad? ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/ortho/gcc/*.ad? ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/ortho/gcc/*.c ../gcc-4.9.2/gcc/vhdl
> cp -p ./src/ortho/gcc/*.opt ../gcc-4.9.2/gcc/vhdl
> cp -p ./doc/ghdl.texi ./doc/ghdl.1 ../gcc-4.9.2/gcc/vhdl
> mkdir ../gcc-4.9.2/gcc/vhdl/grt
> cp -pR ./src/grt/* ../gcc-4.9.2/gcc/vhdl/grt
> mkdir ../gcc-4.9.2/gcc/vhdl/libraries
> cp -pR ./libraries/* ../gcc-4.9.2/gcc/vhdl/libraries
> mkdir ../gcc-4.9.2/gcc/vhdl/ghdldrv
> cp -pR ./src/ghdldrv/*.ad? ../gcc-4.9.2/gcc/vhdl/ghdldrv
> cp -p ./dist/gcc/Make-lang.in ../gcc-4.9.2/gcc/vhdl
> sed \
>          -e "/^####libraries Makefile.inc/r ./libraries/Makefile.inc" \
>          -e "/^####grt Makefile.inc/r ./src/grt/Makefile.inc" \
>          < ./dist/gcc/Makefile.in > ../gcc-4.9.2/gcc/vhdl/Makefile.in
> cp -p ./dist/gcc/config-lang.in ../gcc-4.9.2/gcc/vhdl
> cp -p ./dist/gcc/lang-options.h ../gcc-4.9.2/gcc/vhdl
> cp -p ./dist/gcc/lang-specs.h ../gcc-4.9.2/gcc/vhdl
> 
> The next step is to run configure of the gcc sources, this fails with an 
> error of missing libraries:
> 
> ../../gcc-4.9.2/configure --enable-languages=vhdl 
> --prefix=/opt/ghdl/gcc-4.8.2 --disable-bootstrap 
> --with-gmp=/usr/local/opt/gmp4/include/ 
> --with-mpfr=/usr/local/opt/mpfr2/include/ 
> --with-mpc=/usr/local/opt/libmpc08/include/
> checking build system type... x86_64-apple-darwin14.3.0
> checking host system type... x86_64-apple-darwin14.3.0
> checking target system type... x86_64-apple-darwin14.3.0
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking for libatomic support... yes
> checking for libcilkrts support... yes
> checking for libitm support... yes
> checking for libsanitizer support... yes
> checking for libvtv support... no
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking whether g++ accepts -static-libstdc++ -static-libgcc... no
> checking for gnatbind... gnatbind
> checking for gnatmake... gnatmake
> checking whether compiler driver understands Ada... no
> checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 
> $$f2
> checking for objdir... .libs
> checking for the correct version of gmp.h... no
> configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.  Source code for these libraries can be found at
> their respective hosting sites as well as at
> ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
> http://gcc.gnu.org/install/prerequisites.html for additional info.  If
> you obtained GMP, MPFR and/or MPC from a vendor distribution package,
> make sure that you have installed both the libraries and the header
> files.  They may be located in separate packages.
> 
> I have installed the libs with homebrew and given their paths with the 
> —with-xxx options. The
> versions of the libraries are fine when comparing to the versions given in 
> the README.
> 
> A try with getting the sources of the libraries directly from their project 
> websites also wasn’t
> successful with the same configure failure.
> 
> Has somebody successfully built the actual GHDL sources on OSX10.10? Maybe 
> you can
> gave me a hint, what I’m doing wrong.
> 
> 
> Thanks in advance,
> Torsten
> 
> 
> 
> _______________________________________________
> Ghdl-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/ghdl-discuss
> 
> 
> 
> 
> --
> Vincent Mirian
> PhD Candidate
> Electrical and Computer Engineering
> University of Toronto
> 
> Eco-Tip: Save trees! Do you really need to print this email? ;-)
> _______________________________________________
> Ghdl-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/ghdl-discuss

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

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

Reply via email to