unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Building Emacs for GNUstep
@ 2014-07-09  2:25 Stefan Monnier
  2014-07-09  6:47 ` Dmitry Antipov
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Stefan Monnier @ 2014-07-09  2:25 UTC (permalink / raw)
  To: emacs-devel


I just tried to build Emacs for GNUstep under Debian (from trunk).
The configure and build worked smoothly, but when I try to run the
executable I get a seg-fault:

   Program received signal SIGSEGV, Segmentation fault.
   0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
   (gdb) bt
   #0  0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
   #1  0x081e8028 in x_set_window_size (f=0x877a0d0, change_grav=142057680, 
       width=14, height=70, pixelwise=120) at nsterm.m:1382
   #2  0x00000000 in ?? ()
   
   Lisp Backtrace:
   "x-create-frame" (0xffffcb28)
   "x-create-frame-with-faces" (0xffffccb8)
   "make-frame" (0xffffce48)
   "frame-initialize" (0xffffcfd8)
   "command-line" (0xffffd1ac)
   "normal-top-level" (0xffffd310)
   (gdb)

Any idea what might be going on?


        Stefan



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  2:25 Building Emacs for GNUstep Stefan Monnier
@ 2014-07-09  6:47 ` Dmitry Antipov
  2014-07-10  7:09   ` Jan Djärv
  2014-07-10 22:12   ` andres.ramirez
  2014-07-09  8:12 ` martin rudalics
  2014-07-09  9:34 ` Jan Djärv
  2 siblings, 2 replies; 25+ messages in thread
From: Dmitry Antipov @ 2014-07-09  6:47 UTC (permalink / raw)
  To: Stefan Monnier, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

On 07/09/2014 06:25 AM, Stefan Monnier wrote:

> I just tried to build Emacs for GNUstep under Debian (from trunk).
> The configure and build worked smoothly, but when I try to run the
> executable I get a seg-fault:
>
>     Program received signal SIGSEGV, Segmentation fault.
>     0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
>     (gdb) bt
>     #0  0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
>     #1  0x081e8028 in x_set_window_size (f=0x877a0d0, change_grav=142057680,
>         width=14, height=70, pixelwise=120) at nsterm.m:1382
>     #2  0x00000000 in ?? ()
>
>     Lisp Backtrace:
>     "x-create-frame" (0xffffcb28)
>     "x-create-frame-with-faces" (0xffffccb8)
>     "make-frame" (0xffffce48)
>     "frame-initialize" (0xffffcfd8)
>     "command-line" (0xffffd1ac)
>     "normal-top-level" (0xffffd310)
>     (gdb)
>
> Any idea what might be going on?

Hm... I was able to run, but with the very miserable results
(see screenshot) - text rendering makes Emacs unusable.

Fedora 20 x86_64, stock GNUstep packages:

gnustep-gui-0.23.1-6.fc20.x86_64
gnustep-back-0.23.0-5.fc20.x86_64
gnustep-base-libs-1.24.4-8.fc20.x86_64
gnustep-gui-libs-0.23.1-6.fc20.x86_64
gnustep-base-devel-1.24.4-8.fc20.x86_64
gnustep-filesystem-2.6.6-2.fc20.x86_64
gnustep-base-1.24.4-8.fc20.x86_64
gnustep-make-2.6.6-2.fc20.x86_64
gnustep-gui-devel-0.23.1-6.fc20.x86_64

Dmitry


