Hello, > I’m very pleased to see the latest efforts ongoing on GHDL. So I > tried to build GHDL mode version > on my Macbook with the Script from the SF-wiki: > http://sourceforge.net/p/ghdl-updates/wiki/build%20mcode%20ghdl/ > > First, I’ve installed the suggested ADA compiler version, then I > changed the build target from linux to darwin: > > > # Mac OS X > /usr/bin/make target=i686-darwin > # Linux (default) (i386) > #/usr/bin/make target=i686-pc-linux-gnu > > > Then I tried to run the Script to build ghdl-mcode. Sadly, it ran > into an error: > > > /usr/bin/make target=i686-darwin > curdir=`cd ..; pwd`; \ > sed -e "s%@COMPILER_GCC@%$curdir/ghdl1-gcc%" \ > -e "s%@COMPILER_DEBUG@%$curdir/ghdl1-debug%" \ > -e "s%@COMPILER_MCODE@%$curdir/ghdl1-mcode%" \ > -e "s%@COMPILER_LLVM@%$curdir/ghdl1-llvm%" \ > -e "s%@POST_PROCESSOR@%$curdir/../ortho/oread/oread-gcc%" \ > -e "s%@PREFIX@%$curdir/lib/%" < default_pathes.ads.in > > default_pathes.ads > gcc -c -g -DWITH_GNAT_RUN_TIME -o i386.o ../grt/config/i386.S > gcc -c -g -DWITH_GNAT_RUN_TIME -o linux.o ../grt/config/linux.c > gcc -c -g -DWITH_GNAT_RUN_TIME -o times.o ../grt/config/times.c > gcc -c -g -DWITH_GNAT_RUN_TIME -o grt-cbinding.o > ../grt/grt-cbinding.c > gcc -c -g -DWITH_GNAT_RUN_TIME -o grt-cvpi.o ../grt/grt-cvpi.c > echo "with Ortho_Code.X86.Flags_Macosx;" > ortho_code-x86-flags.ads > echo "package Ortho_Code.X86.Flags renames > Ortho_Code.X86.Flags_Macosx;" >> ortho_code-x86-flags.ads > gcc -c -g -o memsegs_c.o ../../ortho/mcode/memsegs_c.c > gcc -c -g -DWITH_GNAT_RUN_TIME -o chkstk.o ../grt/config/chkstk.S > gnatmake -aI../../ortho/mcode -aI../../ortho -gnaty3befhkmr -gnata > -gnatwae -aI../.. -aI.. -aI../../psl -aI../grt -aO.. -g -gnatf > -gnat05 ghdl_mcode -bargs -E -largs memsegs_c.o chkstk.o i386.o > linux.o times.o grt-cbinding.o grt-cvpi.o > gcc -c -I../../ortho/mcode -I../../ortho -gnaty3befhkmr -gnata > -gnatwae -I../.. -I.. -I../../psl -I../grt -g -gnatf -gnat05 > ghdl_mcode.adb > gcc -c -I../../ortho/mcode -I../../ortho -gnaty3befhkmr -gnata > -gnatwae -I../.. -I.. -I../../psl -I../grt -g -gnatf -gnat05 > ghdllocal.adb > ghdllocal.adb:834:42: warning: pragma Unreferenced given for > "Success" > gnatmake: "ghdllocal.adb" compilation error > make: *** [ghdl_mcode] Error 4 > > > I’ve seen, that in the Makefile unter ghdl/translate/ghdldrv are also > make targets to linux, so I changed them also to i686-darwin. Then > I’ve got this error: > > > /usr/bin/make target=i686-darwin > curdir=`cd ..; pwd`; \ > sed -e "s%@COMPILER_GCC@%$curdir/ghdl1-gcc%" \ > -e "s%@COMPILER_DEBUG@%$curdir/ghdl1-debug%" \ > -e "s%@COMPILER_MCODE@%$curdir/ghdl1-mcode%" \ > -e "s%@COMPILER_LLVM@%$curdir/ghdl1-llvm%" \ > -e "s%@POST_PROCESSOR@%$curdir/../ortho/oread/oread-gcc%" \ > -e "s%@PREFIX@%$curdir/lib/%" < default_pathes.ads.in > > default_pathes.ads > gnatmake -aI../../ortho/mcode -aI../../ortho -gnaty3befhkmr -gnata > -gnatwae -aI../.. -aI.. -aI../../psl -aI../grt -aO.. -g -gnatf > -gnat05 ghdl_mcode -bargs -E -largs memsegs_c.o chkstk.o i386.o > linux.o times.o grt-cbinding.o grt-cvpi.o > gcc -c -I../../ortho/mcode -I../../ortho -gnaty3befhkmr -gnata > -gnatwae -I../.. -I.. -I../../psl -I../grt -g -gnatf -gnat05 > ghdllocal.adb > ghdllocal.adb:834:42: warning: pragma Unreferenced given for > "Success" > gnatmake: "ghdllocal.adb" compilation error > make: *** [ghdl_mcode] Error 4 > > > I’m not good with ADA, so I don’t know what’s going on there - or > better: what’s not going on ;) > > Have anyone tried this build script and had more luck with it?
Which gnat compiler are you using ? As a workaround, you could remove the pragma Unreferenced around line 834. Tristan. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
