On Sun, 11 Nov 2012 20:46:31 +0100, you wrote:

>Hi Brian,
>
>I just took the alternative build approach from inside ghdl (that is
>mentioned in the README under "Compiling for development").
>I had to add some libs to ortho/gcc/Makefile to make it link to the
>4.7.2 stuff. When checking your patches, it appears, that you're linking
>to i386 specifics:
>
>+++ gcc-4.7.2/gcc/vhdl/Make-lang.in    2012-10-16 17:05:38.983341720
>...
>+      $(AGCC_GCCOBJ_DIR)gcc/i386-common.o \
>+      $(AGCC_GCCOBJ_DIR)gcc/common/common-targhooks.o \
>+      $(AGCC_GCCOBJ_DIR)gcc/options.o \
>
>Couldn't that cause some fun when trying to cross compile?

Indeed so. I really don't know what I'm doing with Makefiles, and that was a
get-me-going hack which also caused Lluis problems building for nixos. 

There is a patch in progress to correct this and other issues, but meantime you
could use the patch I posted November 6 to overcome this specific issue.
(Revert it before applying the soon-to-be-released one, or start again from 0.29
and add both large patches)

>strubi@gmuhl:/data/src/ghdl/translate/ghdldrv$ ./ghdl -a -g -O2 \
>--std=93 --bootstrap --work=std \
>../../libraries/ieee/std_logic_1164.vhdl

>Unfortunately, not all that smooth on "make install.all":
>../../../../libraries/std/textio_body.v87:33:0: internal compiler error:
>Segmentation fault

Lluis uncovered (and I confirmed) a bug which segfaults some files but not
others with -O2 (or even -O) which disappears when -On is removed.
Confirm by looking at the command line for textio_body.v87...

but this may be something different because I don't think "make install" uses
-O2...

- Brian

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

Reply via email to