On Thu, 2012-10-18 at 10:26 +0200, Lluís Batlle i Rossell wrote:
> On Wed, Oct 17, 2012 at 07:55:20PM +0100, Brian Drummond wrote:
> > GHDL 0.30, Dunoon Edition!
> > 
> > 
> > To be built as per attached instructions, using attached patch.
> > 

> Thank you Brian!
> 
> I've just tried to put your patch into our gcc 4.7.2 build system, and I get:
> make[3]: *** No rule to make target `../gcc/gtype-vhdl.h', needed by
> `ortho-lang.o'.  Stop.
> 
> Any quick idea?
> 

This has been an ongoing discussion, not resolved yet.

I am writing to update the group in case anyone else is facing similar
issues, and also to post a patch which simplifies my earlier one and
solves some of the problems.

Lluis is running into trouble using a different build process than the
one in my instructions. As GHDL maintainer for a specific distro, he has
to follow their build processes, and that is uncovering problems
specific to that process.

Some of these problems are specific dependencies different to mine.
I had added specific missing objects and libraries to overcome linker
errors; the set he needed are different.

By looking at other add-on languages we discovered a tool for adding
these missing objects automatically. This fixes that problem and reduces
the extent of my changes.

The attached patch applies on top of my earlier one, reversing some of
it.


Remaining problems are possibly due to removing the --disable-bootstrap
configure option, which appears to affect which compiler (C or C++) is
used for parts of the build.

As GCC is moving gradually towards more C++ use, this is worth resolving
before it becomes another big obstacle. Stay tuned for more news...

Thanks to Lluis for all the work he is putting into this!


- Brian

(p.s. when things are stable, I have a couple more patches for some of
the bug reports and support requests.)

diff -u -r 0.30/ghdl-0.30/vhdl/Make-lang.in gcc-4.7.2/gcc/vhdl/Make-lang.in
--- 0.30/ghdl-0.30/vhdl/Make-lang.in	2012-11-06 11:51:40.478275970 +0000
+++ gcc-4.7.2/gcc/vhdl/Make-lang.in	2012-11-06 11:58:34.945272709 +0000
@@ -103,15 +103,6 @@
 AGCC_DEPS := $(AGCC_LOCAL_OBJS)
 AGCC_OBJS := $(AGCC_LOCAL_OBJS) \
 	$(AGCC_GCCOBJ_DIR)gcc/toplev.o \
-	$(AGCC_GCCOBJ_DIR)gcc/vec.o \
-	$(AGCC_GCCOBJ_DIR)gcc/hooks.o \
-	$(AGCC_GCCOBJ_DIR)gcc/dwarf2out.o \
-	$(AGCC_GCCOBJ_DIR)gcc/params.o \
-	$(AGCC_GCCOBJ_DIR)gcc/opts-common.o \
-	$(AGCC_GCCOBJ_DIR)gcc/opts.o \
-	$(AGCC_GCCOBJ_DIR)gcc/i386-common.o \
-	$(AGCC_GCCOBJ_DIR)gcc/common/common-targhooks.o \
-	$(AGCC_GCCOBJ_DIR)gcc/options.o \
 	$(AGCC_GCCOBJ_DIR)gcc/attribs.o \
 	$(AGCC_GCCOBJ_DIR)gcc/libbackend.a \
 	$(AGCC_GCCOBJ_DIR)libcpp/libcpp.a \
@@ -120,7 +111,7 @@
 ortho-lang.o: $(agcc_srcdir)/ortho-lang.c \
  $(AGCC_GCCOBJ_DIR)gcc/gtype-vhdl.h \
  $(AGCC_GCCOBJ_DIR)gcc/gt-vhdl-ortho-lang.h
-	$(CC) -c -o $@ $< $(AGCC_CFLAGS)
+	$(CC) -c $(INCLUDES) -o $@ $< $(AGCC_CFLAGS)
 
 agcc-clean: force
 	$(RM) -f $(agcc_objdir)/*.o
@@ -141,7 +132,7 @@
 	 -cargs $(CFLAGS) $(GHDL_ADAFLAGS)
 	$(GNATMAKE) -o $@ -aI$(srcdir)/vhdl -aOvhdl ortho_gcc-main \
 	 -bargs -E -cargs $(CFLAGS) $(GHDL_ADAFLAGS) \
-	 -largs $(AGCC_OBJS) $(LIBS) $(GMPLIBS) -lmpc -lmpfr -lgmp -ldl -lz
+	 -largs $(AGCC_OBJS) libcommon-target.a $(LIBS) $(GMPLIBS) $(BACKENDLIBS)
 
 # The driver for ghdl.
 ghdl$(exeext): force
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to