Summary: | media-libs/mesa-12.0.1[opencl] with sys-devel/llvm-3.9.0 - src/gallium/state_trackers/clover/llvm/invocation.cpp:212:75: error: no matching function for call to clang::CompilerInvocation::setLangDefaults | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, kripton, llvm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.freedesktop.org/show_bug.cgi?id=97542 | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=97542 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 596020 | ||
Attachments: |
build.log (xz-compressed)
mesa-12.0.1-llvm-3.9.0_rc3-compatibility.patch |
Description
Dennis Schridde
2016-08-30 06:22:28 UTC
Created attachment 444400 [details]
build.log (xz-compressed)
Created attachment 444402 [details, diff]
mesa-12.0.1-llvm-3.9.0_rc3-compatibility.patch
Attached patch fixes the issue.
Upstream bugreport: https://bugs.freedesktop.org/show_bug.cgi?id=97542 Upstream is not going to take my patch (just received a reply from Michel Dänzer), but as it is tiny maybe it can still be applied in the Gentoo ebuild? Hi, This is still reproducible in mesa-12.0.2, with the very same error. /var/tmp/portage/media-libs/mesa-12.0.2/work/mesa-12.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp: In function ‘llvm::Module* {anonymous}::compile_llvm(llvm::LLVMContext&, const string&, const header_map&, const string&, const string&, const string&, const string&, unsigned int (&)[7], unsigned int&, std::string&)’: /var/tmp/portage/media-libs/mesa-12.0.2/work/mesa-12.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp:212:75: error: no matching function for call to ‘clang::CompilerInvocation::setLangDefaults(clang::LangOptions&, clang::InputKind, llvm::Triple, clang::LangStandard::Kind)’ clang::LangStandard::lang_opencl11); ^ /var/tmp/portage/media-libs/mesa-12.0.2/work/mesa-12.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp:212:75: note: candidate is: In file included from /usr/include/clang/Frontend/CompilerInstance.h:17:0, from /var/tmp/portage/media-libs/mesa-12.0.2/work/mesa-12.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp:25: /usr/include/clang/Frontend/CompilerInvocation.h:160:15: note: static void clang::CompilerInvocation::setLangDefaults(clang::LangOptions&, clang::InputKind, const llvm::Triple&, clang::PreprocessorOptions&, clang::LangStandard::Kind) static void setLangDefaults(LangOptions &Opts, InputKind IK, ^ /usr/include/clang/Frontend/CompilerInvocation.h:160:15: note: no known conversion for argument 4 from ‘clang::LangStandard::Kind’ to ‘clang::PreprocessorOptions&’ /var/tmp/portage/media-libs/mesa-12.0.2/work/mesa-12.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp: In function ‘llvm::MDNode* {anonymous}::node_from_op_checked(const llvm::MDOperand&, llvm::StringRef, unsigned int)’: /var/tmp/portage/media-libs/mesa-12.0.2/work/mesa-12.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp:409:12: warning: unused variable ‘str_node’ [-Wunused-variable] auto str_node = llvm::cast<llvm::MDString>(node->getOperand(0)); emerge --info: emerge --info Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.6.6 x86_64) ================================================================= System uname: Linux-4.6.6-x86_64-AMD_A8-7650K_Radeon_R7,_10_Compute_Cores_4C+6G-with-gentoo-2.2 KiB Mem: 15320932 total, 4417692 free KiB Swap: 10485756 total, 10485756 free Timestamp of repository gentoo: Mon, 05 Sep 2016 17:30:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.6.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 0 linuxunderground-overlay location: /var/lib/layman/linuxunderground-overlay masters: gentoo priority: 1 Installed sets: @steam ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=bdver3 -mtune=bdver3 -fomit-frame-pointer -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="-O2 -march=bdver3 -mtune=bdver3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" 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="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam firefox flac fortran gdbm gif glamor gles gles2 gpm iconv icu ipv6 jpeg kde kipi lcms ldap libnotify lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opencl opengl openmp pam pango pcre pdf phonon pkcs11 plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session smartcard spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vhost-net vorbis wayland widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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 (In reply to José Pekkarinen from comment #5) > This is still reproducible in mesa-12.0.2, with the very same error. Does my patch (attachment #444402 [details, diff]) still fix it? (In reply to Dennis Schridde from comment #6) > (In reply to José Pekkarinen from comment #5) > > This is still reproducible in mesa-12.0.2, with the very same error. > > Does my patch (attachment #444402 [details, diff] [details, diff]) still fix it? Certainly, it does: emerge -s mesa ... * media-libs/mesa Latest version available: 12.0.2 Latest version installed: 12.0.2 Size of files: 8,376 KiB Homepage: http://mesa3d.sourceforge.net/ Description: OpenGL-like graphic library for Linux License: MIT ... glxinfo | less ... OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD KAVERI (DRM 3.1.0 / 4.6.6, LLVM 3.9.0) OpenGL core profile version string: 4.3 (Core Profile) Mesa 12.0.2 OpenGL core profile shading language version string: 4.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: ... Thanks! José. patch also works for mesa-12.0.3 with llvm-3.9.0 This is fixed since 13.0.0_rc1. |