[-- Attachment #2: gnustep.png --]
[-- Type: image/png, Size: 24704 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  2:25 Building Emacs for GNUstep Stefan Monnier
  2014-07-09  6:47 ` Dmitry Antipov
@ 2014-07-09  8:12 ` martin rudalics
  2014-07-09 13:15   ` Stefan Monnier
  2014-07-09  9:34 ` Jan Djärv
  2 siblings, 1 reply; 25+ messages in thread
From: martin rudalics @ 2014-07-09  8:12 UTC (permalink / raw)
  To: Stefan Monnier, emacs-devel

 > I just tried to build Emacs for GNUstep under Debian (from trunk).

When I try to do that make complains about a missing
/usr/local/include/GNUstep.  Can a kind soul please tell me which
package(s) I have to install?

Thanks, martin



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  2:25 Building Emacs for GNUstep Stefan Monnier
  2014-07-09  6:47 ` Dmitry Antipov
  2014-07-09  8:12 ` martin rudalics
@ 2014-07-09  9:34 ` Jan Djärv
  2014-07-10 22:23   ` Stefan Monnier
  2 siblings, 1 reply; 25+ messages in thread
From: Jan Djärv @ 2014-07-09  9:34 UTC (permalink / raw)
  To: Stefan Monnier, emacs-devel

Hi.

2014-07-09 04:25, Stefan Monnier skrev:
>
> I just tried to build Emacs for GNUstep under Debian (from trunk).
> The configure and build worked smoothly, but when I try to run the
> executable I get a seg-fault:
>
>     Program received signal SIGSEGV, Segmentation fault.
>     0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
>     (gdb) bt
>     #0  0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
>     #1  0x081e8028 in x_set_window_size (f=0x877a0d0, change_grav=142057680,
>         width=14, height=70, pixelwise=120) at nsterm.m:1382
>     #2  0x00000000 in ?? ()
>
>     Lisp Backtrace:
>     "x-create-frame" (0xffffcb28)
>     "x-create-frame-with-faces" (0xffffccb8)
>     "make-frame" (0xffffce48)
>     "frame-initialize" (0xffffcfd8)
>     "command-line" (0xffffd1ac)
>     "normal-top-level" (0xffffd310)
>     (gdb)
>
> Any idea what might be going on?
>

This usually indicates that an object has been deallocated.
I.e. x_set_window_size is being called on a frame where the NSView is 
deallocated or garbage (not null, there is a test for that).
Your backtrace indicates that view is the culprit.  In gdb, you can
(gdb) po view
to print it as an Obj-C object.

Is it indeed a live frame?  You did start nextstep/Emacs.app/Emacs, and not 
src/emacs?

I can't reproduce it here (trunk or 24).
I have found that GNUStep behaves very different depending on version and on 
what GNU/Linux distribution you are using.  For example, on Fedora and Mint, I 
have the same GNUStep version.  But Fedora has numerous font related problems 
that does not exist on Mint, but Mint sometimes produce the wrong font metrics 
for characters, something Fedora does not.

	Jan D.






^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  8:12 ` martin rudalics
@ 2014-07-09 13:15   ` Stefan Monnier
  2014-07-09 14:17     ` martin rudalics
  0 siblings, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2014-07-09 13:15 UTC (permalink / raw)
  To: martin rudalics; +Cc: emacs-devel

>> I just tried to build Emacs for GNUstep under Debian (from trunk).
> When I try to do that make complains about a missing
> /usr/local/include/GNUstep.  Can a kind soul please tell me which
> package(s) I have to install?

I think `gnustep-devel' is all that's needed.  I also installed
`gnustep', but I don't think that was necessary.


        Stefan



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09 13:15   ` Stefan Monnier
@ 2014-07-09 14:17     ` martin rudalics
  2014-07-09 17:47       ` Stefan Monnier
  0 siblings, 1 reply; 25+ messages in thread
From: martin rudalics @ 2014-07-09 14:17 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

 > When I try to do that make complains about a missing
 > /usr/local/include/GNUstep.  Can a kind soul please tell me which
 > package(s) I have to install?
 >
 > I think `gnustep-devel' is all that's needed.  I also installed
 > `gnustep', but I don't think that was necessary.

I have them both and also gnustep-core-devel.  But /usr/local/include
is empty here.

martin



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09 14:17     ` martin rudalics
@ 2014-07-09 17:47       ` Stefan Monnier
  2014-07-10  7:45         ` martin rudalics
  0 siblings, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2014-07-09 17:47 UTC (permalink / raw)
  To: martin rudalics; +Cc: emacs-devel

> I have them both and also gnustep-core-devel.  But /usr/local/include
> is empty here.

The includes are in /usr/include/GNUstep, /usr/local is not involved.
The configure.ac script finds the location of the includes via the
/etc/GNUstep/GNUstep.conf file.


        Stefan



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  6:47 ` Dmitry Antipov
@ 2014-07-10  7:09   ` Jan Djärv
  2014-07-10 22:12   ` andres.ramirez
  1 sibling, 0 replies; 25+ messages in thread
From: Jan Djärv @ 2014-07-10  7:09 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Stefan Monnier, emacs-devel

Hello.

9 jul 2014 kl. 08:47 skrev Dmitry Antipov <dmantipov@yandex.ru>:

> On 07/09/2014 06:25 AM, Stefan Monnier wrote:
> 
>> I just tried to build Emacs for GNUstep under Debian (from trunk).
>> The configure and build worked smoothly, but when I try to run the
>> executable I get a seg-fault:
>> 
>>    Program received signal SIGSEGV, Segmentation fault.
>>    0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
>>    (gdb) bt
>>    #0  0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
>>    #1  0x081e8028 in x_set_window_size (f=0x877a0d0, change_grav=142057680,
>>        width=14, height=70, pixelwise=120) at nsterm.m:1382
>>    #2  0x00000000 in ?? ()
>> 
>>    Lisp Backtrace:
>>    "x-create-frame" (0xffffcb28)
>>    "x-create-frame-with-faces" (0xffffccb8)
>>    "make-frame" (0xffffce48)
>>    "frame-initialize" (0xffffcfd8)
>>    "command-line" (0xffffd1ac)
>>    "normal-top-level" (0xffffd310)
>>    (gdb)
>> 
>> Any idea what might be going on?
> 
> Hm... I was able to run, but with the very miserable results
> (see screenshot) - text rendering makes Emacs unusable.
> 

It looks like this is a Fedora specific problem.  I'll take a look.
Unfortunately GNUStep is an unstable moving target, and the movement is only sometimes forward.

	Jan D.

