From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs for GNUstep Date: Tue, 15 Jul 2014 09:30:26 +0200 Message-ID: <0A3D9274-B7C3-41A0-A109-2D875257A2DC@swipnet.se> References: <53BCE582.8020402@yandex.ru> <87d2dc50do.wl%andres.ramirez@kipuamutay.com> <27EB515E-F1DA-4FA9-8C90-FD4191E31C16@swipnet.se> <87ion3mzvt.wl%andres.ramirez@kipuamutay.com> <4F7B3B08-DCAE-4527-ABB9-4C08464D87E0@swipnet.se> <87wqbhj2mm.wl%andres.ramirez@kipuamutay.com> <8C5F824F-3B3E-47F2-BF04-15679F2FE0B8@swipnet.se> <87k37h15wi.wl%andres.ramirez@kipuamutay.com> <87fvi41ma2.wl%andres.ramirez@kipuamutay.com> <87egxn214f.wl%andres.ramirez@kipuamutay.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1405409455 19053 80.91.229.3 (15 Jul 2014 07:30:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2014 07:30:55 +0000 (UTC) Cc: Dmitry Antipov , Stefan Monnier , emacs-devel@gnu.org To: "andres.ramirez" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 15 09:30:49 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X6xCK-0003Gg-3m for ged-emacs-devel@m.gmane.org; Tue, 15 Jul 2014 09:30:48 +0200 Original-Received: from localhost ([::1]:33396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6xCJ-0004Hn-Nn for ged-emacs-devel@m.gmane.org; Tue, 15 Jul 2014 03:30:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6xC9-0004Hb-Oh for emacs-devel@gnu.org; Tue, 15 Jul 2014 03:30:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6xC3-0006jA-DL for emacs-devel@gnu.org; Tue, 15 Jul 2014 03:30:37 -0400 Original-Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:36154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6xC2-0006j2-V5 for emacs-devel@gnu.org; Tue, 15 Jul 2014 03:30:31 -0400 Original-Received: by mail-lb0-f177.google.com with SMTP id s7so108040lbd.8 for ; Tue, 15 Jul 2014 00:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=x8mxs6EDDzJdjb6TdOjd6v3ZxiJsalXtNr4JhYE8ah8=; b=Rp1GN5ZvhFIlRhiXt+OAkAESf3ePn/rcpRht0zw5pMRV1kAKZOYZuOvIluiBZmxecO cRHOI3GWG5spjtV9jc2/jMQeWMceMO2jso0NOEv5FvhfA4s4rrabqjevYI4TAJYlmuC+ Bx7J1MfIvg0DtUdM8SQAEyvkx3g5qRv2YV1Kx70sBaX9FFgpEpv6ftXNNWV6as9Jyt6X cB1nxWrZw7MCwGXK5BUAsjlON4xpP0Z1xTvf9plP9FEc0/WoHMC+HvGuMQKCk/+f1U1Y ktQpeLLTlsseaQTAfECadmyULBG4DOQ61/Lo06cWK459vcq94jq2QytOIV7SzfS0WIGH kzlQ== X-Received: by 10.152.2.225 with SMTP id 1mr296479lax.93.1405409429422; Tue, 15 Jul 2014 00:30:29 -0700 (PDT) Original-Received: from [172.20.199.13] (46-59-42-57.cust-ip.bdtv.se. [46.59.42.57]) by mx.google.com with ESMTPSA id b2sm3263977lab.20.2014.07.15.00.30.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jul 2014 00:30:28 -0700 (PDT) In-Reply-To: <87egxn214f.wl%andres.ramirez@kipuamutay.com> X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173035 Archived-At: Hello. Please file a proper bug report. Jan D. 14 jul 2014 kl. 21:26 skrev andres.ramirez = : > Hi Jan. >=20 > It compiles now, with this recipe: >=20 > ;install: > gcc-objc > gnustep-make 2.6.6-1 > gnustep-base 1.24.6-1 > gnustep-gui 0.24.0-2 >=20 > ;configure with > $ CFLAGS=3D'-g -O2 -DGNUSTEP' ./configure --with-ns = --with-gnustep-conf=3D/etc/GNUstep/GNUstep.conf >=20 > ; when problem linking -lobjc > $ sudo ln -s /usr/lib/libobjc.so.4.0.0 /usr/lib/libobjc.so >=20 > That is for compilation. >=20 > Now the problem when running it > font rendering problem(also when maximizing frame the rendering of the = buffer takes a long time): > $ emacs -Q --eval "(calendar)" >=20 > see pic: > > some warnings: > emacs[13715] The font specified for NSUserFixedPitchFont, Courier, = can't be found. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Selected non-scalable font. > emacs[13715] Ignore right offset change from 1 to 0 > emacs[13715] Reparent was with offset 0 23 > emacs[13715] Parent border,width,height 1,441,557 > wmaker(handle_inotify_events(event.c:362)): warning: Inotify: Reading = config files in defaults database. > wmaker(handle_inotify_events(event.c:362)): warning: Inotify: Reading = config files in defaults database. > wmaker(handle_inotify_events(event.c:362)): warning: Inotify: Reading = config files in defaults database. > wmaker(handle_inotify_events(event.c:362)): warning: Inotify: Reading = config files in defaults database. >=20 > Any idea how to improve that?: >=20 > Regards > At Mon, 14 Jul 2014 09:09:05 +0200, > Jan Dj=E4rv wrote: >>=20 >> Hi. >>=20 >> 14 jul 2014 kl. 08:34 skrev andres.ramirez = : >>=20 >>> Hi Jan. >>>=20 >>> Could this be related? >>>=20 >>> Compiling ../lisp/font-core.el >>> Loading two versions of Protocol. The class that will be used is = undefined >>> Loading two versions of Object. The class that will be used is = undefined >>> Wrote /home/aramirez/abs/emacs/ns/emacs/lisp/font-core.elc >>>=20 >>=20 >> It sure looks like the runtimes are f*cked up. >>=20 >> Jan D. >>=20 >>> Regards >>> At Mon, 14 Jul 2014 08:18:08 +0200, >>> Jan Dj=E4rv wrote: >>>>=20 >>>> Hello. >>>>=20 >>>> 13 jul 2014 kl. 20:15 skrev andres.ramirez = : >>>>=20 >>>>> Hi Jan. >>>>>=20 >>>>> It compiled. But now a different issue: >>>>=20 >>>> I haven't seen that. Looks like a GNUStep bug to me. >>>>=20 >>>> Jan D. >>>>=20 >>>>> Program received signal SIGSEGV, Segmentation fault. >>>>> 0x00007ffff25cd5a7 in objc_hash_value_for_key () from = /usr/lib/libobjc.so.4 >>>>> (gdb) bt >>>>> #0 0x00007ffff25cd5a7 in objc_hash_value_for_key () from = /usr/lib/libobjc.so.4 >>>>> #1 0x00007ffff25d0449 in ?? () from /usr/lib/libobjc.so.4 >>>>> #2 0x00007ffff25d0e8e in sel_registerTypedName () from = /usr/lib/libobjc.so.4 >>>>> #3 0x00007ffff712d5f6 in ?? () from = /usr/lib/libgnustep-base.so.1.24 >>>>> #4 0x00007ffff7035038 in ?? () from = /usr/lib/libgnustep-base.so.1.24 >>>>> #5 0x00007ffff70d4df1 in ?? () from = /usr/lib/libgnustep-base.so.1.24 >>>>> #6 0x00007ffff70a6bab in ?? () from = /usr/lib/libgnustep-base.so.1.24 >>>>> #7 0x00007ffff70a3c3b in ?? () from = /usr/lib/libgnustep-base.so.1.24 >>>>> #8 0x00007ffff7951923 in ?? () from = /usr/lib/libgnustep-gui.so.0.24 >>>>> #9 0x00007fffe6cdf4f8 in ?? () >>>>> from = /usr/lib/GNUstep/Bundles/libgnustep-back-024.bundle/./libgnustep-back-024 >>>>> #10 0x00007ffff77c4755 in ?? () from = /usr/lib/libgnustep-gui.so.0.24 >>>>> #11 0x00007ffff77c2a84 in ?? () from = /usr/lib/libgnustep-gui.so.0.24 >>>>> #12 0x00000000005afab8 in ns_select (nfds=3D,=20 >>>>> readfds=3Dreadfds@entry=3D0x7fffffffd470,=20 >>>>> writefds=3Dwritefds@entry=3D0x7fffffffd4f0, = exceptfds=3Dexceptfds@entry=3D0x0,=20 >>>>> timeout=3Dtimeout@entry=3D0x7fffffffd460, = sigmask=3Dsigmask@entry=3D0x0) >>>>> at nsterm.m:3748 >>>>> #13 0x00000000005737ef in wait_reading_process_output ( >>>>> time_limit=3D, nsecs=3D, = read_kbd=3D-1,=20 >>>>> do_display=3Dtrue, wait_for_cell=3D13421442, wait_proc=3D0x0, = just_wait_proc=3D0) >>>>> at process.c:4593 >>>>>=20 >>>>> Regards >>>>> At Sun, 13 Jul 2014 11:08:19 +0200, >>>>> Jan Dj=E4rv wrote: >>>>>>=20 >>>>>> Did you update trunk? I fixed those errors there. >>>>>>=20 >>>>>> Jan D. >>>>>>=20 >>>>>> 13 jul 2014 kl. 06:37 skrev andres.ramirez = : >>>>>>=20 >>>>>>> Hi Jan. >>>>>>>=20 >>>>>>> same problem as with cmake: >>>>>>>=20 >>>>>>> gcc -std=3Dgnu99 -Demacs -I. -I. -I../lib -I./../lib = -D_REENTRANT -fPIC -fno-strict-aliasing -I/usr/include -I/usr/include = -I/usr/include/alsa -pthread -I/usr/include/librsvg-2.0 = -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include = -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 = -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz = -I/usr/include/libdrm -I/usr/include/libpng16 -fopenmp = -DMAGICKCORE_HDRI_ENABLE=3D1 -DMAGICKCORE_QUANTUM_DEPTH=3D16 -fopenmp = -DMAGICKCORE_HDRI_ENABLE=3D1 -DMAGICKCORE_QUANTUM_DEPTH=3D16 = -I/usr/include/ImageMagick-6 -I/usr/include/libxml2 = -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -MMD -MF = deps/.d -MP -I/usr/include/p11-kit-1 -g -O2 -DGNUSTEP = -Wl,-znocombreloc -L/usr/lib -L/usr/lib \ >>>>>>> -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o = window.o charset.o coding.o category.o ccl.o character.o chartab.o = bidi.o cm.o term.o terminal.o xfaces.o dbusbind.o emacs.o keyboard.o = macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o = minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o = search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o = floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o = process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o = intervals.o textprop.o composite.o xml.o profiler.o decompress.o = fontset.o fringe.o image.o nsterm.o nsfns.o nsmenu.o nsselect.o = nsimage.o nsfont.o terminfo.o lastfile.o ../lib/libgnu.a = -lgnustep-gui -lgnustep-base -lobjc -lpthread -lasound -lrsvg-2 -lm = -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo = -lMagickWand-6.Q16HDRI -lMagickCore-6.Q16HDRI -lacl -lrt -ldbus-1 = -lxml2 -lgpm -lncurses -lgnutls -lpthread -lm -lz >>>>>>> /usr/bin/ld: warning: libobjc.so.4, needed by = /usr/lib/libgnustep-gui.so, may conflict with libobjc.so.4.6 >>>>>>> nsterm.o: In function `-[EmacsView changeFont:]': >>>>>>> ~/abs/emacs/ns/emacs-24.3.92/src/nsterm.m:5015: undefined = reference to `macfont_get_nsctfont' >>>>>>> nsfns.o: In function `Fns_popup_font_panel': >>>>>>> ~/abs/emacs/ns/emacs-24.3.92/src/nsfns.m:1391: undefined = reference to `macfont_get_nsctfont' >>>>>>>=20 >>>>>>> Regards >>>>>>>=20 >>>>>>> At Sat, 12 Jul 2014 18:30:51 +0200, >>>>>>> Jan Dj=E4rv wrote: >>>>>>>>=20 >>>>>>>> Hello. >>>>>>>>=20 >>>>>>>> A quick net search suggests that some GNUStep versions require = -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e. >>>>>>>> % CFLAGS=3D'-g -O2 -DGNUSTEP ./configure ... >>>>>>>>=20 >>>>>>>> Jan D. >>>>>>>>=20 >>>>>>>> 11 jul 2014 kl. 21:58 skrev andres.ramirez = : >>>>>>>>=20 >>>>>>>>> Hi Jan. >>>>>>>>>=20 >>>>>>>>> $ gcc --version >>>>>>>>> gcc (GCC) 4.9.0 20140604 (prerelease) >>>>>>>>>=20 >>>>>>>>> compiling with gcc the ns port; >>>>>>>>> after installing with the package manager (no dev versions): >>>>>>>>> gcc-objc >>>>>>>>> gnustep-libobjc2-git >>>>>>>>> gnustep-make 2.6.6-1 >>>>>>>>> gnustep-base 1.24.6-1 >>>>>>>>> gnustep-gui 0.24.0-2 >>>>>>>>>=20 >>>>>>>>> with ./configure --with-ns = --with-gnustep-conf=3D/etc/GNUstep/GNUstep.conf >>>>>>>>>=20 >>>>>>>>> checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... no >>>>>>>>> checking AppKit/AppKit.h usability... no >>>>>>>>> checking AppKit/AppKit.h presence... yes >>>>>>>>> configure: WARNING: AppKit/AppKit.h: present but cannot be = compiled >>>>>>>>> configure: WARNING: AppKit/AppKit.h: check for missing = prerequisite headers? >>>>>>>>> configure: WARNING: AppKit/AppKit.h: see the Autoconf = documentation >>>>>>>>> configure: WARNING: AppKit/AppKit.h: section "Present But = Cannot Be Compiled" >>>>>>>>> configure: WARNING: AppKit/AppKit.h: proceeding with the = compiler's result >>>>>>>>> checking for AppKit/AppKit.h... no >>>>>>>>> configure: error: `--with-ns' was specified, but the include >>>>>>>>> files are missing or cannot be compiled. >>>>>>>>>=20 >>>>>>>>> checking the cotent of config.log this is found: >>>>>>>>> configure:10234: result: no >>>>>>>>> configure:10246: checking AppKit/AppKit.h usability >>>>>>>>> configure:10246: gcc -std=3Dgnu99 -c -g3 -O2 -x objective-c = -I/usr/include -I/usr/include -x objective-c -I/usr/include = -I/usr/include conftest.c >&5 >>>>>>>>> In file included from /usr/include/AppKit/NSPanel.h:34:0, >>>>>>>>> from /usr/include/AppKit/NSColorPanel.h:39, >>>>>>>>> from /usr/include/AppKit/AppKit.h:63, >>>>>>>>> from conftest.c:101: >>>>>>>>> /usr/include/AppKit/NSWindow.h:876:1: error: cannot find = protocol declaration for 'NSWindowDelegate' >>>>>>>>> @interface NSObject (NSWindowDelegateAdditions) = >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>> Any ideas?. Regards >>>>>>>>>=20 >>>>>>>>> At Fri, 11 Jul 2014 10:06:37 +0200, >>>>>>>>> Jan Dj=E4rv wrote: >>>>>>>>>>=20 >>>>>>>>>> Hello. >>>>>>>>>>=20 >>>>>>>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez = : >>>>>>>>>>=20 >>>>>>>>>>> Hi Guys. Following this thread. >>>>>>>>>>>=20 >>>>>>>>>>> I tried to compile the ns-port on my distro (archlinux) >>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>> nsterm.m:5015: error: undefined reference to = 'macfont_get_nsctfont' >>>>>>>>>>> nsfns.m:1391: error: undefined reference to = 'macfont_get_nsctfont' >>>>>>>>>>> clang: error: linker command failed with exit code 1 (use -v = to see invocation) >>>>>>>>>>> Makefile:664: recipe for target 'temacs' failed >>>>>>>>>>> make[1]: *** [temacs] Error 1 >>>>>>>>>>> make[1]: Leaving directory = '/home/aramirez/abs/emacs/ns/emacs-24.3.92/src' >>>>>>>>>>> Makefile:382: recipe for target 'src' failed >>>>>>>>>>> make: *** [src] Error 2 >>>>>>>>>>>=20 >>>>>>>>>>> Any idea how to solve this?. >>>>>>>>>>=20 >>>>>>>>>> The clang preprocessor seems to be broken. Use gcc. >>>>>>>>>>=20 >>>>>>>>>> Jan D. >>>>>>>>>>=20 >>>>>>>>=20 >>>>>>=20 >>>>=20 >>=20