opencascade 6.x needs vtk-6.3 which fails to build with GCC 6.3. Please add latest version of opencascade
Created attachment 468234 [details] opencascade-7.1.0.ebuild I tried to emerge opencascade-7.1.0 with the attached ebuild. But it fails with -- Installing: /var/tmp/portage/sci-libs/opencascade-7.1.0/image/usr/share/opencascade/resources/UnitsAPI/Units.dat -- Installing: /var/tmp/portage/sci-libs/opencascade-7.1.0/image/usr/share/opencascade/resources/TObj/TObj.msg CMake Error: File /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/OpenCASCADECompileDefinitionsAndFlags-gentoo.cmake does not exist. CMake Error at cmake_install.cmake:8397 (configure_file): configure_file Problem configuring file make: *** [Makefile:116: install] Error 1 root@lynx:/usr/local/portage/sci-libs/opencascade(171)# emerge --info '=sci-libs/opencascade-7.1.0::local' Portage 2.3.5 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.24-r1, 4.10.5-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.10.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.3 KiB Mem: 15914896 total, 2064744 free KiB Swap: 50331644 total, 50106864 free Timestamp of repository gentoo: Sat, 25 Mar 2017 07:30:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 distcc[1646] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Oct 2 2016 20:49:06 [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r1::gentoo dev-lang/python: 2.7.13-r100::sage-on-gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.0::gentoo dev-util/cmake: 3.7.2-r1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.24.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo Repositories: gentoo location: /usr/portage_lynx sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 local location: /usr/local/portage masters: gentoo priority: 0 g-cpan location: /var/lib/cpan masters: gentoo priority: 1 g-octave location: /var/lib/g-octave masters: gentoo priority: 2 activehome location: /var/lib/layman/activehome masters: gentoo priority: 50 ago location: /var/lib/layman/ago masters: gentoo priority: 50 sage-on-gentoo location: /var/lib/layman/sage-on-gentoo masters: gentoo science priority: 50 science location: /var/lib/layman/science masters: gentoo priority: 50 sunrise location: /var/lib/layman/sunrise masters: gentoo priority: 50 tlp location: /var/lib/layman/tlp masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 masters: gentoo priority: 50 Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noclean nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 amr ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audacious audiofile aufs automap automount barcode bash-completion berkdb blas blast bluetooth bluray boost branding btrfs bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cilk clang cli cmake collada consolekit contrib cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia digitalradio djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx ftp fuse gcj gd gdal gdbm gedit geoip geolocation geos gfortran gif gimp git glade glamor glib glpk gml gmp gnome gnome-keyring gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hdaps hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jadetex java jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate lirc live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg opencl opencv openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds ppp preview-latex proj projectm pstricks pulseaudio python q16 q32 qemu qhull qml qt3support qt4 qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool rtlsdr sage samba sasl schroedinger science sdk sdl seccomp secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite ssl startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tbb tcl tcpd tex tex4ht theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vala valgrind vdpau video vim-syntax virt-network virtualbox visio vorbis vpx vtk wav wayland webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xetex xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog sensors thermal" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ublox nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="emu efi-64 pc xen" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd SureElec" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965 displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON root@lynx:/usr/local/portage/sci-libs/opencascade(172)# emerge -pqv '=sci-libs/opencascade-7.1.0::local' [ebuild NSf ] sci-libs/opencascade-7.1.0 [6.9.1-r1] USE="doc examples java qt4 tbb vtk -debug -freeimage -gl2ps"
*** Bug 595196 has been marked as a duplicate of this bug. ***
Created attachment 474086 [details, diff] opencascade-7.1.0-buildsystem.patch This patch may help you. I got rid of the error you describe but got now stuck at * ACCESS DENIED: unlink: /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets-debug.cmake * ACCESS DENIED: chmod: /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets-debug.cmake * ACCESS DENIED: fopen_wr: /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets-debug.cmake CMake Error at cmake_install.cmake:8574 (file): file failed to open for writing (Permission denied): /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets-debug.cmake
(In reply to Karsten Merkle from comment #3) > Created attachment 474086 [details, diff] [details, diff] > opencascade-7.1.0-buildsystem.patch > > This patch may help you. > > I got rid of the error you describe but got now stuck at > > * ACCESS DENIED: unlink: > /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets- > debug.cmake > * ACCESS DENIED: chmod: > /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets- > debug.cmake > * ACCESS DENIED: fopen_wr: > /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets- > debug.cmake > CMake Error at cmake_install.cmake:8574 (file): > file failed to open for writing (Permission denied): > > > /usr/lib/cmake/opencascade-7.1.0/OpenCASCADEApplicationFrameworkTargets- > debug.cmake Even if I use your patch, it fails for me with the same error: ... >>> Emerging (1 of 1) sci-libs/opencascade-7.1.0::local * opencascade-7.1.0.tgz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Checking for at least 256 MiB RAM ... [ ok ] * Checking for at least 3584 MiB disk space at "/var/tmp/portage/sci-libs/opencascade-7.1.0/temp" ... [ ok ] * Using: icedtea-7 >>> Unpacking source... >>> Unpacking opencascade-7.1.0.tgz to /var/tmp/portage/sci-libs/opencascade-7.1.0/work >>> Source unpacked in /var/tmp/portage/sci-libs/opencascade-7.1.0/work >>> Preparing source in /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0 ... * Applying opencascade-7.1.0-buildsystem.patch ... [ ok ] >>> Source prepared. ... -- Installing: /var/tmp/portage/sci-libs/opencascade-7.1.0/image/usr/share/opencascade/resources/UnitsAPI/Units.dat -- Installing: /var/tmp/portage/sci-libs/opencascade-7.1.0/image/usr/share/opencascade/resources/TObj/TObj.msg CMake Error at cmake_install.cmake:8397 (file): file INSTALL cannot find "/var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/OpenCASCADECompileDefinitionsAndFlags-gentoo.cmake". make: *** [Makefile:118: install] Error 1 In the directory /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build I have the following files: root@lynx:/usr/local/portage/sci-libs/opencascade(33)# ll /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build total 1624 -rw-r--r-- 1 portage portage 51201 May 26 19:53 CMakeCache.txt drwxr-xr-x 5 portage portage 4096 May 26 19:53 CMakeFiles/ -rw-r--r-- 1 portage portage 981611 May 26 19:53 cmake_install.cmake -rwxr-xr-x 1 portage portage 869 May 26 19:53 custom_gcc_64.install.sh* -rwxr-xr-x 1 portage portage 1349 May 26 19:53 custom_gcc_64.sh* -rwxr-xr-x 1 portage portage 122 May 26 19:53 custom.sh* drwxr-xr-x 3 portage portage 4096 May 26 19:53 doc/ drwxr-xr-x 3 portage portage 4096 May 26 19:53 dox/ -rwxr-xr-x 1 portage portage 268 Nov 25 10:52 draw.sh* -rwxr-xr-x 1 portage portage 3917 May 26 19:53 env.sh* -rw-r--r-- 1 portage portage 209 May 26 19:53 gentoo_common_config.cmake -rw-r--r-- 1 portage portage 638 May 26 19:53 gentoo_rules.cmake -rw-r--r-- 1 portage portage 437 May 26 19:53 gentoo_toolchain.cmake drwxr-xr-x 2 portage portage 475136 May 26 19:53 inc/ drwxr-xr-x 3 portage portage 4096 May 26 19:53 lin64/ -rw-r--r-- 1 portage portage 30747 May 26 19:53 Makefile -rwxr-xr-x 1 portage portage 580 May 26 19:53 OpenCASCADECompileDefinitionsAndFlags-debug.cmake* -rwxr-xr-x 1 portage portage 646 May 26 19:53 OpenCASCADECompileDefinitionsAndFlags-release.cmake* -rwxr-xr-x 1 portage portage 651 May 26 19:53 OpenCASCADECompileDefinitionsAndFlags-relwithdebinfo.cmake* -rwxr-xr-x 1 portage portage 4926 May 26 19:53 OpenCASCADEConfig.cmake* -rw-r--r-- 1 portage portage 1721 May 26 19:53 OpenCASCADEConfigVersion.cmake -rw-r--r-- 1 portage portage 34331 May 26 19:53 OpenCASCADETargets.cmake drwxr-xr-x 59 portage portage 4096 May 26 19:53 src/
The error described in Comment 1 and Comment 4 seems to happen if vtk-7.1.0 is installed. Wit vtk-7.0.0 'emerge opencascade' fails with: ... -- Installing: /var/tmp/portage/sci-libs/opencascade-7.1.0/image/usr/local/share/opencascade/resources/TObj/TObj.msg * ACCESS DENIED: mkdir: /usr/local/lib/cmake * ACCESS DENIED: mkdir: /usr/local/lib/cmake CMake Error at cmake_install.cmake:8397 (configure_file): configure_file Problem configuring file make: *** [Makefile:118: install] Error 1
(In reply to Oleg Korsak from comment #0) > opencascade 6.x needs vtk-6.3 which fails to build with GCC 6.3. Please add > latest version of opencascade This has been addressed and hopefully fixed via bug 605304. Let's tackle the version bump ...
Created attachment 475716 [details, diff] correct buildsystem patch it's work to build, but some problem during rebuild ocure.
Created attachment 475718 [details] new opencascade 7.1.0 ebuild seams to work with eselect opencascade. problem on reinstall
can u put this ebuild in portage? this is reported since feb. 2017 ... and the currently version sci-libs/opencascade-6.9.1-r2 is not anymore available >>> Emerging (2 of 4) sci-libs/opencascade-6.9.1-r2::gentoo >>> Downloading 'http://distfiles.gentoo.org/distfiles/opencascade-6.9.1.tgz' --2017-06-25 09:02:30-- http://distfiles.gentoo.org/distfiles/opencascade-6.9.1.tgz Resolving distfiles.gentoo.org... 137.226.34.46, 140.211.166.134, 156.56.247.195, ... Connecting to distfiles.gentoo.org|137.226.34.46|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2017-06-25 09:02:30 ERROR 404: Not Found. >>> Downloading 'http://www.opencascade.com/sites/default/files/private/occt/OCC_6.9.1_release/opencascade-6.9.1.tgz' --2017-06-25 09:02:30-- http://www.opencascade.com/sites/default/files/private/occt/OCC_6.9.1_release/opencascade-6.9.1.tgz Resolving www.opencascade.com... 188.165.114.136 Connecting to www.opencascade.com|188.165.114.136|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.opencascade.com/sites/default/files/private/occt/OCC_6.9.1_release/opencascade-6.9.1.tgz [following] --2017-06-25 09:02:30-- https://www.opencascade.com/sites/default/files/private/occt/OCC_6.9.1_release/opencascade-6.9.1.tgz Connecting to www.opencascade.com|188.165.114.136|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://www.opencascade.com/user/login?destination=system/files/occt/OCC_6.9.1_release/opencascade-6.9.1.tgz [following] --2017-06-25 09:02:31-- https://www.opencascade.com/user/login?destination=system/files/occt/OCC_6.9.1_release/opencascade-6.9.1.tgz Reusing existing connection to www.opencascade.com:443. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: '/mnt/portage/distfiles/opencascade-6.9.1.tgz' /mnt/portage/distfi [ <=> ] 28.97K --.-KB/s in 0.004s 2017-06-25 09:02:31 (7.07 MB/s) - '/mnt/portage/distfiles/opencascade-6.9.1.tgz' saved [29670] !!! Fetched file: opencascade-6.9.1.tgz VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 29670 !!! Expected: 209589289 Refetching... File renamed to '/mnt/portage/distfiles/opencascade-6.9.1.tgz._checksum_failure_.h7dh8xyf' !!! Couldn't download 'opencascade-6.9.1.tgz'. Aborting. * Fetch failed for 'sci-libs/opencascade-6.9.1-r2', Log file: * '/mnt/portage/logs/sci-libs:opencascade-6.9.1-r2:20170625-070230.log' >>> Failed to emerge sci-libs/opencascade-6.9.1-r2, Log file: >>> '/mnt/portage/logs/sci-libs:opencascade-6.9.1-r2:20170625-070230.log' * IMPORTANT: 5 news items need reading for repository 'gentoo'. * Use eselect news read to view new items.
I've tried the 2017-06-09 ebuild and patch to build a qt5 version of freecad. There are a few problems with the opencascade-7.1.0 ebuild CASROOT is not set correctly: echo $CASROOT /usr/lib64/opencascade-6.7.1/ros/lin expected would be: CASROOT=/usr/lib64/opencascade-7.1.0/ros/ Opencascade-6.7.1 was never installed on that system. A second problem are changed paths inside the opencascade directory. To build freecad I had to add two symbolic links inside /usr/lib64/opencascade-7.1.0/ros: inc -> include/opencascade/ lib64 -> lib/
Note that there is also quite a lot of work to be done on supporting all those USE flags...
(In reply to tman from comment #9) > can u put this ebuild in portage? > > this is reported since feb. 2017 ... > > and the currently version sci-libs/opencascade-6.9.1-r2 is not anymore > available hi, It's normal. You need to create a account on opencascade and manually download the version you want. It's the same for all version. https://www.opencascade.com/content/latest-release https://www.opencascade.com/content/previous-releases
The $CASROOT problem was from my chroot, should have executed ". /etc/profile" The two symbolic links were required because my modified freecad ebuild had set the include and lib path hardcoded relative to $CASROOT. Ao all issues from comment 10 are solved.
Can we get a version bump going? :-)
there is still an slot issue with following files installed by OCC: * /usr/lib/cmake/OpenCASCADEDrawTargets.cmake * /usr/lib/cmake/OpenCASCADEApplicationFrameworkTargets-gentoo.cmake * /usr/lib/cmake/OpenCASCADEFoundationClassesTargets.cmake * /usr/lib/cmake/OpenCASCADEConfig.cmake * /usr/lib/cmake/OpenCASCADEConfigVersion.cmake * /usr/lib/cmake/OpenCASCADEModelingAlgorithmsTargets-gentoo.cmake * /usr/lib/cmake/OpenCASCADEModelingDataTargets.cmake * /usr/lib/cmake/OpenCASCADEDataExchangeTargets.cmake * /usr/lib/cmake/OpenCASCADEVisualizationTargets-gentoo.cmake * /usr/lib/cmake/OpenCASCADECompileDefinitionsAndFlags-gentoo.cmake * /usr/lib/cmake/OpenCASCADEModelingAlgorithmsTargets.cmake * /usr/lib/cmake/OpenCASCADEDataExchangeTargets-gentoo.cmake * /usr/lib/cmake/OpenCASCADEApplicationFrameworkTargets.cmake * /usr/lib/cmake/OpenCASCADEFoundationClassesTargets-gentoo.cmake * /usr/lib/cmake/OpenCASCADEModelingDataTargets-gentoo.cmake * /usr/lib/cmake/OpenCASCADEVisualizationTargets.cmake * /usr/lib/cmake/OpenCASCADEDrawTargets-gentoo.cmake but I can't figure out how to proper setup the eselect stuff...
Created attachment 497946 [details, diff] patch to correct OCC cmake modules this simple patch solved comment 15 I was able to build OCC 7.1.0 & OCC 7.2.0 choosing 7.2.0 with eselect and compile FreeCAD successfully using OCC 7.2.0 ... But I'm still not sure about if it's the proper way of putting CMAKE modules into /usr/lib/cmake and how it works now together with eselect.
All older versions are now mask. Trying to figure out what files I need from here to test this out.
I've trieb both 7.1 and 7.2 an there is a new issue: In file included from /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/inc/Standard_CLocaleSentry.hxx:1:0, from /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0/src/Standard/Standard_CLocaleSentry.cxx:16: /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0/src/Standard/Standard_CLocaleSentry.hxx:39:12: fatal error: xlocale.h: No such file or directory #include <xlocale.h> ^~~~~~~~~~~ compilation terminated. See also bug #638010 [TRACKER] Packages using xlocale.h (and thus failing to build with >=sys-libs/glibc-2.26)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=422d70a744d3b4a1947f0f6b07c3fd4f1b2b0fe8 commit 422d70a744d3b4a1947f0f6b07c3fd4f1b2b0fe8 Author: Michael Weber <xmw@gentoo.org> AuthorDate: 2017-12-22 11:35:22 +0000 Commit: Michael Weber <xmw@gentoo.org> CommitDate: 2017-12-22 11:37:35 +0000 sci-libs/opencascade: Drop xlocale.h include. Bug: https://bugs.gentoo.org/610362 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sci-libs/opencascade/opencascade-6.9.1-r2.ebuild | 6 ++++++ 1 file changed, 6 insertions(+)}
Any news here?
After I've fixed ebuild (not sure if the right way), I have no errors about xlocale. But then... [ 80%] Linking CXX shared library ../../lin64/gcc/lib/libTKIGES.so cd /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/src/TKIGES && /usr/bin/cmake -E cmake_link_script CMakeFiles/TKIGES.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -std=c++0x -O2 -pipe -march=native -mtune=native -fexceptions -fPIC -Wall -Wextra -lm -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libTKIGES.so.7 -o ../../lin64/gcc/lib/libTKIGES.so.7.1.0 @CMakeFiles/TKIGES.dir/objects1.rsp -Wl,-rpath,/var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/lin64/gcc/lib: ../../lin64/gcc/lib/libTKBool.so.7.1.0 ../../lin64/gcc/lib/libTKXSBase.so.7.1.0 ../../lin64/gcc/lib/libTKBO.so.7.1.0 ../../lin64/gcc/lib/libTKPrim.so.7.1.0 ../../lin64/gcc/lib/libTKShHealing.so.7.1.0 ../../lin64/gcc/lib/libTKTopAlgo.so.7.1.0 ../../lin64/gcc/lib/libTKGeomAlgo.so.7.1.0 ../../lin64/gcc/lib/libTKBRep.so.7.1.0 ../../lin64/gcc/lib/libTKGeomBase.so.7.1.0 ../../lin64/gcc/lib/libTKG3d.so.7.1.0 ../../lin64/gcc/lib/libTKG2d.so.7.1.0 ../../lin64/gcc/lib/libTKMath.so.7.1.0 ../../lin64/gcc/lib/libTKernel.so.7.1.0 -lpthread -lrt -lstdc++ -ldl cd /var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/src/TKIGES && /usr/bin/cmake -E cmake_symlink_library ../../lin64/gcc/lib/libTKIGES.so.7.1.0 ../../lin64/gcc/lib/libTKIGES.so.7 ../../lin64/gcc/lib/libTKIGES.so make[2]: Leaving directory '/var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build' [ 80%] Built target TKIGES make[1]: Leaving directory '/var/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build' make: *** [Makefile:130: all] Error 2 And when trying to manually make this Makefile: # make -f CMakeFiles/Makefile2 src/TKIGES/all [ 80%] Built target TKernel [ 80%] Built target TKMath [ 80%] Built target TKG2d [ 80%] Built target TKG3d [ 80%] Built target TKGeomBase [ 80%] Built target TKBRep [ 80%] Built target TKGeomAlgo [ 80%] Built target TKTopAlgo [ 80%] Built target TKShHealing [ 80%] Built target TKXSBase [ 80%] Built target TKPrim [ 80%] Built target TKBO [ 80%] Built target TKBool Scanning dependencies of target TKIGES CMake Error: Directory Information file not found [ 80%] Built target TKIGES
Created attachment 530734 [details] opencascade-7.1.0.ebuild
Created attachment 530736 [details, diff] opencascade-7.1.0-buildsystem.patch
(In reply to Oleg Korsak from comment #23) > Created attachment 530736 [details, diff] [details, diff] > opencascade-7.1.0-buildsystem.patch "${FILESDIR}"/${PN}-7.0.0-MAT2d.patch where do I get his patch so I can test this out?
Here is what I get now. [ 58%] Building CXX object src/TKSTEPBase/CMakeFiles/TKSTEPBase.dir/__/StepBasic/StepBasic_ContractAssignment.cxx.o cd /tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/src/TKSTEPBase && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKSTEPBase_EXPORTS -DVTK_OPENGL2_BACKEND -DvtkDomainsChemistry_AUTOINIT="1(vtkDomainsChemistryOpenGL2)" -DvtkIOExport_AUTOINIT="1(vtkIOExportOpenGL2)" -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL2)" -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" -DvtkRenderingOpenGL2_AUTOINIT="1(vtkRenderingGL2PSOpenGL2)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL2)" -I/usr/include/vtk-8.1 -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/jsoncpp -I/tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0_build/inc -DNDEBUG -std=c++0x -march=corei7 -O2 -pipe -fexceptions -fPIC -Wall -Wextra -fPIC -o CMakeFiles/TKSTEPBase.dir/__/StepBasic/StepBasic_ContractAssignment.cxx.o -c /tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0/src/StepBasic/StepBasic_ContractAssignment.cxx /tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0/src/IVtkVTK/IVtkVTK_ShapeData.cxx: In member function 'virtual void IVtkVTK_ShapeData::InsertVertex(IVtk_IdType, IVtk_PointId, IVtk_MeshType)': /tmp/portage/sci-libs/opencascade-7.1.0/work/opencascade-7.1.0/src/IVtkVTK/IVtkVTK_ShapeData.cxx:83:18: error: 'class vtkIdTypeArray' has no member named 'InsertNextTupleValue'; did you mean 'InsertNextTuple'? mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK); ^~~~~~~~~~~~~~~~~~~~
After my ignorant comment about where to get the -7.0.0-MAT2d.patch that was commented out. I got build errors like the following IVtkVTK_ShapeData.cxx:83:18: error: 'class vtkIdTypeArray' has no member named 'InsertNextTupleValue'; did you mean 'InsertNextTuple'? This seems to be a known problem with >VTK7.1 to I changed MY_VTK="vtk-8.1" to MY_VTK="vtk-7.1" That built fine. but freecad from git master failed with errors about libTKCAF.so.7: cannot open shared object file: No such file or directory Then I found in /etc/env.d/opencascade/7.1.0 LDPATH=/usr/lib64/opencascade-7.1.0/ros/lib64 changed to LDPATH=/usr/lib64/opencascade-7.1.0/ros/lib I ran eselect opencascade 7.1.0 && . /etc/profile FreeCAD now works FYI: I have no idea what i'm doing. But it works
Created attachment 547411 [details] opencascade-7.3.0.ebuild added opencascade-7.3.0.ebuild works for me... eselect parameters adjusted... still need some help to get it perfect
Tried to install 7.3.0 and it seemed to accept the 7.1.0-buildsystem.patch. Could not find a vtk-8.1 patch Any help with finding these?
Added opencascade-7.3.0-buildsystem.patch and opencascade-7.3.0-vtk-8.1.patch buildsystem patch is just the 7.1.0 renamed and the vtk-8.1 was found on the internet. Delete if this isn't proper, or allowed. Apologizes I've tested 7.3.0 with these patches and builds fine on my system. Both freecad and opencascade builds against it fine as well. Can we get it added to ~amd64?
Created attachment 551946 [details, diff] vtk-8.1 patch for opencascade 7.3.0
Created attachment 551948 [details, diff] buildsystem patch for opencascade 7.3.0
I see a lot of effort poured in this bug being assigned to xmw. It should be noted that xmw has been inactive for a few months, not responding to bugs or emails, so this package can probably be considered "maintainer needed". Unless Michael proves me wrong and answers in a timely manner to the patches being submitted here, this package is a good candidate for being proxy-maintained. https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b00b035e79aed9609ac7e8e921267d75de2ee94 commit 0b00b035e79aed9609ac7e8e921267d75de2ee94 Author: Michael Perlov <perlovka@gmail.com> AuthorDate: 2018-09-15 14:23:51 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2018-10-27 10:35:48 +0000 sci-libs/opencascade: Version bump to 7.3.0 Closes: https://github.com/gentoo/gentoo/pull/9871 Closes: https://bugs.gentoo.org/610362 Signed-off-by: Michael Perlov <perlovka@gmail.com> Signed-off-by: Amy Liffey <amynka@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10 sci-libs/opencascade/Manifest | 1 + .../files/opencascade-7.3.0-fixed-DESTDIR.patch | 31 +++++ .../files/opencascade-7.3.0-vtk-compat.patch | 13 ++ sci-libs/opencascade/metadata.xml | 1 + sci-libs/opencascade/opencascade-7.3.0.ebuild | 140 +++++++++++++++++++++ 5 files changed, 186 insertions(+)
(In reply to Virgil Dupras from comment #32) > I see a lot of effort poured in this bug being assigned to xmw. It should be > noted that xmw has been inactive for a few months, not responding to bugs or > emails, so this package can probably be considered "maintainer needed". > > Unless Michael proves me wrong and answers in a timely manner to the patches > being submitted here, this package is a good candidate for being > proxy-maintained. https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers I've been working on this ebuild to further improve it for quite some time already in my overlay (see https://github.com/waebbl/waebbl-gentoo/tree/master/sci-libs/opencascade/). If it's ever going to be proxy maintained, I'd be happy to maintain the ebuild.
Bernd: if improvements are significant over the current one, feel free to open a PR adding you as a proxied maintainer. Otherwise, I'd suggest to wait for the next upstream version bump to do it.
(In reply to Virgil Dupras from comment #35) > Bernd: if improvements are significant over the current one, feel free to > open a PR adding you as a proxied maintainer. Otherwise, I'd suggest to wait > for the next upstream version bump to do it. Virgil: It's still WIP and not strictly significant yet. I will likely wait for the next upstream version then.