Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536488 - media-libs/mesa-10.4.2 - In function ‘void {anonymous}::debug_log(const string&, const string&)’: llvm/invocation.cpp:127:60: error: no matching function for call to ‘std::basic_ofstream<char>::basic_ofstream(std::basic_string<char>, const openmode&)’
Summary: media-libs/mesa-10.4.2 - In function ‘void {anonymous}::debug_log(const strin...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 15:31 UTC by ajpatter
Modified: 2015-02-21 22:10 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,71.87 KB, application/gzip)
2015-01-13 15:35 UTC, ajpatter
Details
emerge --info =media-libs/mesa-10.4.2 (emerge.info,19.29 KB, text/plain)
2015-01-17 15:53 UTC, Franz Brauße
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajpatter 2015-01-13 15:31:37 UTC
emerge --info =media-libs/mesa-10.4.2
Portage 2.2.15 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r1, 3.18.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4750HQ_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     8093576 total,   1153976 free
KiB Swap:    8388604 total,   7582816 free
Timestamp of tree: Tue, 13 Jan 2015 11:45:01 +0000
sh bash 4.3_p33
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.3_p33
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo java lisp dotnet
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/"
LANG="en_US.utf8"
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"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java /var/lib/layman/lisp /var/lib/layman/dotnet"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="10bit 256-color X a52 aac aacs acl acpi alsa amd64 apng auto-hinter autoipd avahi backtrace bash-completion berkdb bindist bluetooth bluray branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr cjk cli clock cracklib crypt cups cxx dbus device-mapper dhclient directfb djvu dri dri3 drmkms dts dvd dvdr dvi dynload egl emacs emboss en en_US encode exif fam fbcon ffmpeg firefox flac fontconfig fortran gallium gcj gdbm gif glamor gles gles1 gles2 gnome gnutls gpm gstreamer gtk gtk3 gudev guile harfbuzz http iconv icu id3tag infinality ipv6 java javascript jemalloc jit jpeg jpeg2k jpg kerberos keyboard kms lame latex lcms ldap leveldb libass libguess libkms libnotify libsecret libxml2 lm_sensors lto lua luajit lzma mad minizip mmx mng modules mouse mp3 mp4 mpeg mpeg2 mpg123 multicore multilib musicbrainz ncurses net45 networking networkmanager nls nptl odf offensive ogg opencl opengl openmax openmp openvg opus pam pango pcre pdf places plot plymouth png policykit postgres postproc postscript ppds prediction preview-latex pulseaudio qt3support readline resolvconf s3tc sasl sbcl scanner sdl sensord session smpeg snmp sound source speex spell sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse2 ssse3 svg system-cairo system-icu system-jpeg system-libvpx system-sqlite systemd systemtap taglib tcpd theora threads tiff truetype udev udisks unicode upower usb uxa vaapi vesa vf-dlopen visualizer vorbis vpx webp wifi wxwidgets x264 xa xcb xft xml xorg xpm xps xv xvid zeroconf 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" 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" INPUT_DEVICES="synaptics evdev roccat_konepureoptical" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp pnm hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

emerge -pqv =media-libs/mesa-10.4.2
[ebuild     U ] media-libs/mesa-10.4.2 [10.3.7] USE="bindist classic dri3 egl gallium gbm gles1 gles2 llvm nptl opencl openmax udev vaapi%* xa -debug -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xvmc (-openvg%*)" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="i965 intel (-freedreno) -i915 -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 15:34:52 UTC
Please attach the entire build log to this bug report.
Comment 2 ajpatter 2015-01-13 15:35:13 UTC
Created attachment 393858 [details]
build.log.gz
Comment 3 Franz Brauße 2015-01-17 15:53:13 UTC
Created attachment 394164 [details]
emerge --info =media-libs/mesa-10.4.2

I have the same problem. A possible workaround is specifying a C++11 compiler switch via CXXFLAGS like so:

