This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix opcode/Makefile.am


Building libopcodes on OpenBSD with the native (non-GNU) make fails
right now.  It is fairly easy to fix, by prepending $(srcdir)/ to the
appropriate targets, like we already do for most of them.

Unfortunately I can't seem to regenerate Makefile.in, because automake
(I tried both 1.9.6 and 1.9.2) barfs:

Use of uninitialized value in string eq at /usr/local/bin/automake-1.9 line 4673, <GEN0> line 1.
Use of uninitialized value in exists at /usr/local/bin/automake-1.9 line 4675, <GEN0> line 1.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/automake-1.9 line 4675, <GEN0> line 1.
automake-1.9: ####################
automake-1.9: ## Internal Error ##
automake-1.9: ####################
automake-1.9: unrequested trace `'
automake-1.9: Please contact <bug-automake@gnu.org>.
 at /usr/local/share/automake-1.9/Automake/Channels.pm line 562
        Automake::Channels::msg('automake', '', 'unrequested trace `\'') called at /usr/local/share/automake-1.9/Automake/ChannelDefs.pm line 191
        Automake::ChannelDefs::prog_error('unrequested trace `\'') called at /usr/local/bin/automake-1.9 line 4675
        Automake::scan_autoconf_traces('configure.in') called at /usr/local/bin/automake-1.9 line 4877
        Automake::scan_autoconf_files() called at /usr/local/bin/automake-1.9 line 7493

Are people seeing the same thing on their systems?

Assuming this is a local problem (perhaps it's related to my version
of perl), I'd appreciate it if someone could do that for me and commit
this.  Alternatively I could patch Makefile.in by hand (like I've done
in my local tree).


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* Makefile.am: Add $(srcdir) to targets that need it.
	* Makefile.in: Regenerate.

Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/opcodes/Makefile.am,v
retrieving revision 1.115
diff -u -p -r1.115 Makefile.am
--- Makefile.am 2 Jul 2007 07:12:52 -0000 1.115
+++ Makefile.am 6 Jul 2007 13:35:18 -0000
@@ -575,7 +575,7 @@ i386-gen: i386-gen.o
 
 i386-gen.o: i386-gen.c i386-opc.h
 
-i386-tbl.h: @MAINT@ i386-gen i386-opc.tbl i386-reg.tbl
+$(srcdir)/i386-tbl.h: @MAINT@ i386-gen i386-opc.tbl i386-reg.tbl
 	./i386-gen --srcdir $(srcdir) > $(srcdir)/i386-tbl.h
 
 ia64-gen: ia64-gen.o
@@ -584,7 +584,7 @@ ia64-gen: ia64-gen.o
 ia64-gen.o: ia64-gen.c ia64-opc.c ia64-opc-a.c ia64-opc-b.c ia64-opc-f.c \
   ia64-opc-i.c ia64-opc-m.c ia64-opc-d.c ia64-opc.h
 
-ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
+$(srcdir)/ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
 	./ia64-gen --srcdir $(srcdir) > $(srcdir)/ia64-asmtab.c
 
 s390-mkopc: s390-mkopc.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]