> Fedora 20 x86_64, stock GNUstep packages:
> 
> gnustep-gui-0.23.1-6.fc20.x86_64
> gnustep-back-0.23.0-5.fc20.x86_64
> gnustep-base-libs-1.24.4-8.fc20.x86_64
> gnustep-gui-libs-0.23.1-6.fc20.x86_64
> gnustep-base-devel-1.24.4-8.fc20.x86_64
> gnustep-filesystem-2.6.6-2.fc20.x86_64
> gnustep-base-1.24.4-8.fc20.x86_64
> gnustep-make-2.6.6-2.fc20.x86_64
> gnustep-gui-devel-0.23.1-6.fc20.x86_64
> 
> Dmitry
> 
> <gnustep.png>




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09 17:47       ` Stefan Monnier
@ 2014-07-10  7:45         ` martin rudalics
  2014-07-11  3:07           ` Glenn Morris
  0 siblings, 1 reply; 25+ messages in thread
From: martin rudalics @ 2014-07-10  7:45 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

 > The includes are in /usr/include/GNUstep, /usr/local is not involved.

That's what I would think too.  But here make eventually fails (with
German locales) as:

make[1]: Entering directory `/home/martin/emacs/release/obj-ns/src'
gcc -std=gnu99 -c -Demacs -I. -I/home/martin/emacs/release/src -I../lib
-I/home/martin/emacs/release/src/../lib -D_REENTRANT -fPIC
-fno-strict-aliasing -I/usr/include/GNUstep -I/usr/local/include/GNUstep
-MMD -MF deps/dispnew.d -MP -W -Wabi -Waddress -Wall -Warray-bounds
-Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align
-Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch
-Wcpp -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization
-Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels
-Wenum-compare -Wextra -Wformat-contains-nul -Wformat-extra-args
-Wformat-security -Wformat-y2k -Wformat-zero-length -Wformat=2
-Wfree-nonheap-object -Wignored-qualifiers -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Winit-self
-Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wmain
-Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations
-Wmissing-field-initializers -Wmissing-format-attribute
-Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type
-Wmissing-prototypes -Wmudflap -Wmultichar -Wnarrowing -Wnonnull
-Wnormalized=nfc -Wold-style-declaration -Wold-style-definition
-Woverflow -Woverride-init -Wpacked -Wpacked-bitfield-compat
-Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast
-Wpragmas -Wreturn-type -Wsequence-point -Wstrict-aliasing
-Wstrict-prototypes -Wsuggest-attribute=const
-Wsuggest-attribute=noreturn -Wswitch -Wtrampolines -Wtrigraphs
-Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused
-Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function
-Wunused-label -Wunused-local-typedefs -Wunused-macros
-Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable
-Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var
-Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare
-Wno-type-limits -Wno-switch -Wno-unused-parameter
-Wno-format-nonliteral -Wno-logical-op -fdiagnostics-show-option
-funit-at-a-time -Werror -O0 -g3
/home/martin/emacs/release/src/dispnew.c
cc1: error: /usr/local/include/GNUstep: Datei oder Verzeichnis nicht gefunden [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [dispnew.o] Fehler 1
make[1]: Leaving directory `/home/martin/emacs/release/obj-ns/src'
make: *** [src] Fehler 2

 > The configure.ac script finds the location of the includes via the
 > /etc/GNUstep/GNUstep.conf file.

Apparently.  Mine has plenty of /usr/local/ entries.

martin



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  6:47 ` Dmitry Antipov
  2014-07-10  7:09   ` Jan Djärv
@ 2014-07-10 22:12   ` andres.ramirez
  2014-07-11  8:06     ` Jan Djärv
  1 sibling, 1 reply; 25+ messages in thread
From: andres.ramirez @ 2014-07-10 22:12 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Stefan Monnier, emacs-devel

Hi Guys. Following this thread.

I tried to compile the ns-port on my distro (archlinux)

uname -a
Linux tiahua 3.15.3-1-ARCH #1 SMP PREEMPT Tue Jul 1 07:32:45 CEST 2014 x86_64 GNU/Linux

after installing:
gnustep-libobjc2-clang-svn
gnustep-make-clang-svn
gnustep-base-clang-svn
gnustep-gui-clang-svn (AppKit.h)

then I did :
 ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf

Then I did:
make 

With this output:
clang -Demacs  -I. -I. -I../lib -I./../lib    -D_REENTRANT -fPIC -fno-strict-aliasing -I/usr/System/Library/Headers -I/usr/Local/Library/Headers -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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/incl
 ude/p11-kit-1   -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign  -g3 -O2  -Wl,-znocombreloc  -L/usr/System/Library/Libraries -L/usr/Local/Library/Libraries \
  -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
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

Any idea how to solve this?.

Regards
At Wed, 09 Jul 2014 10:47:30 +0400,
Dmitry Antipov wrote:
> 
> On 07/09/2014 06:25 AM, Stefan Monnier wrote:
> 
> > I just tried to build Emacs for GNUstep under Debian (from trunk).
> > The configure and build worked smoothly, but when I try to run the
> > executable I get a seg-fault:
> >
> >     Program received signal SIGSEGV, Segmentation fault.
> >     0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
> >     (gdb) bt
> >     #0  0xf76e905f in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.4
> >     #1  0x081e8028 in x_set_window_size (f=0x877a0d0, change_grav=142057680,
> >         width=14, height=70, pixelwise=120) at nsterm.m:1382
> >     #2  0x00000000 in ?? ()
> >
> >     Lisp Backtrace:
> >     "x-create-frame" (0xffffcb28)
> >     "x-create-frame-with-faces" (0xffffccb8)
> >     "make-frame" (0xffffce48)
> >     "frame-initialize" (0xffffcfd8)
> >     "command-line" (0xffffd1ac)
> >     "normal-top-level" (0xffffd310)
> >     (gdb)
> >
> > Any idea what might be going on?
> 
> Hm... I was able to run, but with the very miserable results
> (see screenshot) - text rendering makes Emacs unusable.
> 
> Fedora 20 x86_64, stock GNUstep packages:
> 
> gnustep-gui-0.23.1-6.fc20.x86_64
> gnustep-back-0.23.0-5.fc20.x86_64
> gnustep-base-libs-1.24.4-8.fc20.x86_64
> gnustep-gui-libs-0.23.1-6.fc20.x86_64
> gnustep-base-devel-1.24.4-8.fc20.x86_64
> gnustep-filesystem-2.6.6-2.fc20.x86_64
> gnustep-base-1.24.4-8.fc20.x86_64
> gnustep-make-2.6.6-2.fc20.x86_64
> gnustep-gui-devel-0.23.1-6.fc20.x86_64
> 
> Dmitry
> 



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-09  9:34 ` Jan Djärv
@ 2014-07-10 22:23   ` Stefan Monnier
  0 siblings, 0 replies; 25+ messages in thread
From: Stefan Monnier @ 2014-07-10 22:23 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

> I can't reproduce it here (trunk or 24).

OK, I can get it to work now.  It turns out I wasn't starting "emacs -Q"
as I thought, and it seems the crash occurs after loading my ~/.emacs.


        Stefan



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-10  7:45         ` martin rudalics
@ 2014-07-11  3:07           ` Glenn Morris
  2014-07-11 17:59             ` martin rudalics
  0 siblings, 1 reply; 25+ messages in thread
From: Glenn Morris @ 2014-07-11  3:07 UTC (permalink / raw)
  To: martin rudalics; +Cc: Stefan Monnier, emacs-devel

martin rudalics wrote:

> cc1: error: /usr/local/include/GNUstep: Datei oder Verzeichnis nicht gefunden [-Werror]
> cc1: all warnings being treated as errors

Try turning off -Werror?



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-10 22:12   ` andres.ramirez
@ 2014-07-11  8:06     ` Jan Djärv
  2014-07-11 19:58       ` andres.ramirez
  0 siblings, 1 reply; 25+ messages in thread
From: Jan Djärv @ 2014-07-11  8:06 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hello.

11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Guys. Following this thread.
> 
> I tried to compile the ns-port on my distro (archlinux)
> 
> 
> 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
> 
> Any idea how to solve this?.

The clang preprocessor seems to be broken.  Use gcc.

	Jan D.




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-11  3:07           ` Glenn Morris
@ 2014-07-11 17:59             ` martin rudalics
  2014-07-11 18:09               ` Glenn Morris
  0 siblings, 1 reply; 25+ messages in thread
From: martin rudalics @ 2014-07-11 17:59 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Stefan Monnier, emacs-devel

 > Try turning off -Werror?

I switched off all checking now and make succeeds.  The resulting binary
is very sluggish though and crashes every ten minutes on the average.
Is there any help for customizing keybindings of the GNUstep build?

Thanks, martin



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-11 17:59             ` martin rudalics
@ 2014-07-11 18:09               ` Glenn Morris
  0 siblings, 0 replies; 25+ messages in thread
From: Glenn Morris @ 2014-07-11 18:09 UTC (permalink / raw)
  To: martin rudalics; +Cc: Stefan Monnier, emacs-devel

martin rudalics wrote:

> I switched off all checking now and make succeeds.  The resulting binary
> is very sluggish though and crashes every ten minutes on the average.

Frankly I'm not surprised, and doubt this is specific to you (see
etc/TODO entry on GNUstep).

