Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740042 - media-libs/coin-4.0.0 fails to compile: include/Inventor/system/gl-headers.h:48:2: error: "don't know how to include gl.h header"
Summary: media-libs/coin-4.0.0 fails to compile: include/Inventor/system/gl-headers.h:...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 08:21 UTC by Agostino Sarubbo
Modified: 2022-01-10 19:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,57.70 KB, text/plain)
2020-09-02 08:21 UTC, Agostino Sarubbo
Details
1-CMakeError.log (1-CMakeError.log,13.60 KB, text/plain)
2020-09-02 08:21 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,55.35 KB, text/plain)
2020-09-02 08:21 UTC, Agostino Sarubbo
Details
clang build log (file_740042.txt,58.13 KB, text/plain)
2021-08-21 07:42 UTC, James Beddek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-02 08:21:03 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/coin-4.0.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-02 08:21:06 UTC
Created attachment 657896 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-02 08:21:07 UTC
Created attachment 657898 [details]
1-CMakeError.log

1-CMakeError.log
Comment 3 Agostino Sarubbo gentoo-dev 2020-09-02 08:21:09 UTC
Created attachment 657900 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 4 Maciej Mrozowski gentoo-dev 2020-09-26 19:36:20 UTC
It's related to:

-- Looking for include file GL/gl.h
-- Looking for include file GL/gl.h - not found
-- Looking for include file GL/glu.h
-- Looking for include file GL/glu.h - not found
-- Looking for include files GL/gl.h, GL/glext.h
-- Looking for include files GL/gl.h, GL/glext.h - not found

Ebuild does pull in DEPEND:

virtual/opengl
virtual/glu

virtual/opengl pulls mesa and mesa stopped pulling libglvnd by default recently (which provides headers).
So this issue will be solved when libglvnd is put behind virtual/opengl instead of mesa, or sth equivalent.

Nevertheless, nothing to do here for me, I'll close this bug once virtual/opengl issue is resolved.
Comment 5 Maciej Mrozowski gentoo-dev 2020-10-14 00:26:22 UTC
mesa[libglvnd] is now forced in profile. While it might be replaced with other solution, it's not a concern of this bug anymore.
Thanks for reporting.
Comment 6 James Beddek 2021-08-21 07:41:51 UTC
Well it looks like this has just transformed into a clang bug? With GCC I can build with no issues however with clang I encounter the same issue as below:

-- Looking for include file GL/gl.h
-- Looking for include file GL/gl.h - not found
-- Looking for include file GL/glu.h
-- Looking for include file GL/glu.h - not found
-- Looking for include files GL/gl.h, GL/glext.h
-- Looking for include files GL/gl.h, GL/glext.h - not found

The file does exist so I'm not sure what's going on here. I hope you don't mind me re-opening this bug.
Comment 7 James Beddek 2021-08-21 07:42:32 UTC
Created attachment 734725 [details]
clang build log
Comment 8 Maciej Mrozowski gentoo-dev 2021-09-16 21:35:59 UTC
Well, I wonder what part of system I would need to build with clang to make it fail on media-libs/coin, building coin alone with clang works for me:

 * coin-4.0.0-src.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking coin-4.0.0-src.tar.gz to /var/tmp/portage/media-libs/coin-4.0.0/work
