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

Bug 374383

Summary: =app-text/libwps-0.2.2: fails to build with gcc-4.6
Product: Gentoo Linux Reporter: Matt Turner <mattst88>
Component: New packagesAssignee: GNOME Office (OBSOLETE) <gnome-office+disabled>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346809    
Attachments: build.log

Description Matt Turner gentoo-dev 2011-07-07 19:40:11 UTC
Created attachment 279361 [details]
build.log

WPS4.cpp: In member function 'bool WPS4Parser::readFODPage(WPXInputStream*, std::vector<FOD>*)':
WPS4.cpp:201:11: error: variable 'fcFirst' set but not used [-Werror=unused-but-set-variable]
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I.   -I/usr/include/libwpd-0.9   -DNDEBUG -O2 -march=native -flto -fwhole-program -pipe -Wall -Werror -pedantic -c -o WPSPageSpan.lo WPSPageSpan.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I/usr/include/libwpd-0.9 -DNDEBUG -O2 -march=native -flto -fwhole-program -pipe -Wall -Werror -pedantic -c WPSPageSpan.cpp  -fPIC -DPIC -o .libs/WPSPageSpan.o
cc1plus: all warnings being treated as errors

make[3]: *** [WPS4.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
WPS8.cpp: In member function 'void WPS8Parser::readStreams(WPXInputStream*)':
WPS8.cpp:162:12: error: variable 'unknown' set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
Comment 1 Matt Turner gentoo-dev 2011-07-07 19:45:45 UTC
I just switched my gcc profile around a few times and now it works..