[SOLVED] Compile error in git master version

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
kwash
Posts: 17
Joined: 2016-04-30T20:47:29-07:00
Authentication code: 1151

[SOLVED] Compile error in git master version

Post by kwash »

I'm getting the following compile error when trying to compile the git master version in linux x86_64:

Code: Select all

CCLD     MagickCore/libMagickCore-7.Q32HDRI.la
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-effect.o:(.data.rel.local+0x0): multiple definition of `accelerateKernels2'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x0): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-effect.o:(.data.rel.local+0x8): multiple definition of `accelerateKernels'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x8): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-enhance.o:(.data.rel.local+0x0): multiple definition of `accelerateKernels2'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x0): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-enhance.o:(.data.rel.local+0x8): multiple definition of `accelerateKernels'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x8): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-fx.o:(.data.rel.local+0x0): multiple definition of `accelerateKernels2'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x0): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-fx.o:(.data.rel.local+0x8): multiple definition of `accelerateKernels'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x8): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-resize.o:(.data.rel.local+0x0): multiple definition of `accelerateKernels2'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x0): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-resize.o:(.data.rel.local+0x8): multiple definition of `accelerateKernels'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x8): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-statistic.o:(.data.rel.local+0x0): multiple definition of `accelerateKernels2'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x0): first defined here
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-statistic.o:(.data.rel.local+0x8): multiple definition of `accelerateKernels'
MagickCore/.libs/MagickCore_libMagickCore_7_Q32HDRI_la-accelerate.o:(.data.rel.local+0x8): first defined here
collect2: error: ld returned 1 exit status
Makefile:6004: recipe for target 'MagickCore/libMagickCore-7.Q32HDRI.la' failed
make[1]: *** [MagickCore/libMagickCore-7.Q32HDRI.la] Error 1
make[1]: Leaving directory '/storage/linux/abs/imagemagick-full-git/src/imagemagick-full-git'
Makefile:5129: recipe for target 'all' failed
make: *** [all] Error 2
This error seems to be introduced by the following git commit: http://git.imagemagick.org/repos/ImageM ... 3b30a5dc3e

It was compiling perfectly a few commits before this one.

Commands used:

Code: Select all

   CPPFLAGS="-I/usr/include/FLIF" \
   ./configure \
           --prefix=/usr \
           --sysconfdir=/etc \
           --enable-static=no \
           --enable-shared=yes \
           --enable-fast-install=yes \
           --enable-openmp \
           --enable-opencl \
           --enable-largefile \
           --enable-cipher \
           --enable-hdri \
           --enable-hugepages \
           --enable-docs \
           --disable-delegate-build \
           --with-threads \
           --with-modules \
           --with-quantum-depth=32 \
           --with-magick-plus-plus \
           --with-perl \
           --with-perl-options="INSTALLDIRS=vendor" \
           --with-jemalloc \
           --with-umem \
           --with-bzlib \
           --with-x \
           --with-zlib \
           --with-autotrace \
           --without-dps \
           --with-fftw \
           --with-flif \
           --with-fpx \
           --with-djvu \
           --with-fontconfig \
           --with-freetype \
           --with-raqm \
           --with-gslib \
           --with-gvc \
           --with-jbig \
           --with-jpeg \
           --with-lcms \
           --with-openjp2 \
           --with-lqr \
           --with-lzma \
           --with-openexr \
           --with-pango \
           --with-png \
           --with-rsvg \
           --with-tiff \
           --with-webp \
           --with-wmf \
           --with-xml \
           --with-dejavu-font-dir="/usr/share/fonts/TTF" \
           --with-gs-font-dir="/usr/share/fonts/Type1" \
           --with-windows-font-dir="/usr/share/fonts/WindowsFonts"
           
           make
gcc version used:

Code: Select all

$ gcc --version
gcc (GCC) 6.1.1 20160501
Last edited by kwash on 2016-05-29T13:50:11-07:00, edited 1 time in total.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Compile error in git master version

Post by dlemstra »

Can you give it another try? I moved the OpenCL kernels to a separate file.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
kwash
Posts: 17
Joined: 2016-04-30T20:47:29-07:00
Authentication code: 1151

Re: Compile error in git master version

Post by kwash »

Your changes fixed it. I could successfully compile IM git master 7.0.1.7.r10924.g18107aa.

Thank you for the support!
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: [SOLVED] Compile error in git master version

Post by dlemstra »

Thanks for reporting it so quickly :)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply