Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 675204

Summary: dev-libs/efl-1.21.1-r3 fails to crosscompile: ../src/lib/evas/Evas_GL.h:4276:19: error: conflicting types for ‘GLintptr’
Product: Gentoo Linux Reporter: Thomas Sachau <tommy>
Component: Current packagesAssignee: Joonas Niilola <juippis>
Status: RESOLVED UPSTREAM    
Severity: normal CC: cross, duncan, jstein, leio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log on amd64 for ABI=x86

Description Thomas Sachau gentoo-dev 2019-01-11 18:51:30 UTC
Created attachment 560698 [details]
build.log on amd64 for ABI=x86

dev-libs/efl-1.21.1 did build fine, but dev-libs/efl-1.21.1-r2 does also fail, so the issue is likely with the patch added.

emerge --info:

Portage 2.3.48-multilib (python 2.7.15-final-0, default/linux/amd64/17.0/hardened, gcc-8.2.0, glibc-2.28-r4, 4.4.162-gentoo x86_64)
=================================================================
System uname: Linux-4.4.162-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.6
KiB Mem:    32922440 total,   9899208 free
KiB Swap:    1048572 total,    636068 free
Head commit of repository gentoo: bbdd4208c6adafdd3f240dfe45245ed749cf6826

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.13.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.14::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            5.4.0-r6::gentoo, 7.3.0-r6::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git+ssh://git@git.gentoo.org/repo/gentoo.git
    priority: -1000
    eclass-overrides: gentoo local

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    eclass-overrides: gentoo local

eclipse
    location: /var/lib/layman/eclipse
    masters: gentoo
    priority: 50
    eclass-overrides: gentoo local

enlightenment
    location: /var/lib/layman/enlightenment
    masters: gentoo
    priority: 50
    eclass-overrides: gentoo local

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50
    eclass-overrides: gentoo local

multilib-portage
    location: /var/lib/layman/multilib-portage
    masters: gentoo
    priority: 50
    eclass-overrides: gentoo local

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50
    eclass-overrides: gentoo local

Installed sets: @fonts
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-multilib ipc-sandbox merge-sync metadata-transfer network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en de"
MAKEOPTS="-j6 --load-average=8"
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="3dnow X alsa amd64 crypt cups custom-cflags custom-cxxflags custom-optimization cxx gpm hardened java5 java6 libtirpc mmx ncurses nls nptl nsplugin ogg openmp opus pam pie readline scanner seccomp sse sse2 ssl ssp system-sqlite unicode v4l vorbis xattr xinerama xtpax zlib" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" L10N="en-GB de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" MULTILIB_ABI="amd64 x86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7 python2_6" RUBY_TARGETS="ruby25" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Sachau gentoo-dev 2019-01-11 19:47:17 UTC
I have to correct myself: This issue happens with USE=opengl, with that flag disabled the package builds just fine.
Comment 2 Mart Raudsepp gentoo-dev 2019-01-11 21:58:34 UTC
What mesa version is this?
There was a problem with including both opengl and gles2 headers on 32bit systems, but should be fixed in mesa-18.2.5 and any 18.3.
That said - if efl has an at-most-one-of rule on gles2 vs opengl, then why does such an inclusion of both headers happen? If that's the problem here at all, that is.

https://bugs.freedesktop.org/show_bug.cgi?id=105328
https://github.com/KhronosGroup/OpenGL-Registry/issues/162
Comment 3 Thomas Sachau gentoo-dev 2019-01-12 11:50:14 UTC
emerge -pv mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-18.3.1::gentoo  USE="classic dri3 egl gallium gbm llvm -abiwrapper -d3d9 -debug -gles1 -gles2 -lm_sensors -opencl -osmesa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(-32) (-64) (-x32)" MULTILIB_ABI="amd64 x86" VIDEO_CARDS="(-freedreno) -i915 -i965 (-imx) -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware" 0 KiB
Comment 4 Joonas Niilola gentoo-dev 2019-01-12 12:51:01 UTC
Some mesa updates introduced these problems we're seeing in your build.log, rumor said that mesa update dropped support for opengl3 with older cards. egl+gles still worked with them. 

However looks like you're not running old hardware, and your GL support doesn't come from mesa either. I'm really worried if the ebuild needs to do some dirty tricks to support opengl with nvidia. 

Could you test renaming your /usr/include/GL/gl.h and manually symlinking the nvidia's installed one there, then enable USE="opengl"? I don't have an nvidia card, but I'll setup a chroot environment if that doesn't give any answers.
Comment 5 Joonas Niilola gentoo-dev 2019-01-12 12:54:22 UTC
Sorry, I think nvidia ships it whole own include/GL/ directory that you could symlink, or edit INCLUDEDIR to ignore /usr/include/GL and search from nvidia's path.
Comment 6 Thomas Sachau gentoo-dev 2019-01-12 17:05:12 UTC
I dont see any header files in the installed list for nvidia-drivers. Which files from which package should i try instead of the mesa ones?
Comment 7 Joonas Niilola gentoo-dev 2019-01-13 11:30:02 UTC
Oh right, I might've mistaken GL.h with libGL.so, that the nvidia one provides. 

I'm setting up a new amd64 chroot and gonna try with your ENV settings, but need to emerge 400 packages first... Will get back at this.
Comment 8 Joonas Niilola gentoo-dev 2019-01-13 14:43:45 UTC
Well, *whew*, it compiles with nvidia-drivers. I.. kinda dare to say the problem lies with mesa rather than with efl somewhere, probably in the target environment. Is the target's mesa up-to-date etc correct ABIs?

(Does full opengl actually work in it?)

I'm gonna try to crosscompile amd64 -> x86 next, but will have to do that later next week.
Comment 9 Rolf Eike Beer archtester 2019-02-20 22:13:08 UTC
I see the same on hppa with mesa-18.3.2.
Comment 10 Joonas Niilola gentoo-dev 2019-02-22 14:10:03 UTC
(In reply to Rolf Eike Beer from comment #9)
> I see the same on hppa with mesa-18.3.2.

Crosscompile, or native host? 

Are you using nvidia, or something mesa-supported? (Sorry no idea about hppa hw)

Does it work with 'gles2 -opengl' USE?
Comment 11 Dion Moult 2019-05-12 08:20:34 UTC
I also had this issue (not crosscompiling but compiling natively), and turns out it was fixed upstream. Upgrading to latest efl-1.22.2 fixes it.

https://git.enlightenment.org/core/efl.git/commit/src/lib/evas/Evas_GL.h?id=0d2b624f1e24240a1c4e651aa1cfe9a8dd10a573
https://phab.enlightenment.org/T7502