> Is there any help for customizing keybindings of the GNUstep build?

Sorry, no idea.



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-11  8:06     ` Jan Djärv
@ 2014-07-11 19:58       ` andres.ramirez
  2014-07-12 16:30         ` Jan Djärv
  0 siblings, 1 reply; 25+ messages in thread
From: andres.ramirez @ 2014-07-11 19:58 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hi Jan.

$ gcc --version
gcc (GCC) 4.9.0 20140604 (prerelease)

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

with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf

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.

checking the cotent of config.log this is found:
configure:10234: result: no
configure:10246: checking AppKit/AppKit.h usability
configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>


Any ideas?. Regards

At Fri, 11 Jul 2014 10:06:37 +0200,
Jan Djärv wrote:
> 
> Hello.
> 
> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> 
> > Hi Guys. Following this thread.
> > 
> > I tried to compile the ns-port on my distro (archlinux)
> > 
> > 
> > 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
> > 
> > Any idea how to solve this?.
> 
> The clang preprocessor seems to be broken.  Use gcc.
> 
> 	Jan D.
> 



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-11 19:58       ` andres.ramirez
@ 2014-07-12 16:30         ` Jan Djärv
  2014-07-13  4:37           ` andres.ramirez
  0 siblings, 1 reply; 25+ messages in thread
From: Jan Djärv @ 2014-07-12 16:30 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hello.

A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
% CFLAGS='-g -O2 -DGNUSTEP ./configure ...

	Jan D.

11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Jan.
> 
> $ gcc --version
> gcc (GCC) 4.9.0 20140604 (prerelease)
> 
> 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
> 
> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> 
> 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.
> 
> checking the cotent of config.log this is found:
> configure:10234: result: no
> configure:10246: checking AppKit/AppKit.h usability
> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
> 
> 
> Any ideas?. Regards
> 
> At Fri, 11 Jul 2014 10:06:37 +0200,
> Jan Djärv wrote:
>> 
>> Hello.
>> 
>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>> 
>>> Hi Guys. Following this thread.
>>> 
>>> I tried to compile the ns-port on my distro (archlinux)
>>> 
>>> 
>>> 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
>>> 
>>> Any idea how to solve this?.
>> 
>> The clang preprocessor seems to be broken.  Use gcc.
>> 
>> 	Jan D.
>> 




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-12 16:30         ` Jan Djärv
@ 2014-07-13  4:37           ` andres.ramirez
  2014-07-13  9:08             ` Jan Djärv
  0 siblings, 1 reply; 25+ messages in thread
From: andres.ramirez @ 2014-07-13  4:37 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hi Jan.

same problem as with cmake:

gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'

Regards

At Sat, 12 Jul 2014 18:30:51 +0200,
Jan Djärv wrote:
> 
> Hello.
> 
> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
> 
> 	Jan D.
> 
> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> 
> > Hi Jan.
> > 
> > $ gcc --version
> > gcc (GCC) 4.9.0 20140604 (prerelease)
> > 
> > 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
> > 
> > with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> > 
> > 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.
> > 
> > checking the cotent of config.log this is found:
> > configure:10234: result: no
> > configure:10246: checking AppKit/AppKit.h usability
> > configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
> > 
> > 
> > Any ideas?. Regards
> > 
> > At Fri, 11 Jul 2014 10:06:37 +0200,
> > Jan Djärv wrote:
> >> 
> >> Hello.
> >> 
> >> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >> 
> >>> Hi Guys. Following this thread.
> >>> 
> >>> I tried to compile the ns-port on my distro (archlinux)
> >>> 
> >>> 
> >>> 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
> >>> 
> >>> Any idea how to solve this?.
> >> 
> >> The clang preprocessor seems to be broken.  Use gcc.
> >> 
> >> 	Jan D.
> >> 
> 



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-13  4:37           ` andres.ramirez
@ 2014-07-13  9:08             ` Jan Djärv
  2014-07-13 18:15               ` andres.ramirez
  0 siblings, 1 reply; 25+ messages in thread
From: Jan Djärv @ 2014-07-13  9:08 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Did you update trunk?  I fixed those errors there.

	Jan D.

