If opencascade 7.6 is installed, KiCad installation fails in the configure phase: *** OpenCascade library missing Verify your OpenCascade installation or pass CMake the library directory as '-DOCC_LIBRARY_DIR=<path>' CMake Error at CMakeModules/FindOCC.cmake:147 (message): Call Stack (most recent call first): CMakeLists.txt:731 (find_package) If I mask opencascade 7.6, KiCad will configure and build against opencascade 7.5.3. Reproducible: Always
Please do include the full build.log and any CMake files it mentions in the log.
...as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Created attachment 761832 [details] build.log
Created attachment 761833 [details] root-level CMakeLists.txt
Created attachment 761834 [details] FindOCC.cmake
Created attachment 761835 [details] emerge --info
I see this too, and specifically I see: > !!! File Not Found: '/etc/env.d/51opencascade' and eselect cascade list shows nothing: > # eselect opencascade list > Installed opencascade > #
(In reply to Matt Turner from comment #7) > I see this too, and specifically I see: > > > !!! File Not Found: '/etc/env.d/51opencascade' > > and eselect cascade list shows nothing: > > > # eselect opencascade list > > Installed opencascade > > # The eselect module for opencascade is obsolete and going to get masked and removed. It's no longer needed with 7.6. The kicad ebuild specifically mentions CAS_VERSION=7.5.3, so I assume it's not yet tested with 7.6. If it's not yet ready for 7.6, the dependency could be restricted to versions <7.6.
The ebuild is expecting opencascade library to be at "/usr/lib64/opencascade-7.6.0" instead it is at "/usr/lib64/opencascade". As workaround, create a link: ln -s /usr/lib64/opencascade /usr/lib64/opencascade-7.6.0
And you need also include link: ln -s /usr/include/opencascade /usr/include/opencascade-7.6.0
I can confirm that the workaround fixes the problem.
Opencascade ebuild writes the env.d file to /etc/env.d/99opencascade and not to /etc/env.d/51opencascade.
*** Bug 831028 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b2814dddcdf0bf52b99fb0769a1ae6e3643d13 commit e4b2814dddcdf0bf52b99fb0769a1ae6e3643d13 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-01-11 23:45:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-01-11 23:45:34 +0000 sci-electronics/kicad: adapt to opencascade changes No longer slotted. Closes: https://bugs.gentoo.org/830964 Signed-off-by: Sam James <sam@gentoo.org> sci-electronics/kicad/kicad-6.0.0.ebuild | 9 ++------- sci-electronics/kicad/kicad-9999.ebuild | 15 +++++---------- 2 files changed, 7 insertions(+), 17 deletions(-)