The MinGW g++ 3.4 appears to have a bug related to -I directives. An
instruction like:
 g++ -Ifoo/bar/ -c baz.C
will fail to find any header files in the foo/bar directory. In order to
succeed, the trailing '/' must be removed. Ie, this works:
 g++ -Ifoo/bar -c baz.C

I've reported this on the MinGW-MSYS list, but meanwhile the patch to the
various Makefile.am files is trivial.

Ok Lars, JMarc?

-- 
Angus
Index: src/frontends/qt2/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/ChangeLog,v
retrieving revision 1.389.2.54
diff -u -p -r1.389.2.54 ChangeLog
--- src/frontends/qt2/ChangeLog	7 Dec 2004 10:49:08 -0000	1.389.2.54
+++ src/frontends/qt2/ChangeLog	14 Dec 2004 10:16:44 -0000
@@ -1,3 +1,9 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (INCLUDES):
+	* moc/Makefile.am (INCLUDES): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-07  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* *.[Ch]: remove all traces of #pragma interface/implementation
Index: src/frontends/qt2/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/Makefile.am,v
retrieving revision 1.71.2.1
diff -u -p -r1.71.2.1 Makefile.am
--- src/frontends/qt2/Makefile.am	9 Sep 2004 09:35:17 -0000	1.71.2.1
+++ src/frontends/qt2/Makefile.am	14 Dec 2004 10:16:44 -0000
@@ -7,7 +7,7 @@ EXTRA_DIST = Makefile.dialogs
 
 noinst_LTLIBRARIES = libqt2.la
 
-INCLUDES = -I$(top_srcdir)/src/ -I$(top_srcdir)/src/frontends/ \
+INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/frontends \
 	-I$(top_srcdir)/images \
 	$(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
 	-I$(top_srcdir)/src/frontends/controllers
Index: src/frontends/qt2/moc/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/moc/Makefile.am,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile.am
--- src/frontends/qt2/moc/Makefile.am	13 Jan 2003 10:39:18 -0000	1.24
+++ src/frontends/qt2/moc/Makefile.am	14 Dec 2004 10:16:44 -0000
@@ -5,8 +5,8 @@ DISTCLEANFILES += *.C
 
 noinst_LTLIBRARIES = libqt2moc.la
 
-INCLUDES = -I$(top_srcdir)/src/ \
-	-I$(top_srcdir)/src/frontends/ \
+INCLUDES = -I$(top_srcdir)/src \
+	-I$(top_srcdir)/src/frontends \
 	-I$(top_srcdir)/src/frontends/controllers \
 	-I$(top_builddir)/src/frontends/qt2 \
 	$(FRONTEND_INCLUDES) \
Index: src/insets/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.552.2.17
diff -u -p -r1.552.2.17 ChangeLog
--- src/insets/ChangeLog	7 Dec 2004 10:49:27 -0000	1.552.2.17
+++ src/insets/ChangeLog	14 Dec 2004 10:16:49 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (INCLUDES): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-07  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* *.[Ch]: remove all traces of #pragma interface/implementation
Index: src/insets/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/Makefile.am,v
retrieving revision 1.50.2.1
diff -u -p -r1.50.2.1 Makefile.am
--- src/insets/Makefile.am	5 Apr 2004 15:59:47 -0000	1.50.2.1
+++ src/insets/Makefile.am	14 Dec 2004 10:16:49 -0000
@@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
 
 noinst_LTLIBRARIES = libinsets.la
 
-INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
+INCLUDES = -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 EXTRA_DIST = \
 	insetlist.C \
Index: src/mathed/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.299.2.11
diff -u -p -r1.299.2.11 ChangeLog
--- src/mathed/ChangeLog	7 Dec 2004 10:49:45 -0000	1.299.2.11
+++ src/mathed/ChangeLog	14 Dec 2004 10:16:51 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (INCLUDES): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-07  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* *.[Ch]: remove all traces of #pragma interface/implementation
Index: src/mathed/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/Makefile.am,v
retrieving revision 1.110.2.1
diff -u -p -r1.110.2.1 Makefile.am
--- src/mathed/Makefile.am	6 Nov 2003 14:50:38 -0000	1.110.2.1
+++ src/mathed/Makefile.am	14 Dec 2004 10:16:52 -0000
@@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
 
 noinst_LTLIBRARIES = libmathed.la
 
-INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
+INCLUDES = -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 libmathed_la_SOURCES = \
 	dimension.C \
Index: src/support/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v
retrieving revision 1.149.2.10
diff -u -p -r1.149.2.10 ChangeLog
--- src/support/ChangeLog	7 Dec 2004 10:50:08 -0000	1.149.2.10
+++ src/support/ChangeLog	14 Dec 2004 10:16:53 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (INCLUDES): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-07  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* *.[Ch]: remove all traces of #pragma interface/implementation
Index: src/support/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/Makefile.am,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile.am
--- src/support/Makefile.am	24 Sep 2002 18:20:26 -0000	1.53
+++ src/support/Makefile.am	14 Dec 2004 10:16:53 -0000
@@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
 
 noinst_LTLIBRARIES = libsupport.la
 
-INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
+INCLUDES = -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 EXTRA_DIST = lyxstring.C lyxstring.h \
 	     os_unix.C os_win32.C os_os2.C
Index: src/client/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/client/ChangeLog,v
retrieving revision 1.7
diff -u -p -r1.7 ChangeLog
--- src/client/ChangeLog	5 Dec 2004 17:10:58 -0000	1.7
+++ src/client/ChangeLog	14 Dec 2004 10:16:06 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-05  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
 	* Makefile.am (BOOST_LIBS): use boost variables
Index: src/client/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/client/Makefile.am,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile.am
--- src/client/Makefile.am	5 Dec 2004 17:10:58 -0000	1.7
+++ src/client/Makefile.am	14 Dec 2004 10:16:06 -0000
@@ -6,7 +6,7 @@ man_MANS = lyxclient.1
 
 bin_PROGRAMS = lyxclient
 
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES)
+AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM)
 
