To whom it may concern: (this is intended for the authors though)
http://sourceforge.net/p/ghdl-updates/wiki/OS%20X%20gcc%20ghdl%20build%20instructions/ The article mentions having to specify LDFLAGS=-lgcc_eh, otherwise the build will fail. I recently compiled a recent 4.9 branch on Mavericks 10.9.5 and all seemed to go well with make LDFLAGS=-lgcc_eh ... On closer inspection, the Ada gnat binary crashes when passing an invalid argument: gnat -v (the invalid option should not cause the binary to crash). Basically, the LDFLAGS=-lgcc_eh is not enough to have Ada functioning correctly after make install. Instead, the --with-host-libstdcxx=-lstdc++ option to configure is needed. mkdir buildcd build../source/gcc-4.8.2/configure --with-host-libstdcxx=-lstdc++ --enable-languages=vhdl --prefix=/opt/ghdl/gcc-4.8.2 --disable-bootstrap make CFLAGS=-O To save one the burden, I went ahead and compiled GCC 4.8.2 with vhdl using the steps above *without* LDFLAGS=-lgcc_eh. This is important because LDFLAGS=-lgcc_eh for newer GCC versions is not a 100% state for Ada itself (i.e. --enable-languages=c,ada,vhdl). Ada's gnat binary seg-faults (gant -v) when it should gracefully exit with unknown command. $ ./*ghdl -v* GHDL 0.31 (20140108) [Dunoon edition] Compiled with GNAT Version: GPL 2014 (20140331) GCC back-end code generator Written by Tristan Gingold. Copyright (C) 2003 - 2014 Tristan Gingold. GHDL is free software, covered by the GNU General Public License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ ./*gnat -v* ... gnat: Unknown command: -v This message may be helpful to those wanting to build GCC 4.9.1 or a more recent revision from the 4.9 branch. Btw, the same option to configure is needed for GCC 4.8.x for Ada's gnat binary to not seg-fault during exiting. svn export -r 216107 svn://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch gcc-4.9-20141010 Best regards, Mario
_______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
