media-gfx/imagemagick-7.0.11.7 fails to build with checking for glutCheckLoop in -lglut... no configure: error: cannot find OpenGL+FreeGLUT development files Reproducible: Always Steps to Reproduce: 1. try to update system with imagemagick installed OR install imagemagick, I assume? Actual Results: fails to to build (check phase) Expected Results: should build, like prior package I'm assuming some kind of dependency issue? build log: * Package: media-libs/libcaca-0.99_beta19-r1 * Repository: gentoo * Maintainer: media-video@gentoo.org * USE: X abi_x86_32 abi_x86_64 amd64 elibc_glibc kernel_linux ncurses opengl truetype userland_GNU * FEATURES: ccache network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking libcaca-0.99.beta19.tar.gz to /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work >>> Source unpacked in /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work >>> Preparing source in /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19 ... * Applying libcaca-0.99_beta18-latex_hacks.patch ... [ ok ] * Applying libcaca-0.99_beta18-fix-tests.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19' ... * Running 'libtoolize --install --copy --force --automake' ... [ ok ] * Running 'aclocal' ... [ ok ] * Running 'autoconf --force' ... [ ok ] * Running 'autoheader' ... [ ok ] * Running 'automake --add-missing --copy --foreign --force-missing' ... [ ok ] * Running elibtoolize in: libcaca-0.99.beta19/ * Running elibtoolize in: libcaca-0.99.beta19/.auto/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.3 patch ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19 ... * abi_x86_32.x86: running multilib-minimal_abi_src_configure * econf: updating libcaca-0.99.beta19/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libcaca-0.99.beta19/.auto/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libcaca-0.99.beta19/.auto/config.guess with /usr/share/gnuconfig/config.guess * econf: updating libcaca-0.99.beta19/config.guess with /usr/share/gnuconfig/config.guess /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib --disable-static --disable-slang --enable-ncurses --enable-x11 --with-x --x-libraries=/usr/lib --enable-gl --disable-cxx --disable-imlib2 --disable-cppunit --disable-java --disable-ruby --disable-python --disable-csharp --disable-doc configure: loading site script /usr/share/config.site checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '250' is supported by ustar format... yes checking whether GID '250' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports the include directive... yes (GNU style) checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc -m32 accepts -g... yes checking for x86_64-pc-linux-gnu-gcc -m32 option to accept ISO C89... none needed checking whether x86_64-pc-linux-gnu-gcc -m32 understands -c and -o together... yes checking dependency style of x86_64-pc-linux-gnu-gcc -m32... none checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -m32 -E checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ -m32 accepts -g... yes checking dependency style of x86_64-pc-linux-gnu-g++ -m32... none checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -m32 -E checking dependency style of ... none checking dependency style of x86_64-pc-linux-gnu-gcc -m32... none checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-pc-linux-gnu-gcc -m32... x86_64-pc-linux-gnu-ld -m elf_i386 checking if the linker (x86_64-pc-linux-gnu-ld -m elf_i386) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... x86_64-pc-linux-gnu-nm checking the name lister (x86_64-pc-linux-gnu-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for x86_64-pc-linux-gnu-ld -m elf_i386 option to reload object files... -r checking for i686-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump checking how to recognize dependent libraries... pass_all checking for i686-pc-linux-gnu-dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for i686-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar checking for archiver @FILE support... @ checking for i686-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking for i686-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking command to parse x86_64-pc-linux-gnu-nm output from x86_64-pc-linux-gnu-gcc -m32 object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for i686-pc-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-pc-linux-gnu-gcc -m32 supports -fno-rtti -fno-exceptions... no checking for x86_64-pc-linux-gnu-gcc -m32 option to produce PIC... -fPIC -DPIC checking if x86_64-pc-linux-gnu-gcc -m32 PIC flag -fPIC -DPIC works... yes checking if x86_64-pc-linux-gnu-gcc -m32 static flag -static works... yes checking if x86_64-pc-linux-gnu-gcc -m32 supports -c -o file.o... yes checking if x86_64-pc-linux-gnu-gcc -m32 supports -c -o file.o... (cached) yes checking whether the x86_64-pc-linux-gnu-gcc -m32 linker (x86_64-pc-linux-gnu-ld -m elf_i386) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -m32 -E checking for ld used by x86_64-pc-linux-gnu-g++ -m32... x86_64-pc-linux-gnu-ld -m elf_i386 checking if the linker (x86_64-pc-linux-gnu-ld -m elf_i386) is GNU ld... yes checking whether the x86_64-pc-linux-gnu-g++ -m32 linker (x86_64-pc-linux-gnu-ld -m elf_i386) supports shared libraries... yes checking for x86_64-pc-linux-gnu-g++ -m32 option to produce PIC... -fPIC -DPIC checking if x86_64-pc-linux-gnu-g++ -m32 PIC flag -fPIC -DPIC works... yes checking if x86_64-pc-linux-gnu-g++ -m32 static flag -static works... yes checking if x86_64-pc-linux-gnu-g++ -m32 supports -c -o file.o... yes checking if x86_64-pc-linux-gnu-g++ -m32 supports -c -o file.o... (cached) yes checking whether the x86_64-pc-linux-gnu-g++ -m32 linker (x86_64-pc-linux-gnu-ld -m elf_i386) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for an ANSI C-conforming const... yes checking for inline... inline checking return type of signal handlers... void checking pkg-config is at least version 0.9.0... yes checking for suffix of libraries... .so.0 checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for dlfcn.h... (cached) yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for signal... yes checking for ioctl... yes checking for snprintf... yes checking for sprintf_s... no checking for vsnprintf... yes checking for vsnprintf_s... no checking for getenv... yes checking for putenv... yes checking for strcasecmp... yes checking for htons... yes checking for usleep... yes checking for gettimeofday... yes checking for atexit... yes checking for getopt_long... yes checking for Sleep... no checking for fsin/fcos... yes checking for fldln2/fxch/fyl2x... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzopen in -lz... yes checking for sin in -lm... yes checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for X... libraries /usr/lib, headers checking for XOpenDisplay in -lX11... yes checking X11/XKBlib.h usability... yes checking X11/XKBlib.h presence... yes checking for X11/XKBlib.h... yes checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking GL/glut.h usability... yes checking GL/glut.h presence... yes checking for GL/glut.h... yes checking for glutCloseFunc in -lglut... no checking for glutMainLoopEvent in -lglut... no checking for glutCheckLoop in -lglut... no configure: error: cannot find OpenGL+FreeGLUT development files !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-abi_x86_32.x86/config.log * ERROR: media-libs/libcaca-0.99_beta19-r1::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 5690: Called multilib-minimal_src_configure * environment, line 4513: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 4766: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 4443: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 4441: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 568: Called multilib-minimal_abi_src_configure * environment, line 4507: Called multilib_src_configure * environment, line 4993: Called econf '--disable-static' '--disable-slang' '--enable-ncurses' '--enable-x11' '--with-x' '--x-libraries=/usr/lib' '--enable-gl' '--disable-cxx' '--disable-imlib2' '--disable-cppunit' '--disable-java' '--disable-ruby' '--disable-python' '--disable-csharp' '--disable-doc' * phase-helpers.sh, line 680: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=media-libs/libcaca-0.99_beta19-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/libcaca-0.99_beta19-r1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info =libcaca-0.99_beta19 * The complete build log is located at '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-abi_x86_32.x86' * S: '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19'
* Package: media-libs/libcaca-0.99_beta19-r1 So this is a libcaca issue rather than imagemagick? This is most likely bug #773478, as a workaround, ensure tree is up to date (emerge --sync), and rebuild freeglut: emerge -1 freeglut If still doesn't work, re-try without ccache in case. (on a side-note for next time, preferably attach the build.log rather than paste in the comment, and also include emerge --info's output) *** This bug has been marked as a duplicate of bug 773478 ***
Thanks for the tips; I tried without ccache first and that seems to have resolved the issue; I can re-build _with_ ccache now too (ie `emerge -1 imagemagick` works fine now too)