Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601546 - sci-visualization/paraview-5.1.2 fails to build
Summary: sci-visualization/paraview-5.1.2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-03 22:27 UTC by Zhu Sha Zang
Modified: 2017-01-26 19:07 UTC (History)
2 users (show)

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


Attachments
Environment (environment.txt,165.71 KB, text/plain)
2016-12-03 22:27 UTC, Zhu Sha Zang
Details
Build Log (build.log.bz2,310.61 KB, application/x-bzip2)
2016-12-03 22:27 UTC, Zhu Sha Zang
Details
Emerge info (info.txt,12.84 KB, text/plain)
2016-12-03 22:28 UTC, Zhu Sha Zang
Details
pqv info (pqv.txt,210 bytes, text/plain)
2016-12-03 22:28 UTC, Zhu Sha Zang
Details
Build Log after glu reinstall (build2.log.bz2,358.81 KB, application/x-bzip2)
2016-12-06 00:50 UTC, Zhu Sha Zang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zhu Sha Zang 2016-12-03 22:27:30 UTC
Created attachment 455016 [details]
Environment

Every time that I try to compile sci-visualization/paraview-5.1.2 package it fail!
Comment 1 Zhu Sha Zang 2016-12-03 22:27:53 UTC
Created attachment 455018 [details]
Build Log
Comment 2 Zhu Sha Zang 2016-12-03 22:28:22 UTC
Created attachment 455020 [details]
Emerge info
Comment 3 Zhu Sha Zang 2016-12-03 22:28:35 UTC
Created attachment 455022 [details]
pqv info
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-12-04 17:15:08 UTC
In file included from /usr/include/qt5/QtGui/qopengl.h:108:0,
                 from /usr/include/qt5/QtOpenGL/qgl.h:39,
                 from /usr/include/qt5/QtOpenGL/QGLContext:1,
                 from /var/tmp/portage/sci-visualization/paraview-5.1.2/work/ParaView-v5.1.2/VTK/GUISupport/QtOpenGL/QVTKGraphicsItem.h:29,
                 from /var/tmp/portage/sci-visualization/paraview-5.1.2/work/ParaView-v5.1.2/VTK/GUISupport/QtOpenGL/QVTKGraphicsItem.cxx:25:
/usr/include/qt5/QtGui/qopengles2ext.h:22:9: error: ‘khronos_int64_t’ does not name a type
 typedef khronos_int64_t GLint64;
         ^
/usr/include/qt5/QtGui/qopengles2ext.h:23:9: error: ‘khronos_uint64_t’ does not name a type
 typedef khronos_uint64_t GLuint64;
         ^
Comment 5 Chris White 2016-12-05 20:28:08 UTC
I've tried to verify this but hit a different error, though still OpenGL related. Can you try installing `media-libs/glu` and telling me if it compiles after that? I need to know if the same fix will work.
Comment 6 Zhu Sha Zang 2016-12-06 00:50:56 UTC
Created attachment 455182 [details]
Build Log after glu reinstall
Comment 7 Zhu Sha Zang 2016-12-06 00:52:47 UTC
The package media-libs was already installed, then I made that

1 - emerge -C media-libs/freeglut media-libs/glu virtual/glu
2 - emerge -uDN @world
3 - emerge @preserved-rebuild
4 - emerge -uDN paraview

The compilation won't finished again.

Best regards
Comment 8 Chris White 2016-12-06 17:01:00 UTC
After a good amount of research I've tracked down the issue to various qt packages (qtgui and qtopengl) being built with gles2 USE enabled. The decision was made to require these qt packages not be built with gles2 support. Pull request here addresses this:

https://github.com/gentoo/gentoo/pull/3035

That said, I've looked over your `emerge --info` and noticed that you have way too many USE flags, possibly all global USE flags defined. Gentoo really wasn't meant to be used like that. The idea is that you let your install selected profile decide reasonable base settings, then use USE in make.conf for features you want all packages to have that are not in profiles, and finally use `/etc/portage/package.use` to one-off customize individual packages. 

While I still continued on tracking the bug after noticing this, I'd ask that you please refrain from reporting additional bugs until you've clean up your `make.conf` file to be more sane. The Gentoo Handbook will provide specific guidance on basic installation.
Comment 9 Zhu Sha Zang 2016-12-06 17:12:27 UTC
Oh Crap!
Comment 10 Matthias Maier gentoo-dev 2017-01-26 19:07:05 UTC
Thanks a lot for the help!


commit baa2918450ee90522af6d37bfd6aa6400da91735
Author: Chris White <cwprogram@live.com>
Date:   Tue Dec 6 00:43:40 2016 -0800

    sci-visualization/paraview: add -gles2 USE depend
    
    After some research on a compilation error with the
    package maintainer it was determined that the
    build errors caused by having qtgui and qtopengl
    compiled with gles2 USE enabled were enough to
    warrant forcing a negated USE dep on both packages
    in the ebuild.
    
    Verified amd64 compilation without gles2 enabled qt
    packages
    Verified complaints when attempting to emerge the
    package with gles2 enabled qt packages

commit c480a2000618f4533545388174b8686d5f7a7a28
Author: Chris White <cwprogram@live.com>
Date:   Tue Dec 6 00:37:25 2016 -0800

    sci-visualization/paraview: add glu depend
    
    Paraview requires glu to compile one of the
    VTK components. This satisfies the requirement
    by adding a depend on virtual/glu.
    
    Verified amd64 compliation
    Verified lack of glu provider will cause it
    to appear in the emerge pretend listing