GNU bug report logs -
#5857
23.1.95; gcc: unrecognized option '-2.0/'
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5857 in the body.
You can then email your comments to 5857 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, svenjoac <at> gmx.de, bug-gnu-emacs <at> gnu.org
:
bug#5857
; Package
emacs
.
(Wed, 07 Apr 2010 21:30:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sven Joachim <svenjoac <at> gmx.de>
:
New bug report received and forwarded. Copy sent to
svenjoac <at> gmx.de, bug-gnu-emacs <at> gnu.org
.
(Wed, 07 Apr 2010 21:30:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I noticed strange gcc warnings like this for files in the src/ directory
in both emacs-23 and the trunk:
,----
| make[1]: Entering directory `/usr/local/src/emacs-git/src'
| gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I. -I/usr/local/src/emacs-git/src -D_BSD_SOURCE -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-1 -2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/alsa -pthread -D_REENTRANT -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/include/freetype2 -MMD -MF deps/pre-crt0.d pre-crt0.c
| gcc: unrecognized option '-2.0/'
`----
These rather baffling messages happen because src/Makefile contains this
line:
,----
| ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} -D_BSD_SOURCE -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-1 -2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} -I/usr/include/freetype2 ${DEPFLAGS}
`----
Note the "-I/usr/include/gio-1 -2.0/" part with the space in it. Now
the interesting question is where that comes from, grepping shows that
src/Makefile is the only file in the Emacs tree to contain a "gio-1"
string. The following directories in /usr/include have a "gio" in in
their name:
,----
| % ls /usr/include | grep gio
| gio-unix-2.0
| giomm-2.4
`----
There is a pkgconfig file corresponding to the /usr/include/gio-unix-2.0
directory:
,----
| % cat /usr/lib/pkgconfig/gio-unix-2.0.pc
| prefix=/usr
| exec_prefix=${prefix}
| libdir=${exec_prefix}/lib
| includedir=${prefix}/include
|
| Name: GIO unix specific APIs
| Description: unix specific headers for glib I/O library
| Version: 2.24.0
| Requires: gobject-2.0,gmodule-no-export-2.0,gio-2.0
| Libs: -L${libdir} -lgio-2.0
| Cflags: -I${includedir}/gio-unix-2.0/
`----
My preliminary conclusion is that the 'configure' script, in the
subshell following the "echo creating src/Makefile" line, does something
like 's/unix/1 /' with sed to create the "-I/usr/include/gio-1 -2.0/"
part of ALL_CFLAGS.
Note that I had upgraded glib to version 2.24.0 recently, with 2.22.4
this problem did not show up.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5857
; Package
emacs
.
(Wed, 07 Apr 2010 22:03:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5857 <at> debbugs.gnu.org (full text, mbox):
On 2010-04-07 23:28 +0200, Sven Joachim wrote:
> My preliminary conclusion is that the 'configure' script, in the
> subshell following the "echo creating src/Makefile" line, does something
> like 's/unix/1 /' with sed to create the "-I/usr/include/gio-1 -2.0/"
> part of ALL_CFLAGS.
Or, more likely, gcc does that substitution because it #defines unix as 1.
Sven
Merged 5857 5934.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 12 Apr 2010 06:27:02 GMT)
Full text and
rfc822 format available.
Merged 5857 5934.
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Mon, 12 Apr 2010 14:00:03 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 23 Apr 2010 05:43:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sven Joachim <svenjoac <at> gmx.de>
:
bug acknowledged by developer.
(Fri, 23 Apr 2010 05:43:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 5857-done <at> debbugs.gnu.org (full text, mbox):
2010-04-22 Miles Bader <miles at gnu.org>
* configure.in: Get rid of "unix" pre-defined macro when
preprocessing Makefile. (Bug#5857)
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 23 Apr 2010 05:43:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Miles Bader <miles <at> gnu.org>
:
bug acknowledged by developer.
(Fri, 23 Apr 2010 05:43:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5857
; Package
emacs
.
(Sat, 08 May 2010 17:22:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 5857 <at> debbugs.gnu.org (full text, mbox):
On 2010-04-23 07:42 +0200, Glenn Morris wrote:
> 2010-04-22 Miles Bader <miles at gnu.org>
>
> * configure.in: Get rid of "unix" pre-defined macro when
> preprocessing Makefile. (Bug#5857)
Could this be applied to the emacs-23 branch, now that 23.2 is
released? The fix seems rather safe, and the warnings are annoying
although currently harmless.
Sven
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 06 Jun 2010 11:24:04 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 28 Aug 2010 02:39:02 GMT)
Full text and
rfc822 format available.
Forcibly Merged 5857 5934 6932.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 28 Aug 2010 02:39:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 25 Sep 2010 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.