GNU bug report logs - #12333
24.2.50; clang cannot compile src/xterm.c on Mac OS X 10.6.8

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12333 in the body.
You can then email your comments to 12333 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12333; Package emacs. (Sun, 02 Sep 2012 11:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 02 Sep 2012 11:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; clang cannot compile src/xterm.c on Mac OS X 10.6.8
Date: Sun, 2 Sep 2012 13:08:26 +0200
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.





Reply sent to Andreas Schwab <schwab <at> linux-m68k.org>:
You have taken responsibility. (Sun, 02 Sep 2012 12:04:02 GMT) Full text and rfc822 format available.

Notification sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
bug acknowledged by developer. (Sun, 02 Sep 2012 12:04:03 GMT) Full text and rfc822 format available.

Message #10 received at 12333-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Cc: 12333-done <at> debbugs.gnu.org
Subject: Re: bug#12333: 24.2.50;
	clang cannot compile src/xterm.c on Mac OS X 10.6.8
Date: Sun, 02 Sep 2012 14:01:31 +0200
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."




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Oct 2012 11:24:02 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.