13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Jan.
> 
> same problem as with cmake:
> 
> gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
> 
> Regards
> 
> At Sat, 12 Jul 2014 18:30:51 +0200,
> Jan Djärv wrote:
>> 
>> Hello.
>> 
>> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
>> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
>> 
>> 	Jan D.
>> 
>> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>> 
>>> Hi Jan.
>>> 
>>> $ gcc --version
>>> gcc (GCC) 4.9.0 20140604 (prerelease)
>>> 
>>> 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
>>> 
>>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
>>> 
>>> 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.
>>> 
>>> checking the cotent of config.log this is found:
>>> configure:10234: result: no
>>> configure:10246: checking AppKit/AppKit.h usability
>>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
>>> 
>>> 
>>> Any ideas?. Regards
>>> 
>>> At Fri, 11 Jul 2014 10:06:37 +0200,
>>> Jan Djärv wrote:
>>>> 
>>>> Hello.
>>>> 
>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>> 
>>>>> Hi Guys. Following this thread.
>>>>> 
>>>>> I tried to compile the ns-port on my distro (archlinux)
>>>>> 
>>>>> 
>>>>> 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
>>>>> 
>>>>> Any idea how to solve this?.
>>>> 
>>>> The clang preprocessor seems to be broken.  Use gcc.
>>>> 
>>>> 	Jan D.
>>>> 
>> 




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-13  9:08             ` Jan Djärv
@ 2014-07-13 18:15               ` andres.ramirez
  2014-07-14  6:18                 ` Jan Djärv
  0 siblings, 1 reply; 25+ messages in thread
From: andres.ramirez @ 2014-07-13 18:15 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hi Jan.

It compiled. But now a different issue:
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=<optimized out>, 
    readfds=readfds@entry=0x7fffffffd470, 
    writefds=writefds@entry=0x7fffffffd4f0, exceptfds=exceptfds@entry=0x0, 
    timeout=timeout@entry=0x7fffffffd460, sigmask=sigmask@entry=0x0)
    at nsterm.m:3748
#13 0x00000000005737ef in wait_reading_process_output (
    time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, 
    do_display=true, wait_for_cell=13421442, wait_proc=0x0, just_wait_proc=0)
    at process.c:4593

Regards
At Sun, 13 Jul 2014 11:08:19 +0200,
Jan Djärv wrote:
> 
> Did you update trunk?  I fixed those errors there.
> 
> 	Jan D.
> 
> 13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> 
> > Hi Jan.
> > 
> > same problem as with cmake:
> > 
> > gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
> > 
> > Regards
> > 
> > At Sat, 12 Jul 2014 18:30:51 +0200,
> > Jan Djärv wrote:
> >> 
> >> Hello.
> >> 
> >> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
> >> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
> >> 
> >> 	Jan D.
> >> 
> >> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >> 
> >>> Hi Jan.
> >>> 
> >>> $ gcc --version
> >>> gcc (GCC) 4.9.0 20140604 (prerelease)
> >>> 
> >>> 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
> >>> 
> >>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> >>> 
> >>> 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.
> >>> 
> >>> checking the cotent of config.log this is found:
> >>> configure:10234: result: no
> >>> configure:10246: checking AppKit/AppKit.h usability
> >>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
> >>> 
> >>> 
> >>> Any ideas?. Regards
> >>> 
> >>> At Fri, 11 Jul 2014 10:06:37 +0200,
> >>> Jan Djärv wrote:
> >>>> 
> >>>> Hello.
> >>>> 
> >>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >>>> 
> >>>>> Hi Guys. Following this thread.
> >>>>> 
> >>>>> I tried to compile the ns-port on my distro (archlinux)
> >>>>> 
> >>>>> 
> >>>>> 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
> >>>>> 
> >>>>> Any idea how to solve this?.
> >>>> 
> >>>> The clang preprocessor seems to be broken.  Use gcc.
> >>>> 
> >>>> 	Jan D.
> >>>> 
> >> 
> 



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-13 18:15               ` andres.ramirez
@ 2014-07-14  6:18                 ` Jan Djärv
  2014-07-14  6:34                   ` andres.ramirez
  0 siblings, 1 reply; 25+ messages in thread
From: Jan Djärv @ 2014-07-14  6:18 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hello.

13 jul 2014 kl. 20:15 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Jan.
> 
> It compiled. But now a different issue:

I haven't seen that.  Looks like a GNUStep bug to me.

	Jan D.

