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

Bug 612526

Summary: games-arcade/wop-0.4.3-r1 : global.cpp:96:36: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’ for argument ‘2’ to ‘int fprintf(FILE*, const char*, ...)’
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: plevine457
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 582084    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-arcade:wop-0.4.3-r1:20170313-134018.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-03-13 18:04:46 UTC
x86_64-pc-linux-gnu-g++ -Werror=terminate -O2 -pipe -march=native -fno-exceptions -fno-strict-aliasing -ffloat-store -DDBG_LEVEL=4 -DLOG_LEVEL=4 -DUSE_SDL -DNEW=new\(std::nothrow\) -I../sdlwidgets -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -c global.cpp -o global.o
global.cpp: In function ‘void INFO(const char*, ...)’:
global.cpp:96:36: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’ for argument ‘2’ to ‘int fprintf(FILE*, const char*, ...)’
  fprintf( logFile, GREEN("INFO: ") );
                                    ^
global.cpp: In function ‘bool CHECK(bool, const char*, ...)’:

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named plasma-abi32+64_20170309-193709) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-03-13 18:04:49 UTC
Created attachment 466940 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-13 18:04:52 UTC
Created attachment 466942 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-03-13 18:04:55 UTC
Created attachment 466944 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-03-13 18:04:58 UTC
Created attachment 466946 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-03-13 18:05:01 UTC
Created attachment 466948 [details]
games-arcade:wop-0.4.3-r1:20170313-134018.log
Comment 6 Toralf Förster gentoo-dev 2017-03-13 18:05:05 UTC
Created attachment 466950 [details]
temp.tbz2
Comment 7 Peter Levine 2017-03-17 02:11:38 UTC
Pull request: https://github.com/gentoo/gentoo/pull/4222
Comment 8 David Seifert gentoo-dev 2017-03-25 12:50:49 UTC
commit 313fde3785bcf2d23478b9780535cf0ecc81a8db
Author: Peter Levine <plevine457@gmail.com>
Date:   Fri Mar 17 21:10:16 2017 -0400

    games-arcade/wop: Fix GCC-6 build
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=612526