Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440704 - app-text/sigil-0.5.3 enforces CFLAGS="-O3 -Wall"
Summary: app-text/sigil-0.5.3 enforces CFLAGS="-O3 -Wall"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: M. B.
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-01 08:10 UTC by Nikolaj Šujskij
Modified: 2015-09-25 09:59 UTC (History)
2 users (show)

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 Nikolaj Šujskij 2012-11-01 08:10:05 UTC
While compiling app-text/sigil I've noticed the following:

/usr/lib64/distcc/bin/x86_64-pc-linux-gnu-g++  -DXERCES_STATIC_LIBRARY  -march=core2 -O2 -pipe -floop-interchange -floop-strip-mine -floop-block  -O3 -DNDEBUG ...    -Wall

 (full build.log attached)

...which, I think, enforces -O3 optimization (which I consider being bad) and -Wall warning level (which is just a bit untidy). Maybe there's something more, but I'm not that proficient in C++ compiling to notice.

So, -O3 *should* be stripped and -Wall *may* be stripped, while we're at it anyways :)
Comment 1 Nikolaj Šujskij 2012-11-01 08:11:23 UTC
Oh blast, I can't attach full build.log, it's too huge. Is it really needed?
Comment 2 Agostino Sarubbo gentoo-dev 2012-11-01 19:51:22 UTC
-Wall is not a problem...About -O3 we need to know if drop it may break something.

In that case use custom-cflags && sed "s:-O3::" $makefile
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2013-01-24 21:06:48 UTC
my only question: does 0.6.2 the same?

I want to remove anything older than 0.6.0 in a few days...
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2013-01-24 22:19:40 UTC
already removed.

feel free to reopen, if that happens with 0.6.2.
Comment 5 Nikolaj Šujskij 2013-01-25 07:17:25 UTC
> my only question: does 0.6.2 the same?

Excuse me, but did you compile it prior to adding to the tree? That's a strange question for maintainer. Yes, there's nothing new there:

cd /var/tmp/portage/app-text/sigil-0.6.2/work/sigil-0.6.2_build/src/pcre && /usr/lib64/distcc/bin/x86_64-pc-linux-gnu-gcc  -DHAVE_CONFIG_H  -march=core2 -O2 -pipe -floop-interchange -floop-strip-mine -floop-block  -O3 -DNDEBUG -I/var/tmp/portage/app-text/sigil-0.6.2/work/sigil-0.6.2_build/src/pcre -I/var/tmp/portage/app-text/sigil-0.6.2/work/src/pcre    -o CMakeFiles/pcre.dir/pcre16_exec.c.o -c /var/tmp/portage/app-text/sigil-0.6.2/work/src/pcre/pcre16_exec.c

Reopening.
Comment 6 Stefan Briesenick (RETIRED) gentoo-dev 2013-04-04 21:41:51 UTC
of course! I compile all my ebuilds more than once before I commit them. But your bugreport came AFTER I commited all these ebuilds. So before I recompile everything just for you, you can just answer my questions, if you know the answer.
Comment 7 Stefan Briesenick (RETIRED) gentoo-dev 2013-04-04 21:48:46 UTC
I would like to add sigil-0.7.1 to portage, but it seems to need Qt5, which is not in portage yet.
Comment 8 Stefan Briesenick (RETIRED) gentoo-dev 2013-04-04 22:02:30 UTC
0.6.2 can be compiled. And yes, I see a -O3 there.

BUT:

~# fgrep "O3" . -r

./src/zlib/crc32.c: * factor of two increase in speed on a Power PC G4 (PPC7455) using gcc -O3.
./src/zlib/ChangeLog:- make zlib warning-free with "gcc -O3 -Wall -Wwrite-strings -Wpointer-arith
./src/zlib/ChangeLog:- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc...
Übereinstimmungen in Binärdatei ./src/Sigil/Resource_Files/main/format-case-capitalize_22px.png.
Übereinstimmungen in Binärdatei ./src/Sigil/Resource_Files/icon/epub.icns.
Übereinstimmungen in Binärdatei ./src/Sigil/Resource_Files/icon/app_icon_512.png.
Übereinstimmungen in Binärdatei ./src/Sigil/Resource_Files/icon/Sigil.icns.
Übereinstimmungen in Binärdatei ./installer/msvc_crt/x86/msvcr100.dll.
Übereinstimmungen in Binärdatei ./installer/msvc_crt/x86/msvcp100.dll.
Übereinstimmungen in Binärdatei ./installer/msvc_crt/x64/msvcr100.dll.


This -O3 must come from elsewhere... it's at least not in the sources.
Comment 9 Nikolaj Šujskij 2013-04-05 07:46:46 UTC
(In reply to comment #6)
> But your bugreport came AFTER I commited all these ebuilds

 I reported a bug on Nov 1, and 0.6.2 was added on Jan 25.

Anyways,
> This -O3 must come from elsewhere... it's at least not in the sources

Kind of (`ag` is sys-apps/the_silver_searcher):

 % ag O3
src/zlib/crc32.c
9: * factor of two increase in speed on a Power PC G4 (PPC7455) using gcc -O3.

src/zlib/ChangeLog
1242:- make zlib warning-free with "gcc -O3 -Wall -Wwrite-strings -Wpointer-arith
1267:- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc...

 % cmake .
   ...
 % ag O3
src/zlib/crc32.c
9: * factor of two increase in speed on a Power PC G4 (PPC7455) using gcc -O3.

src/zlib/ChangeLog
1242:- make zlib warning-free with "gcc -O3 -Wall -Wwrite-strings -Wpointer-arith
1267:- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc...

CMakeCache.txt
105:CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
125:CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
Comment 10 Julian Ospald 2014-07-16 12:06:37 UTC
(In reply to Agostino Sarubbo from comment #2)
> -Wall is not a problem...About -O3 we need to know if drop it may break
> something.
> 
> In that case use custom-cflags && sed "s:-O3::" $makefile

We don't need to know it beforehand. Just expose it.
Comment 11 M. B. 2015-09-25 01:12:12 UTC
whoa there ... never knew i had this bug open.
anyway, in progress now. finally.
Comment 13 M. B. 2015-09-25 09:59:07 UTC
took a while, but it's done.