CXXFLAGS=-std=c++11 emerge -a1 mesa
Comment 4 ajpatter 2015-01-17 20:59:59 UTC
(In reply to Franz Brauße from comment #3)
> Created attachment 394164 [details]
> emerge --info =media-libs/mesa-10.4.2
> 
> I have the same problem. A possible workaround is specifying a C++11
> compiler switch via CXXFLAGS like so:
> 
> CXXFLAGS=-std=c++11 emerge -a1 mesa

That worked, thanks.
Comment 5 f1r31c3r 2015-02-09 12:45:44 UTC
I can confirm the same problem.

libtool: link: ( cd ".libs" && rm -f "libcltgsi.la" && ln -s "../libcltgsi.la" "libcltgsi.la" )
llvm/invocation.cpp: In function ‘void {anonymous}::debug_log(const string&, const string&)’:
llvm/invocation.cpp:127:60: error: no matching function for call to ‘std::basic_ofstream<char>::basic_ofstream(std::basic_string<char>, const openmode&)’
         std::ofstream file(dbg_file + suffix, std::ios::app);
                                                            ^
llvm/invocation.cpp:127:60: note: candidates are:
In file included from llvm/invocation.cpp:73:0:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/fstream:640:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
       basic_ofstream(const char* __s,
       ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/fstream:640:7: note:   no known conversion for argument 1 from ‘std::basic_string<char>’ to ‘const char*’
In file included from llvm/invocation.cpp:73:0:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/fstream:625:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits = std::char_traits<char>]
       basic_ofstream(): __ostream_type(), _M_filebuf()
       ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/fstream:625:7: note:   candidate expects 0 arguments, 2 provided
In file included from llvm/invocation.cpp:73:0:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/fstream:599:11: note: std::basic_ofstream<char>::basic_ofstream(const std::basic_ofstream<char>&)
     class basic_ofstream : public basic_ostream<_CharT,_Traits>
           ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/fstream:599:11: note:   candidate expects 1 argument, 2 provided
Makefile:852: recipe for target 'llvm/libclllvm_la-invocation.lo' failed
make[3]: *** [llvm/libclllvm_la-invocation.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.4.4/work/Mesa-10.4.4-abi_x86_64.amd64/src/gallium/state_trackers/clover'
Makefile:561: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.4.4/work/Mesa-10.4.4-abi_x86_64.amd64/src/gallium'
Makefile:526: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.4.4/work/Mesa-10.4.4-abi_x86_64.amd64/src'
Makefile:594: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 * ERROR: media-libs/mesa-10.4.4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-10.4.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-10.4.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/mesa-10.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-10.4.4/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/mesa-10.4.4/work/Mesa-10.4.4-abi_x86_64.amd64'
 * S: '/var/tmp/portage/media-libs/mesa-10.4.4/work/Mesa-10.4.4'


Looks like compiler version change

CXXFLAGS=-std=c++11 emerge -a1 mesa

Does allow for Mesa to compile and install.

Message on the GNU.GCC org

"Important: GCC's support for C++11 is still experimental. Some features were implemented based on early proposals, and no attempt will be made to maintain backward compatibility when they are updated to match the final C++11 standard.
C++11 Language Features

The following table lists new language features that have been accepted into the C++11 standard. The "Proposal" column provides a link to the ISO C++ committee proposal that describes the feature, while the "Available in GCC?" column indicates the first version of GCC that contains an implementation of this feature (if it has been implemented).

For information about C++11 support in a specific version of GCC, please see:

    GCC 4.3 C++0x Status
    GCC 4.4 C++0x Status
    GCC 4.5 C++0x Status
    GCC 4.6 C++0x Status
    GCC 4.7 C++11 Status
    GCC 4.8 C++11 Status
"

GCC URL for c++11 status: https://gcc.gnu.org/gcc-4.8/cxx0x_status.html
Feel free to browse the GCC regarding this but the USE=c++11 is ok for now, not sure what else can be said really.

Thank you for the pointer Franz B...
Comment 6 Matt Turner gentoo-dev 2015-02-21 19:10:43 UTC
From your build log:

> LLVM_CXXFLAGS:   -I/usr/include   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS     

When I configure mesa-10.5.0_rc1, I see

>         LLVM_CXXFLAGS:   -I/usr/include   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++11       

I'm using llvm-3.5.0.

What version of LLVM do you have? Perhaps we need to raise the minimum requirement.
Comment 7 ajpatter 2015-02-21 19:28:28 UTC
(In reply to Matt Turner from comment #6)
> From your build log:
> 
> > LLVM_CXXFLAGS:   -I/usr/include   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS     
> 
> When I configure mesa-10.5.0_rc1, I see
> 
> >         LLVM_CXXFLAGS:   -I/usr/include   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++11       
> 
> I'm using llvm-3.5.0.
> 
> What version of LLVM do you have? Perhaps we need to raise the minimum
> requirement.

I'm on LLVM 3.5.1. I can't remember whether or not that was the case when I had this problem. Regardless, 3.5.0-r1 does now build for me without any special environment.
Comment 8 ajpatter 2015-02-21 21:24:12 UTC
(In reply to ajpatter from comment #7)

> Regardless, 3.5.0-r1 does now build for me without any
> special environment.

10.5.0-r1, that is.
Comment 9 Matt Turner gentoo-dev 2015-02-21 22:10:57 UTC
Thanks. I suppose we'll mark as WORKSFORME until a time when someone else notices.