Index: src/frontends/gnome/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/gnome/ChangeLog,v
retrieving revision 1.68
diff -u -p -r1.68 ChangeLog
--- src/frontends/gnome/ChangeLog	24 Jul 2004 10:55:17 -0000	1.68
+++ src/frontends/gnome/ChangeLog	14 Dec 2004 10:16:07 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-07-24  Lars Gullik Bjonnes  <[EMAIL PROTECTED]>
 
 	* lyx_gui.C:
Index: src/frontends/gnome/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/gnome/Makefile.am,v
retrieving revision 1.52
diff -u -p -r1.52 Makefile.am
--- src/frontends/gnome/Makefile.am	3 Dec 2004 19:11:36 -0000	1.52
+++ src/frontends/gnome/Makefile.am	14 Dec 2004 10:16:07 -0000
@@ -4,8 +4,8 @@ noinst_LTLIBRARIES = libgnome.la
 
 AM_CPPFLAGS = \
 	$(FRONTEND_INCLUDES) \
-	-I$(top_srcdir)/src/ \
-	-I$(top_srcdir)/src/frontends/ \
+	-I$(top_srcdir)/src \
+	-I$(top_srcdir)/src/frontends \
 	-I$(top_srcdir)/src/frontends/xforms \
 	-I$(top_srcdir)/src/frontends/controllers \
 	$(BOOST_INCLUDES)
Index: src/frontends/qt2/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/ChangeLog,v
retrieving revision 1.735
diff -u -p -r1.735 ChangeLog
--- src/frontends/qt2/ChangeLog	5 Dec 2004 17:10:58 -0000	1.735
+++ src/frontends/qt2/ChangeLog	14 Dec 2004 10:16:13 -0000
@@ -1,3 +1,9 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS):
+	* moc/Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-05  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
 	* Makefile.am (AM_CPPFLAGS): reformat slightly
Index: src/frontends/qt2/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/Makefile.am,v
retrieving revision 1.100
diff -u -p -r1.100 Makefile.am
--- src/frontends/qt2/Makefile.am	5 Dec 2004 17:10:58 -0000	1.100
+++ src/frontends/qt2/Makefile.am	14 Dec 2004 10:16:13 -0000
@@ -14,8 +14,8 @@ AM_CPPFLAGS = \
 	-DQT_CLEAN_NAMESPACE \
 	-DQT_GENUINE_STR \
 	$(PCH_FLAGS) \
-	-I$(top_srcdir)/src/ \
-	-I$(top_srcdir)/src/frontends/ \
+	-I$(top_srcdir)/src \
+	-I$(top_srcdir)/src/frontends \
 	-I$(top_srcdir)/images \
 	$(QT_INCLUDES) $(BOOST_INCLUDES) \
 	-I$(top_srcdir)/src/frontends/controllers
