GNU bug report logs -
#12333
24.2.50; clang cannot compile src/xterm.c on Mac OS X 10.6.8
Previous Next
Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Date: Sun, 2 Sep 2012 11:13:02 UTC
Severity: normal
Found in version 24.2.50
Done: Andreas Schwab <schwab <at> linux-m68k.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sun, 02 Sep 2012 14:01:31 +0200
with message-id <m24nngd46c.fsf <at> igel.home>
and subject line Re: bug#12333: 24.2.50; clang cannot compile src/xterm.c on Mac OS X 10.6.8
has caused the debbugs.gnu.org bug report #12333,
regarding 24.2.50; clang cannot compile src/xterm.c on Mac OS X 10.6.8
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
12333: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12333
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello!
Having configured as
In GNU Emacs 24.2.50.1 (i386-apple-darwin10.8.0, X toolkit, Xaw3d scroll bars)
of 2012-09-02 on Sumac.local
Bzr revision: 109853 eggert <at> cs.ucla.edu-20120902071010-fd19rvrjk5hqaro2
Configured using:
`configure '--build=x86_64-apple-darwin10.8.0'
'--host=i386-apple-darwin10.8.0' '--target=i386-apple-darwin10.8.0'
'--with-wide-int' '--without-pop' '--without-sound' '--without-gpm'
'--without-dbus' '--without-selinux' '--with-x-toolkit=athena'
'--disable-ns-self-contained' '--without-xpm' '--without-jpeg'
'--without-tiff' '--without-gif' '--without-png' '--without-rsvg'
'--x-libraries=/usr/X11/lib' '--x-includes=/usr/X11/include'
'--enable-locallisppath=/Library/Application
Support/Emacs/calendar24:/Library/Application Support/Emacs' 'CFLAGS=-g
-H -pipe -fPIC -fno-common -O0 -march=prescott -mtune=prescott -m32
-fomit-frame-pointer -msse3 -foptimize-register-move -ftree-vectorize'
'CPPFLAGS=-I/sw/include' 'LDFLAGS=-L/sw/lib -m32 -Wl,-dead_strip_dylibs
-Wl,-bind_at_load -Wl,-t' 'CC=clang' 'CXX=clang++'
'PKG_CONFIG_PATH=/sw/lib/xft2/lib/pkgconfig:/sw/share/pkgconfig:/sw/lib/pkgconfig:/usr/X11/lib\
/pkgconfig:/usr/X11/share/pkgconfig:/usr/lib/pkgconfig'
'build_alias=x86_64-apple-darwin10.8.0'
'host_alias=i386-apple-darwin10.8.0'
'target_alias=i386-apple-darwin10.8.0''
the make process ends with:
clang -c -I/sw/include -Demacs -I. -I.../emacs-24.2.50/src -I../lib -I.../emacs-24.2.50/src/../lib -I/usr/X11/include -I/sw/include -I/sw/include/freetype2 -I/usr/X11/include -I/usr/X11R6/include -I/sw/include/ImageMagick -fopenmp -I/sw/include/libxml2 -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/sw/include -MMD -MF deps/xterm.d -MP -I/sw/include -g -H -pipe -fPIC -fno-common -O0 -march=prescott -mtune=prescott -m32 -fomit-frame-pointer -msse3 -foptimize-register-move -ftree-vectorize xterm.c
clang: warning: argument unused during compilation: '-fopenmp'
clang: warning: argument unused during compilation: '-foptimize-register-move'
clang: warning: argument unused during compilation: '-ftree-vectorize'
In file included from xterm.c:30:
./lisp.h:2961:39: warning: unknown attribute 'externally_visible' ignored [-Wunknown-attributes]
extern void debug_print (Lisp_Object) EXTERNALLY_VISIBLE;
^
In file included from xterm.c:23:
In file included from ./config.h:1702:
./conf_post.h:193:43: note: instantiated from:
#define EXTERNALLY_VISIBLE __attribute__((externally_visible))
^
xterm.c:8316:3: warning: implicit declaration of function 'x_wm_set_size_hint' is invalid in C99
[-Wimplicit-function-declaration]
x_wm_set_size_hint (f, (long) 0, 0);
^
xterm.c:8577:15: warning: enumeration value 'FULLSCREEN_WAIT' not handled in switch [-Wswitch-enum]
switch (f->want_fullscreen)
^
xterm.c:8687:15: warning: enumeration values 'FULLSCREEN_NONE' and 'FULLSCREEN_WAIT' not handled in
switch [-Wswitch-enum]
switch (f->want_fullscreen)
^
xterm.c:9258:2: warning: expression result unused [-Wunused-value]
FRAME_SAMPLE_VISIBILITY (f);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from xterm.c:62:
./frame.h:922:29: note: instantiated from:
SET_FRAME_GARBAGED (f) : 0, \
^
xterm.c:9355:3: warning: expression result unused [-Wunused-value]
FRAME_SAMPLE_VISIBILITY (f);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from xterm.c:62:
./frame.h:922:29: note: instantiated from:
SET_FRAME_GARBAGED (f) : 0, \
^
xterm.c:9610:1: error: conflicting types for 'x_wm_set_size_hint'
x_wm_set_size_hint (struct frame *f, long flags, int user_position)
^
xterm.c:8316:3: note: previous implicit declaration is here
x_wm_set_size_hint (f, (long) 0, 0);
^
6 warnings and 1 error generated.
make[1]: *** [xterm.o] Error 1
Making clang produce only pre-compiled output (with -E -dD) I cannot see a declaration. For use with GTK there seems to exist one in src/gtkutil.h, line #153:
extern void x_wm_set_size_hint (FRAME_PTR f,
long flags,
int user_position);
--
Greetings
Pete
The light at the end of the tunnel has been turned off due to budget cuts.
[Message part 3 (message/rfc822, inline)]
That is already fixed in jan.h.d <at> swipnet.se-20120902105346-10xwyrvyyzii4v89.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
This bug report was last modified 12 years and 342 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.