Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193373 - x11-misc/synergy-1.3.1 fails with CFLAGS containing '-Os' (-Werror)
Summary: x11-misc/synergy-1.3.1 fails with CFLAGS containing '-Os' (-Werror)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-22 00:31 UTC by Michael Klapproth
Modified: 2007-09-22 05:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Klapproth 2007-09-22 00:31:01 UTC
emerging breaks with this:

source='XSocket.cpp' object='XSocket.o' libtool=no \
        depfile='.deps/XSocket.Po' tmpdepfile='.deps/XSocket.TPo' \
        FOO=5 depmode=gcc3 /bin/sh ../../config/depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/common -I../../lib/arch -I../../lib/base -I../../lib/mt -I../../lib/io     -march=prescott -mtune=generic -Os -pipe -fomit-frame-pointer -g -Wall -Wno-unknown-pragmas -Werror   -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread  -c -o XSocket.o `test -f 'XSocket.cpp' || echo './'`XSocket.cpp
cc1plus: warnings being treated as errors
CTCPSocket.cpp: In member function »virtual void CTCPSocket::write(const void*, UInt32)«:
CTCPSocket.cpp:143: Warnung: »wasEmpty« könnte in dieser Funktion uninitialisiert verwendet werden
make[3]: *** [CTCPSocket.o] Fehler 1

Problem: CFLAGS contains -Os
Solve: Replace -Os with -O2 or -O3 or remove it complete

Additional Info:

CFLAGS="-march=prescott -mtune=generic -Os -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-22 05:03:21 UTC
emerge --info please.