Index: src/frontends/qt2/moc/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/moc/Makefile.am,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile.am
--- src/frontends/qt2/moc/Makefile.am	4 Dec 2004 14:50:23 -0000	1.29
+++ src/frontends/qt2/moc/Makefile.am	14 Dec 2004 10:16:13 -0000
@@ -5,8 +5,8 @@ DISTCLEANFILES += *.C
 
 AM_CPPFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION \
 	$(PCH_FLAGS) \
-	-I$(top_srcdir)/src/ \
-	-I$(top_srcdir)/src/frontends/ \
+	-I$(top_srcdir)/src \
+	-I$(top_srcdir)/src/frontends \
 	-I$(top_srcdir)/src/frontends/controllers \
 	-I$(top_builddir)/src/frontends/qt2 \
 	$(QT_INCLUDES) \
Index: src/insets/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.1088
diff -u -p -r1.1088 ChangeLog
--- src/insets/ChangeLog	6 Dec 2004 02:35:11 -0000	1.1088
+++ src/insets/ChangeLog	14 Dec 2004 10:16:23 -0000
@@ -1,3 +1,7 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
 
 2004-12-06  Alfredo Braunstein  <[EMAIL PROTECTED]>
 
Index: src/insets/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/Makefile.am,v
retrieving revision 1.81
diff -u -p -r1.81 Makefile.am
--- src/insets/Makefile.am	4 Dec 2004 14:50:24 -0000	1.81
+++ src/insets/Makefile.am	14 Dec 2004 10:16:23 -0000
@@ -6,7 +6,7 @@ EXTRA_DIST = \
 	insettheorem.C \
 	insettheorem.h
 
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES)
+AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 libinsets_la_SOURCES = \
 	mailinset.C \
Index: src/mathed/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.458
diff -u -p -r1.458 ChangeLog
--- src/mathed/ChangeLog	30 Nov 2004 09:21:12 -0000	1.458
+++ src/mathed/ChangeLog	14 Dec 2004 10:16:26 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-11-29  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
 	* math_charinset.C: use support::contains instead of strchr
Index: src/mathed/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/Makefile.am,v
retrieving revision 1.139
diff -u -p -r1.139 Makefile.am
--- src/mathed/Makefile.am	4 Dec 2004 14:50:24 -0000	1.139
+++ src/mathed/Makefile.am	14 Dec 2004 10:16:26 -0000
@@ -4,7 +4,7 @@ EXTRA_DIST = formulamacro.C
 
 noinst_LTLIBRARIES = libmathed.la
 
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES)
+AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 libmathed_la_SOURCES = \
 	textpainter.C \
Index: src/support/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/ChangeLog,v
retrieving revision 1.279
diff -u -p -r1.279 ChangeLog
--- src/support/ChangeLog	26 Nov 2004 14:37:40 -0000	1.279
+++ src/support/ChangeLog	14 Dec 2004 10:16:28 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-11-26  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* globbing.[Ch] (glob): change API to:
Index: src/support/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/Makefile.am,v
retrieving revision 1.82
diff -u -p -r1.82 Makefile.am
--- src/support/Makefile.am	4 Dec 2004 14:50:25 -0000	1.82
+++ src/support/Makefile.am	14 Dec 2004 10:16:28 -0000
@@ -12,7 +12,7 @@ endif
 
 BUILT_SOURCES = path_defines.C
 
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES)
+AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 libsupport_la_SOURCES = \
 	FileInfo.C \
Index: src/tex2lyx/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tex2lyx/ChangeLog,v
retrieving revision 1.65
diff -u -p -r1.65 ChangeLog
--- src/tex2lyx/ChangeLog	5 Dec 2004 17:10:58 -0000	1.65
+++ src/tex2lyx/ChangeLog	14 Dec 2004 10:16:29 -0000
@@ -1,3 +1,8 @@
+2004-12-14  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
+	to overcome bug in the MinGW port of g++ 3.4.2.
+
 2004-12-05  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
 	* Makefile.am (tex2lyx_LDADD): use boost variables
Index: src/tex2lyx/Makefile.am
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tex2lyx/Makefile.am,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile.am
--- src/tex2lyx/Makefile.am	5 Dec 2004 17:10:58 -0000	1.21
+++ src/tex2lyx/Makefile.am	14 Dec 2004 10:16:29 -0000
@@ -13,7 +13,7 @@ DISTCLEANFILES += $(BUILT_SOURCES)
 
 bin_PROGRAMS = tex2lyx
 
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES)
+AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 BUILT_SOURCES = \
 	FloatList.C \

Reply via email to