Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928674 - sci-libs/opencascade-7.7.2-r2: IVtkDraw_Interactor.hxx:30:10: fatal error: tk.h: No such file or directory
Summary: sci-libs/opencascade-7.7.2-r2: IVtkDraw_Interactor.hxx:30:10: fatal error: tk...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-04-06 08:26 UTC by yongxiang
Modified: 2024-04-14 14:28 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,7.29 KB, text/plain)
2024-04-06 08:27 UTC, yongxiang
Details
build.log bzip (build.log.bz2,120.20 KB, application/x-bzip2)
2024-04-06 08:28 UTC, yongxiang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yongxiang 2024-04-06 08:26:27 UTC
It looks like the dev-lang/tk dependency is missing:

[5862/5935] /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKQADraw_EXPORTS -DVTK_OPENGL2_BACKEND -I/usr/include/vtk-9.3 -I/tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2_build/include/opencascade  -O2 -pipe -ggdb -fdiagnostics-color=always -frecord-gcc-switches -fexceptions -fPIC -Wall -Wextra -std=gnu++17 -fPIC -MD -MT src/TKQADraw/CMakeFiles/TKQADraw.dir/__/QABugs/QABugs_18.cxx.o -MF src/TKQADraw/CMakeFiles/TKQADraw.dir/__/QABugs/QABugs_18.cxx.o.d -o src/TKQADraw/CMakeFiles/TKQADraw.dir/__/QABugs/QABugs_18.cxx.o -c /tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2/src/QABugs/QABugs_18.cxx
[5863/5935] /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Dkiss_fft_scalar=double -I/tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2_build/include/opencascade -isystem /usr/include/vtk-9.3 -isystem /usr/include/freetype2  -O2 -pipe -ggdb -fdiagnostics-color=always -frecord-gcc-switches -fexceptions -fPIC -Wall -Wextra -std=gnu++17 -fPIC -fopenmp -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -c /tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2/src/IVtkDraw/IVtkDraw_Interactor.cxx
FAILED: src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Dkiss_fft_scalar=double -I/tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2_build/include/opencascade -isystem /usr/include/vtk-9.3 -isystem /usr/include/freetype2  -O2 -pipe -ggdb -fdiagnostics-color=always -frecord-gcc-switches -fexceptions -fPIC -Wall -Wextra -std=gnu++17 -fPIC -fopenmp -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -c /tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2/src/IVtkDraw/IVtkDraw_Interactor.cxx
In file included from /tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2_build/include/opencascade/IVtkDraw_Interactor.hxx:1,
                 from /tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2/src/IVtkDraw/IVtkDraw_Interactor.cxx:59:
/tmp/portage/sci-libs/opencascade-7.7.2/work/OCCT-7_7_2/src/IVtkDraw/IVtkDraw_Interactor.hxx:30:10: fatal error: tk.h: No such file or directory
   30 | #include <tk.h>
      |          ^~~~~~
compilation terminated.


Reproducible: Always
Comment 1 yongxiang 2024-04-06 08:27:16 UTC
Created attachment 889562 [details]
emerge --info
Comment 2 yongxiang 2024-04-06 08:28:43 UTC
Created attachment 889563 [details]
build.log bzip
Comment 3 Paul Zander 2024-04-08 14:44:40 UTC
Can you show me your USE-flags for sci-libs/vtk? I'd guess that has USE="tk"?
Comment 4 yongxiang 2024-04-08 14:51:52 UTC
(In reply to Paul Zander from comment #3)
> Can you show me your USE-flags for sci-libs/vtk? I'd guess that has USE="tk"?

I] sci-libs/vtk
     Available versions:  9.2.5(0/9.2)^t (~)9.2.6-r1(0/9.2)^t 9.3.0(0/9.3)^t {all-modules boost cuda debug doc examples ffmpeg (+)freetype gdal gles2-only imaging java las +logging mpi mysql odbc opencascade openmp openvdb pdal postgres python qt5 qt6 +rendering sdl tbb test +threads tk (+)views vtkm web PYTHON_SINGLE_TARGET="python3_10 python3_11" VIDEO_CARDS="nvidia"}
     Installed versions:  9.3.0(0/9.3)^t(11:16:43 AM 04/06/2024)(freetype logging openmp qt5 rendering threads views -all-modules -boost -cuda -debug -doc -examples -ffmpeg -gdal -gles2-only -imaging -java -las -mpi -mysql -odbc -opencascade -openvdb -pdal -postgres -python -qt6 -sdl -tbb -test -tk -vtkm -web PYTHON_SINGLE_TARGET="python3_11 -python3_10" VIDEO_CARDS="-nvidia")
     Homepage:            https://www.vtk.org/
     Description:         The Visualization Toolkit
Comment 5 Larry the Git Cow gentoo-dev 2024-04-14 14:28:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58cabfdf158ec5485bd3401f7e2ebad6d3046fdd

commit 58cabfdf158ec5485bd3401f7e2ebad6d3046fdd
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-04-11 14:22:21 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-04-14 14:15:06 +0000

    sci-libs/opencascade: add tk dep, don't set USE_QT
    
    Closes: https://bugs.gentoo.org/928674
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../{opencascade-7.7.1.ebuild => opencascade-7.7.1-r1.ebuild}         | 4 ++--
 .../{opencascade-7.7.2.ebuild => opencascade-7.7.2-r1.ebuild}         | 4 ++--
 sci-libs/opencascade/opencascade-7.8.0.ebuild                         | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)