> 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=<optimized out>, 
>    readfds=readfds@entry=0x7fffffffd470, 
>    writefds=writefds@entry=0x7fffffffd4f0, exceptfds=exceptfds@entry=0x0, 
>    timeout=timeout@entry=0x7fffffffd460, sigmask=sigmask@entry=0x0)
>    at nsterm.m:3748
> #13 0x00000000005737ef in wait_reading_process_output (
>    time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, 
>    do_display=true, wait_for_cell=13421442, wait_proc=0x0, just_wait_proc=0)
>    at process.c:4593
> 
> Regards
> At Sun, 13 Jul 2014 11:08:19 +0200,
> Jan Djärv wrote:
>> 
>> Did you update trunk?  I fixed those errors there.
>> 
>> 	Jan D.
>> 
>> 13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>> 
>>> Hi Jan.
>>> 
>>> same problem as with cmake:
>>> 
>>> gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
>>> 
>>> Regards
>>> 
>>> At Sat, 12 Jul 2014 18:30:51 +0200,
>>> Jan Djärv wrote:
>>>> 
>>>> Hello.
>>>> 
>>>> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
>>>> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
>>>> 
>>>> 	Jan D.
>>>> 
>>>> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>> 
>>>>> Hi Jan.
>>>>> 
>>>>> $ gcc --version
>>>>> gcc (GCC) 4.9.0 20140604 (prerelease)
>>>>> 
>>>>> 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
>>>>> 
>>>>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
>>>>> 
>>>>> 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.
>>>>> 
>>>>> checking the cotent of config.log this is found:
>>>>> configure:10234: result: no
>>>>> configure:10246: checking AppKit/AppKit.h usability
>>>>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
>>>>> 
>>>>> 
>>>>> Any ideas?. Regards
>>>>> 
>>>>> At Fri, 11 Jul 2014 10:06:37 +0200,
>>>>> Jan Djärv wrote:
>>>>>> 
>>>>>> Hello.
>>>>>> 
>>>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>>>> 
>>>>>>> Hi Guys. Following this thread.
>>>>>>> 
>>>>>>> I tried to compile the ns-port on my distro (archlinux)
>>>>>>> 
>>>>>>> 
>>>>>>> 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
>>>>>>> 
>>>>>>> Any idea how to solve this?.
>>>>>> 
>>>>>> The clang preprocessor seems to be broken.  Use gcc.
>>>>>> 
>>>>>> 	Jan D.
>>>>>> 
>>>> 
>> 




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-14  6:18                 ` Jan Djärv
@ 2014-07-14  6:34                   ` andres.ramirez
  2014-07-14  7:09                     ` Jan Djärv
  0 siblings, 1 reply; 25+ messages in thread
From: andres.ramirez @ 2014-07-14  6:34 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hi Jan.

Could this be related?

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

Regards
At Mon, 14 Jul 2014 08:18:08 +0200,
Jan Djärv wrote:
> 
> Hello.
> 
> 13 jul 2014 kl. 20:15 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> 
> > Hi Jan.
> > 
> > It compiled. But now a different issue:
> 
> I haven't seen that.  Looks like a GNUStep bug to me.
> 
> 	Jan D.
> 
> > 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=<optimized out>, 
> >    readfds=readfds@entry=0x7fffffffd470, 
> >    writefds=writefds@entry=0x7fffffffd4f0, exceptfds=exceptfds@entry=0x0, 
> >    timeout=timeout@entry=0x7fffffffd460, sigmask=sigmask@entry=0x0)
> >    at nsterm.m:3748
> > #13 0x00000000005737ef in wait_reading_process_output (
> >    time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, 
> >    do_display=true, wait_for_cell=13421442, wait_proc=0x0, just_wait_proc=0)
> >    at process.c:4593
> > 
> > Regards
> > At Sun, 13 Jul 2014 11:08:19 +0200,
> > Jan Djärv wrote:
> >> 
> >> Did you update trunk?  I fixed those errors there.
> >> 
> >> 	Jan D.
> >> 
> >> 13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >> 
> >>> Hi Jan.
> >>> 
> >>> same problem as with cmake:
> >>> 
> >>> gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
> >>> 
> >>> Regards
> >>> 
> >>> At Sat, 12 Jul 2014 18:30:51 +0200,
> >>> Jan Djärv wrote:
> >>>> 
> >>>> Hello.
> >>>> 
> >>>> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
> >>>> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
> >>>> 
> >>>> 	Jan D.
> >>>> 
> >>>> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >>>> 
> >>>>> Hi Jan.
> >>>>> 
> >>>>> $ gcc --version
> >>>>> gcc (GCC) 4.9.0 20140604 (prerelease)
> >>>>> 
> >>>>> 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
> >>>>> 
> >>>>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> >>>>> 
> >>>>> 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.
> >>>>> 
> >>>>> checking the cotent of config.log this is found:
> >>>>> configure:10234: result: no
> >>>>> configure:10246: checking AppKit/AppKit.h usability
> >>>>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
> >>>>> 
> >>>>> 
> >>>>> Any ideas?. Regards
> >>>>> 
> >>>>> At Fri, 11 Jul 2014 10:06:37 +0200,
> >>>>> Jan Djärv wrote:
> >>>>>> 
> >>>>>> Hello.
> >>>>>> 
> >>>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >>>>>> 
> >>>>>>> Hi Guys. Following this thread.
> >>>>>>> 
> >>>>>>> I tried to compile the ns-port on my distro (archlinux)
> >>>>>>> 
> >>>>>>> 
> >>>>>>> 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
> >>>>>>> 
> >>>>>>> Any idea how to solve this?.
> >>>>>> 
> >>>>>> The clang preprocessor seems to be broken.  Use gcc.
> >>>>>> 
> >>>>>> 	Jan D.
> >>>>>> 
> >>>> 
> >> 
> 



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-14  6:34                   ` andres.ramirez
@ 2014-07-14  7:09                     ` Jan Djärv
  2014-07-14 19:26                       ` andres.ramirez
  0 siblings, 1 reply; 25+ messages in thread
From: Jan Djärv @ 2014-07-14  7:09 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hi.

14 jul 2014 kl. 08:34 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Jan.
> 
> Could this be related?
> 
> 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
> 

It sure looks like the runtimes are f*cked up.

	Jan D.

