public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/23292] New: libjava build fails with recent version of GNU Make
@ 2005-08-08 20:21 matria at gmail dot com
  2005-08-11 13:53 ` [Bug libgcj/23292] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: matria at gmail dot com @ 2005-08-08 20:21 UTC (permalink / raw)
  To: java-prs

The latest beta of GNU Make (3.81beta3) introduced `secondary expansions',
performed on all prerequisites of all targets. This breaks the Makefile in the
`libjava' directory because the `$$' in the `inner_nat_headers' variable are
expanded twice. The following fixed it for me:

--- Makefile.am 2005-04-27 21:34:20.000000000 -0400
+++ Makefile.am.fixed   2005-08-08 16:11:45.599005993 -0400
@@ -727,7 +727,7 @@
     $(ordinary_java_source_files:.java=.h) \
     $(built_java_source_files:.java=.h)

-inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
+_inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
        java/io/ObjectInputStream$$GetField.h \
        java/nio/DirectByteBufferImpl$$ReadWrite.h \
        java/nio/channels/Pipe$$SinkChannel.h \
@@ -740,6 +740,12 @@
        gnu/java/nio/PipeImpl$$SourceChannelImpl.h \
        $(PLATFORM_INNER_NAT_HDRS)

+ifeq ($(findstring second-expansion,$(.FEATURES)),)
+  inner_nat_headers = $(_inner_nat_headers)
+else
+  inner_nat_headers = $$(_inner_nat_headers)
+endif
+
 nat_headers = $(ordinary_nat_headers) $(inner_nat_headers)
gnu/gcj/tools/gcj_dbtool/Main.h
 nat_headers_install = $(ordinary_nat_headers)

-- 
           Summary: libjava build fails with recent version of GNU Make
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: matria at gmail dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23292


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-11-24  4:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23292-11137@http.gcc.gnu.org/bugzilla/>
2005-10-09 19:33 ` [Bug libgcj/23292] libjava build fails with recent version of GNU Make pinskia at gcc dot gnu dot org
2005-10-09 19:34 ` pinskia at gcc dot gnu dot org
2005-10-09 19:36 ` pinskia at gcc dot gnu dot org
2005-10-09 20:00 ` pinskia at gcc dot gnu dot org
2005-11-24  4:50 ` pinskia at gcc dot gnu dot org
2005-08-08 20:21 [Bug java/23292] New: " matria at gmail dot com
2005-08-11 13:53 ` [Bug libgcj/23292] " pinskia at gcc dot gnu dot org
2005-08-11 14:03 ` pinskia at gcc dot gnu dot org
2005-08-12 18:42 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).