pombreda / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

src/symbolize.cc:235:58: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] #185

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The Apache Mesos project uses glog 0.3.3. The Linux clang build for Mesos fails 
compiling glog.

What steps will reproduce the problem?
git clone https://git-wip-us.apache.org/repos/asf/mesos.git
cd mesos
export CC=clang
export CXX=clang++
./bootstrap
./configure
make

What is the expected output? What do you see instead?
/bin/bash ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I. 
-I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare 
-DNO_FRAME_POINTER -DNDEBUG -DGTEST_USE_OWN_TR1_TUPLE=1 -g -g2 -O2 -std=c++11 
-stdlib=libc++ -MT libglog_la-symbolize.lo -MD -MP -MF 
.deps/libglog_la-symbolize.Tpo -c -o libglog_la-symbolize.lo `test -f 
'src/symbolize.cc' || echo './'`src/symbolize.cc 
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall 
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER 
-DNDEBUG -DGTEST_USE_OWN_TR1_TUPLE=1 -g -g2 -O2 -std=c++11 -stdlib=libc++ -MT 
libglog_la-symbolize.lo -MD -MP -MF .deps/libglog_la-symbolize.Tpo -c 
src/symbolize.cc -fPIC -DPIC -o libglog_la-symbolize.o 
src/symbolize.cc:235:58: error: invalid suffix on literal; C++11 requires a 
space between literal and identifier [-Wreserved-user-defined-literal] 
      RAW_LOG(WARNING, "Section name '%s' is too long (%"PRIuS"); " 
                                                         ^

What version of the product are you using? On what operating system?
glog 0.3.3
Ubuntu 13.10
clang 3.2

Please provide any additional information below.
Mesos bug report: https://issues.apache.org/jira/browse/MESOS-966

Original issue reported on code.google.com by vins...@gmail.com on 6 Feb 2014 at 5:31