[ANNOUNCEMENT] Updated: ImageMagick-6.9.0.0-1 (Emacs problem)

Angelo Graziosi angelo.graziosi@alice.it
Tue Dec 30 21:23:00 GMT 2014



Il 30/12/2014 17:16, Marco Atzeri ha scritto:
> On 12/30/2014 3:20 PM, Angelo Graziosi wrote:
>> Marco Atzeri wrote:
>>> Version 6.9.0.0-1 of
>>>    ImageMagick
>>>    ImageMagick-doc
>>>    libMagickCore6
>>>    libMagick-devel
>>>    perl-Image-Magick
>>>
>>> have been uploaded for cygwin
>>
>> After this upgrade, Emacs fails to build from trunk:
>>
>> [...]
>> Configured for `x86_64-pc-cygwin'.
>>
>>    Where should the build process find the source code?    .
>>    What compiler should emacs be built with?               clang -pipe
>> -Ofast -g0 -fomit-frame-pointer
>>    Should Emacs use the GNU version of malloc?             only before
>> dumping
>>    Should Emacs use a relocating allocator for buffers?    no
>>    Should Emacs use mmap(2) for buffer allocation?         yes
>>    What window system should Emacs use?                    w32
>>    What toolkit should Emacs use?                          none
>>    Where do we find X Windows header files?                Standard dirs
>>    Where do we find X Windows libraries?                   Standard dirs
>>    [...]
>>    Does Emacs use imagemagick?                             yes
>>    [...]
>> -lpng15 -lm -lz -lcairo -lz -lGL -lgobject-2.0 -lffi -lglib-2.0 -lintl
>> -lpcre -lintl -liconv -lpcre -lpixman-1 -lfontconfig -lexpat -lfreetype
>> -lbz2 -lpng15 -lm -lz -lexpat -lfreetype -lbz2 -lz -lEGL -lm -lpthread
>> -lGL -lm -lpthread -lXdamage -lXfixes -lX11-xcb -lxcb-glx -lpng15 -lm
>> -lz -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp
>> -lxml2 -lz -lgdi32 -lm -lgomp -lm -lMagickCore-6.Q16 -ljbig -llcms2 [...]
>> -lgobject-2.0 -lffi -lglib-2.0 -lintl -lpcre -lintl -liconv -lpcre   -lz
>> /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld:
>> impossibile trovare -lMagickCore
>> /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld:
>> impossibile trovare -lMagickCore
> [cut]
>> clang: error: linker (via gcc) command failed with exit code 1 (use -v
>> to see invocation)
>
> it seems clang lost the "-6.Q16" when passing to ld.
> I am not sure it is a ImageMagick package bug; the new format
> is unusual but we already have names with dot before .dll.a
>
> libgdk-x11-2.0.dll.a



Hmm... I don't understand...

I have built Emacs with CLANG since this was added to Cygwin. First on 
Cygwin32 and now on Cygwin64, and it always worked O(other_bugs)... Only 
after the last ImageMagick update the build is broken...

In any case, also GCC seems to have the same problems:

[...]
Configured for `x86_64-pc-cygwin'.

   Where should the build process find the source code?    .
   What compiler should emacs be built with?               gcc 
-std=gnu99 -pipe -Ofast -g0 -fomit-frame-pointer
   Should Emacs use the GNU version of malloc?             only before 
dumping
   Should Emacs use a relocating allocator for buffers?    no
   Should Emacs use mmap(2) for buffer allocation?         yes
   What window system should Emacs use?                    w32
   What toolkit should Emacs use?                          none
   Where do we find X Windows header files?                Standard dirs
   Where do we find X Windows libraries?                   Standard dirs
   Does Emacs use -lXaw3d?                                 no
   Does Emacs use -lXpm?                                   yes
   Does Emacs use -ljpeg?                                  yes
   Does Emacs use -ltiff?                                  yes
   Does Emacs use a gif library?                           yes -lgif
   Does Emacs use a png library?                           yes -lpng15
   Does Emacs use -lrsvg-2?                                no
   Does Emacs use imagemagick?                             yes
   Does Emacs support sound?                               yes
   Does Emacs use -lgpm?                                   no
   Does Emacs use -ldbus?                                  yes
   Does Emacs use -lgconf?                                 no
   Does Emacs use GSettings?                               no
   Does Emacs use a file notification library?             yes -lgio (gfile)
   Does Emacs use access control lists?                    yes
   Does Emacs use -lselinux?                               no
   Does Emacs use -lgnutls?                                yes
   Does Emacs use -lxml2?                                  yes
   Does Emacs use -lfreetype?                              no
   Does Emacs use -lm17n-flt?                              no
   Does Emacs use -lotf?                                   no
   Does Emacs use -lxft?                                   no
   Does Emacs directly use zlib?                           yes
   Does Emacs use toolkit scroll bars?                     yes
[...]
-lpcre -lintl -liconv -lpcre -lpixman-1 -lfontconfig -lexpat -lfreetype 
-lbz2 -lpng15 -lm -lz -lexpat -lfreetype -lbz2 -lz -lEGL -lm -lpthread 
-lGL -lm -lpthread -lXdamage -lXfixes -lX11-xcb -lxcb-glx -lpng15 -lm 
-lz -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp 
-lxml2 -lz -lgdi32 -lm -lgomp -lm       -ldbus-1      -lxml2 -lz -llzma 
-liconv -lm     -lncurses        -lgnutls -lz -lintl -liconv -lp11-kit 
-lgmp -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit -lz   -lgio-2.0 -lz 
-lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl -lpcre -lintl 
-liconv -lpcre   -lz
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: 
impossibile trovare -lMagickCore
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: 
impossibile trovare -lMagickCore
collect2: error: ld returned 1 exit status
Makefile:689: set di istruzioni per l'obiettivo "temacs.exe" non riuscito
make[1]: *** [temacs.exe] Errore 1
make[1]: uscita dalla directory "/tmp/emacs-master/src"
Makefile:384: set di istruzioni per l'obiettivo "src" non riuscito
make: *** [src] Errore 2

Sure it isn't a packaging bug? I see that now ImageMagick has missed 
/usr/lib/libMagickCore.dll.a... and this

cd /usr/lib
ln -sf libMagickCore-6.Q16.dll.a libMagickCore.dll.a

seem to fix the build (both with CLANG and GCC)


Ciao,
  Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list