Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374707 - =mail-client/thunderbird-5.0 adds itself -pipe and -g
Summary: =mail-client/thunderbird-5.0 adds itself -pipe and -g
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 14:21 UTC by Agostino Sarubbo
Modified: 2011-10-31 21:57 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 Agostino Sarubbo gentoo-dev 2011-07-10 14:21:13 UTC
as per $summary, with + o - custom-optimization/custom-cflags, the buildsystem adds itself -pipe and add itself also -g with USE="-debug"

small example from log:


x86_64-pc-linux-gnu-g++ -o nsConsoleService.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include ../../config/gcc_hidden.h -DXP_LINUX -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DMOZ_THUNDERBIRD=1 -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -D_IMPL_NS_COM -I./../build -I. -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -march=native -Wno-return-type -w -mno-avx -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fomit-frame-pointer  -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -I/usr/include/gtk-unix-print-2.0     -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/nsConsoleService.pp nsConsoleService.cpp
Comment 1 Agostino Sarubbo gentoo-dev 2011-07-10 15:30:55 UTC
same thing for firefox-5.0-r2
Comment 2 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-07-11 16:16:44 UTC
Adding -pipe is fine, but adding -g is a problem.
Comment 3 Agostino Sarubbo gentoo-dev 2011-07-11 16:24:42 UTC
(In reply to comment #2)
> Adding -pipe is fine

Not all fine, it increases the dimension of code at build time, if user wants, adds it in his make.conf ;)
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-07-11 18:45:49 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Adding -pipe is fine
> 
> Not all fine, it increases the dimension of code at build time, if user wants,
> adds it in his make.conf ;)

What do you mean by dimension of code?

-pipe only causes gcc to pipe data instead of writing temporary files. It is pretty much always faster. I know of no reason to not enable it.
Comment 5 Agostino Sarubbo gentoo-dev 2011-07-11 19:03:23 UTC
(In reply to comment #4)
> -pipe only causes gcc to pipe data instead of writing temporary files. It is
> pretty much always faster. I know of no reason to not enable it.

Is not advised for system with short ram, I repeate, if you want, add it to your make.conf but it shouldn't be enabled for all


From: http://www.gentoo.org/doc/en/gcc-optimization.xml

It tells the compiler to use pipes instead of temporary files during the different stages of compilation(as you sayd), which uses *more* memory. On systems with low memory, gcc might get killed. In that case, do not use this flag.
Comment 6 Jory A. Pratt gentoo-dev 2011-10-31 21:57:11 UTC
If any can be duplicated or reproduce feel free to update summary and reopen please.