>>> Source unpacked in /var/tmp/portage/media-libs/coin-4.0.0/work
>>> Preparing source in /var/tmp/portage/media-libs/coin-4.0.0/work/coin ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/coin-4.0.0/work/coin"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/coin-4.0.0/work/coin-4.0.0_build"
 * Applying coin-4.0.0-0001-updated-to-cmake-3.14.patch ...                                                                                                                                                                                                                       [ ok ]
 * Applying coin-4.0.0-0002-cpack.d-is-now-optional.patch ...                                                                                                                                                                                                                     [ ok ]
 * Applying coin-4.0.0-0003-Partially-incorporating-coin4.0.0a-patch-from-gentoo.patch ...                                                                                                                                                                                        [ ok ]
 * Applying coin-4.0.0-0004-Added-coin-default.cfg.patch ...                                                                                                                                                                                                                      [ ok ]
 * Applying coin-4.0.0-0005-Slightly-fix-coin.cfg.cmake.in.patch ...                                                                                                                                                                                                              [ ok ]
 * Applying coin-4.0.0-0006-Fix-underlinking-against-X11.patch ...                                                                                                                                                                                                                [ ok ]
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *    set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose type of build, options ar
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/coin-4.0.0/work/coin ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/coin-4.0.0/work/coin"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/coin-4.0.0/work/coin-4.0.0_build"
cmake -C /var/tmp/portage/media-libs/coin-4.0.0/work/coin-4.0.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/coin-4.0.0 -DCOIN_BUILD_SHARED_LIBS=ON -DCOIN_BUILD_TESTS=no -DCOIN_BUILD_DOCUMENTATION=no -DCOIN_BUILD_INTERNAL_DOCUMENTATION=OFF -DCOIN_BUILD_DOCUMENTATION_MAN=no -DCOIN_BUILD_DOCUMENTATION_QTHELP=no -DCOIN_BUILD_DOCUMENTATION_CHM=OFF -DCOIN_THREADSAFE=yes -DHAVE_VRML97=ON -DCOIN_HAVE_JAVASCRIPT=no -DHAVE_NODEKITS=ON -DHAVE_DRAGGERS=ON -DHAVE_MANIPULATORS=ON -DHAVE_SOUND=yes -DHAVE_3DS_IMPORT_CAPABILITIES=ON -DUSE_EXTERNAL_EXPAT=ON -DUSE_EXCEPTIONS=yes -DUSE_SUPERGLU=OFF -DFONTCONFIG_RUNTIME_LINKING=OFF -DFREETYPE_RUNTIME_LINKING=OFF -DLIBBZIP2_RUNTIME_LINKING=OFF -DOPENAL_RUNTIME_LINKING=OFF -DSIMAGE_RUNTIME_LINKING=OFF -DZLIB_RUNTIME_LINKING=OFF -DGLU_RUNTIME_LINKING=OFF -DSPIDERMONKEY_RUNTIME_LINKING=ON -DCOIN_VERBOSE=no -DHAVE_MULTIPLE_VERSION=OFF -DCOIN_BUILD_SINGLE_LIB=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/coin-4.0.0/work/coin-4.0.0_build/gentoo_toolchain.cmake  /var/tmp/portage/media-libs/coin-4.0.0/work/coin
loading initial cache file /var/tmp/portage/media-libs/coin-4.0.0/work/coin-4.0.0_build/gentoo_common_config.cmake
-- The C compiler identification is Clang 12.0.1
-- The CXX compiler identification is Clang 12.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/llvm/12/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/llvm/12/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found version "1.76.0")  
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
[...]
-- Performing Test HAVE_GLX
-- Performing Test HAVE_GLX - Success
-- Looking for include file GL/gl.h
-- Looking for include file GL/gl.h - found
-- Looking for include file GL/glu.h
-- Looking for include file GL/glu.h - found
-- Looking for include files GL/gl.h, GL/glext.h
-- Looking for include files GL/gl.h, GL/glext.h - found
[...]
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-libs/coin-4.0.0/work/coin ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/coin-4.0.0/work/coin"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/coin-4.0.0/work/coin-4.0.0_build"
ninja -v -j23 -l0
[1/901] /usr/lib/llvm/12/bin/clang++ -DBOOST_ALL_NO_LIB -DCoin_EXPORTS -Idata -I/var/tmp/portage/media-libs/coin-4.0.0/work/coin/include/Inventor/annex -I/var/tmp/portage/media-libs/coin-4.0.0/work/coin/src -Isrc -I/var/tmp/portage/media-libs/coin-4.0.0/work/coin/include -Iinclude -isystem /usr/include/freetype2  -march=znver2 -O3 -pipe -ftree-vectorize -fPIC -DHAVE_CONFIG_H -DCOIN_INTERNAL -DCOIN_DEBUG=0 -MD -MT src/CMakeFiles/Coin.dir/xml/entity.cpp.o -MF src/CMakeFiles/Coin.dir/xml/entity.cpp.o.d -o src/CMakeFiles/Coin.dir/xml/entity.cpp.o -c /var/tmp/portage/media-libs/coin-4.0.0/work/coin/src/xml/entity.cpp
[2/901] /usr/lib/llvm/12/bin/clang++ -DBOOST_ALL_NO_LIB -DCoin_EXPORTS -Idata -I/var/tmp/portage/media-libs/coin-4.0.0/work/coin/include/Inventor/annex -I/var/tmp/portage/media-libs/coin-4.0.0/work/coin/src -Isrc -I/var/tmp/portage/media-libs/coin-4.0.0/work/coin/include -Iinclude -isystem /usr/include/freetype2  -march=znver2 -O3 -pipe -ftree-vectorize -fPIC -DHAVE_CONFIG_H -DCOIN_INTERNAL -DCOIN_DEBUG=0 -MD -MT src/CMakeFiles/Coin.dir/xml/attribute.cpp.o -MF src/CMakeFiles/Coin.dir/xml/attribute.cpp.o.d -o src/CMakeFiles/Coin.dir/xml/attribute.cpp.o -c /var/tmp/portage/media-libs/coin-4.0.0/work/coin/src/xml/attribute.cpp
[...]
--- /usr/bin/
>>> /usr/bin/coin-config
>>> /usr/lib64/libCoin.so.80 -> libCoin.so.4.0.0
>>> /usr/lib64/libCoin.so -> libCoin.so.80
>>> media-libs/coin-4.0.0 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
Comment 9 James Beddek 2021-09-18 10:43:27 UTC
I'll investigate in the coming days and get back to you :-)