> Regards
> At Mon, 14 Jul 2014 08:18:08 +0200,
> Jan Djärv wrote:
>> 
>> Hello.
>> 
>> 13 jul 2014 kl. 20:15 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>> 
>>> Hi Jan.
>>> 
>>> It compiled. But now a different issue:
>> 
>> I haven't seen that.  Looks like a GNUStep bug to me.
>> 
>> 	Jan D.
>> 
>>> 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=<optimized out>, 
>>>   readfds=readfds@entry=0x7fffffffd470, 
>>>   writefds=writefds@entry=0x7fffffffd4f0, exceptfds=exceptfds@entry=0x0, 
>>>   timeout=timeout@entry=0x7fffffffd460, sigmask=sigmask@entry=0x0)
>>>   at nsterm.m:3748
>>> #13 0x00000000005737ef in wait_reading_process_output (
>>>   time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, 
>>>   do_display=true, wait_for_cell=13421442, wait_proc=0x0, just_wait_proc=0)
>>>   at process.c:4593
>>> 
>>> Regards
>>> At Sun, 13 Jul 2014 11:08:19 +0200,
>>> Jan Djärv wrote:
>>>> 
>>>> Did you update trunk?  I fixed those errors there.
>>>> 
>>>> 	Jan D.
>>>> 
>>>> 13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>> 
>>>>> Hi Jan.
>>>>> 
>>>>> same problem as with cmake:
>>>>> 
>>>>> gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
>>>>> 
>>>>> Regards
>>>>> 
>>>>> At Sat, 12 Jul 2014 18:30:51 +0200,
>>>>> Jan Djärv wrote:
>>>>>> 
>>>>>> Hello.
>>>>>> 
>>>>>> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
>>>>>> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
>>>>>> 
>>>>>> 	Jan D.
>>>>>> 
>>>>>> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>>>> 
>>>>>>> Hi Jan.
>>>>>>> 
>>>>>>> $ gcc --version
>>>>>>> gcc (GCC) 4.9.0 20140604 (prerelease)
>>>>>>> 
>>>>>>> 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
>>>>>>> 
>>>>>>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
>>>>>>> 
>>>>>>> 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.
>>>>>>> 
>>>>>>> checking the cotent of config.log this is found:
>>>>>>> configure:10234: result: no
>>>>>>> configure:10246: checking AppKit/AppKit.h usability
>>>>>>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
>>>>>>> 
>>>>>>> 
>>>>>>> Any ideas?. Regards
>>>>>>> 
>>>>>>> At Fri, 11 Jul 2014 10:06:37 +0200,
>>>>>>> Jan Djärv wrote:
>>>>>>>> 
>>>>>>>> Hello.
>>>>>>>> 
>>>>>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>>>>>> 
>>>>>>>>> Hi Guys. Following this thread.
>>>>>>>>> 
>>>>>>>>> I tried to compile the ns-port on my distro (archlinux)
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 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
>>>>>>>>> 
>>>>>>>>> Any idea how to solve this?.
>>>>>>>> 
>>>>>>>> The clang preprocessor seems to be broken.  Use gcc.
>>>>>>>> 
>>>>>>>> 	Jan D.
>>>>>>>> 
>>>>>> 
>>>> 
>> 




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-14  7:09                     ` Jan Djärv
@ 2014-07-14 19:26                       ` andres.ramirez
  2014-07-15  7:30                         ` Jan Djärv
  0 siblings, 1 reply; 25+ messages in thread
From: andres.ramirez @ 2014-07-14 19:26 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

Hi Jan.

It compiles now, with this recipe:

;install:
gcc-objc
gnustep-make 2.6.6-1
gnustep-base 1.24.6-1
gnustep-gui 0.24.0-2

;configure with
 $ CFLAGS='-g -O2 -DGNUSTEP' ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf

; when problem linking -lobjc
 $ sudo ln -s /usr/lib/libobjc.so.4.0.0 /usr/lib/libobjc.so

That is for compilation.

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)"

see pic:

[-- Attachment #2: arch_windowmaker_emacs_ns_port.png --]
[-- Type: image/png, Size: 27529 bytes --]

[-- Attachment #3: Type: text/plain, Size: 10166 bytes --]


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.

Any idea how to improve that?:

Regards
At Mon, 14 Jul 2014 09:09:05 +0200,
Jan Djärv wrote:
> 
> Hi.
> 
> 14 jul 2014 kl. 08:34 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> 
> > Hi Jan.
> > 
> > Could this be related?
> > 
> > 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
> > 
> 
> It sure looks like the runtimes are f*cked up.
> 
> 	Jan D.
> 
> > Regards
> > At Mon, 14 Jul 2014 08:18:08 +0200,
> > Jan Djärv wrote:
> >> 
> >> Hello.
> >> 
> >> 13 jul 2014 kl. 20:15 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >> 
> >>> Hi Jan.
> >>> 
> >>> It compiled. But now a different issue:
> >> 
> >> I haven't seen that.  Looks like a GNUStep bug to me.
> >> 
> >> 	Jan D.
> >> 
> >>> 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=<optimized out>, 
> >>>   readfds=readfds@entry=0x7fffffffd470, 
> >>>   writefds=writefds@entry=0x7fffffffd4f0, exceptfds=exceptfds@entry=0x0, 
> >>>   timeout=timeout@entry=0x7fffffffd460, sigmask=sigmask@entry=0x0)
> >>>   at nsterm.m:3748
> >>> #13 0x00000000005737ef in wait_reading_process_output (
> >>>   time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, 
> >>>   do_display=true, wait_for_cell=13421442, wait_proc=0x0, just_wait_proc=0)
> >>>   at process.c:4593
> >>> 
> >>> Regards
> >>> At Sun, 13 Jul 2014 11:08:19 +0200,
> >>> Jan Djärv wrote:
> >>>> 
> >>>> Did you update trunk?  I fixed those errors there.
> >>>> 
> >>>> 	Jan D.
> >>>> 
> >>>> 13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >>>> 
> >>>>> Hi Jan.
> >>>>> 
> >>>>> same problem as with cmake:
> >>>>> 
> >>>>> gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
> >>>>> 
> >>>>> Regards
> >>>>> 
> >>>>> At Sat, 12 Jul 2014 18:30:51 +0200,
> >>>>> Jan Djärv wrote:
> >>>>>> 
> >>>>>> Hello.
> >>>>>> 
> >>>>>> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
> >>>>>> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
> >>>>>> 
> >>>>>> 	Jan D.
> >>>>>> 
> >>>>>> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >>>>>> 
> >>>>>>> Hi Jan.
> >>>>>>> 
> >>>>>>> $ gcc --version
> >>>>>>> gcc (GCC) 4.9.0 20140604 (prerelease)
> >>>>>>> 
> >>>>>>> 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
> >>>>>>> 
> >>>>>>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> >>>>>>> 
> >>>>>>> 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.
> >>>>>>> 
> >>>>>>> checking the cotent of config.log this is found:
> >>>>>>> configure:10234: result: no
> >>>>>>> configure:10246: checking AppKit/AppKit.h usability
> >>>>>>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
> >>>>>>> 
> >>>>>>> 
> >>>>>>> Any ideas?. Regards
> >>>>>>> 
> >>>>>>> At Fri, 11 Jul 2014 10:06:37 +0200,
> >>>>>>> Jan Djärv wrote:
> >>>>>>>> 
> >>>>>>>> Hello.
> >>>>>>>> 
> >>>>>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
> >>>>>>>> 
> >>>>>>>>> Hi Guys. Following this thread.
> >>>>>>>>> 
> >>>>>>>>> I tried to compile the ns-port on my distro (archlinux)
> >>>>>>>>> 
> >>>>>>>>> 
> >>>>>>>>> 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
> >>>>>>>>> 
> >>>>>>>>> Any idea how to solve this?.
> >>>>>>>> 
> >>>>>>>> The clang preprocessor seems to be broken.  Use gcc.
> >>>>>>>> 
> >>>>>>>> 	Jan D.
> >>>>>>>> 
> >>>>>> 
> >>>> 
> >> 
> 

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Building Emacs for GNUstep
  2014-07-14 19:26                       ` andres.ramirez
@ 2014-07-15  7:30                         ` Jan Djärv
  0 siblings, 0 replies; 25+ messages in thread
From: Jan Djärv @ 2014-07-15  7:30 UTC (permalink / raw)
  To: andres.ramirez; +Cc: Dmitry Antipov, Stefan Monnier, emacs-devel

Hello.

Please file a proper bug report.

	Jan D.

14 jul 2014 kl. 21:26 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:

> Hi Jan.
> 
> It compiles now, with this recipe:
> 
> ;install:
> gcc-objc
> gnustep-make 2.6.6-1
> gnustep-base 1.24.6-1
> gnustep-gui 0.24.0-2
> 
> ;configure with
> $ CFLAGS='-g -O2 -DGNUSTEP' ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
> 
> ; when problem linking -lobjc
> $ sudo ln -s /usr/lib/libobjc.so.4.0.0 /usr/lib/libobjc.so
> 
> That is for compilation.
> 
> 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)"
> 
> see pic:
> <arch_windowmaker_emacs_ns_port.png>
> 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.
> 
> Any idea how to improve that?:
> 
> Regards
> At Mon, 14 Jul 2014 09:09:05 +0200,
> Jan Djärv wrote:
>> 
>> Hi.
>> 
>> 14 jul 2014 kl. 08:34 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>> 
>>> Hi Jan.
>>> 
>>> Could this be related?
>>> 
>>> 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
>>> 
>> 
>> It sure looks like the runtimes are f*cked up.
>> 
>> 	Jan D.
>> 
>>> Regards
>>> At Mon, 14 Jul 2014 08:18:08 +0200,
>>> Jan Djärv wrote:
>>>> 
>>>> Hello.
>>>> 
>>>> 13 jul 2014 kl. 20:15 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>> 
>>>>> Hi Jan.
>>>>> 
>>>>> It compiled. But now a different issue:
>>>> 
>>>> I haven't seen that.  Looks like a GNUStep bug to me.
>>>> 
>>>> 	Jan D.
>>>> 
>>>>> 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=<optimized out>, 
>>>>>  readfds=readfds@entry=0x7fffffffd470, 
>>>>>  writefds=writefds@entry=0x7fffffffd4f0, exceptfds=exceptfds@entry=0x0, 
>>>>>  timeout=timeout@entry=0x7fffffffd460, sigmask=sigmask@entry=0x0)
>>>>>  at nsterm.m:3748
>>>>> #13 0x00000000005737ef in wait_reading_process_output (
>>>>>  time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, 
>>>>>  do_display=true, wait_for_cell=13421442, wait_proc=0x0, just_wait_proc=0)
>>>>>  at process.c:4593
>>>>> 
>>>>> Regards
>>>>> At Sun, 13 Jul 2014 11:08:19 +0200,
>>>>> Jan Djärv wrote:
>>>>>> 
>>>>>> Did you update trunk?  I fixed those errors there.
>>>>>> 
>>>>>> 	Jan D.
>>>>>> 
>>>>>> 13 jul 2014 kl. 06:37 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>>>> 
>>>>>>> Hi Jan.
>>>>>>> 
>>>>>>> same problem as with cmake:
>>>>>>> 
>>>>>>> gcc -std=gnu99 -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=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -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'
>>>>>>> 
>>>>>>> Regards
>>>>>>> 
>>>>>>> At Sat, 12 Jul 2014 18:30:51 +0200,
>>>>>>> Jan Djärv wrote:
>>>>>>>> 
>>>>>>>> Hello.
>>>>>>>> 
>>>>>>>> A quick net search suggests that some GNUStep versions require -DGNUSTEP, so try to add that to CFLAGS when configuring, i.e.
>>>>>>>> % CFLAGS='-g -O2 -DGNUSTEP ./configure ...
>>>>>>>> 
>>>>>>>> 	Jan D.
>>>>>>>> 
>>>>>>>> 11 jul 2014 kl. 21:58 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>>>>>> 
>>>>>>>>> Hi Jan.
>>>>>>>>> 
>>>>>>>>> $ gcc --version
>>>>>>>>> gcc (GCC) 4.9.0 20140604 (prerelease)
>>>>>>>>> 
>>>>>>>>> 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
>>>>>>>>> 
>>>>>>>>> with ./configure --with-ns --with-gnustep-conf=/etc/GNUstep/GNUstep.conf
>>>>>>>>> 
>>>>>>>>> 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.
>>>>>>>>> 
>>>>>>>>> checking the cotent of config.log this is found:
>>>>>>>>> configure:10234: result: no
>>>>>>>>> configure:10246: checking AppKit/AppKit.h usability
>>>>>>>>> configure:10246: gcc -std=gnu99 -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) <NSWindowDelegate>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Any ideas?. Regards
>>>>>>>>> 
>>>>>>>>> At Fri, 11 Jul 2014 10:06:37 +0200,
>>>>>>>>> Jan Djärv wrote:
>>>>>>>>>> 
>>>>>>>>>> Hello.
>>>>>>>>>> 
>>>>>>>>>> 11 jul 2014 kl. 00:12 skrev andres.ramirez <andres.ramirez@kipuamutay.com>:
>>>>>>>>>> 
>>>>>>>>>>> Hi Guys. Following this thread.
>>>>>>>>>>> 
>>>>>>>>>>> I tried to compile the ns-port on my distro (archlinux)
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 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
>>>>>>>>>>> 
>>>>>>>>>>> Any idea how to solve this?.
>>>>>>>>>> 
>>>>>>>>>> The clang preprocessor seems to be broken.  Use gcc.
>>>>>>>>>> 
>>>>>>>>>> 	Jan D.
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> 




^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-07-15  7:30 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09  2:25 Building Emacs for GNUstep Stefan Monnier
2014-07-09  6:47 ` Dmitry Antipov
2014-07-10  7:09   ` Jan Djärv
2014-07-10 22:12   ` andres.ramirez
2014-07-11  8:06     ` Jan Djärv
2014-07-11 19:58       ` andres.ramirez
2014-07-12 16:30         ` Jan Djärv
2014-07-13  4:37           ` andres.ramirez
2014-07-13  9:08             ` Jan Djärv
2014-07-13 18:15               ` andres.ramirez
2014-07-14  6:18                 ` Jan Djärv
2014-07-14  6:34                   ` andres.ramirez
2014-07-14  7:09                     ` Jan Djärv
2014-07-14 19:26                       ` andres.ramirez
2014-07-15  7:30                         ` Jan Djärv
2014-07-09  8:12 ` martin rudalics
2014-07-09 13:15   ` Stefan Monnier
2014-07-09 14:17     ` martin rudalics
2014-07-09 17:47       ` Stefan Monnier
2014-07-10  7:45         ` martin rudalics
2014-07-11  3:07           ` Glenn Morris
2014-07-11 17:59             ` martin rudalics
2014-07-11 18:09               ` Glenn Morris
2014-07-09  9:34 ` Jan Djärv
2014-07-10 22:23   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).