

Ok sorry I don't undestand.teefax wrote:Yes, I've read that. I meant, is it possible to disable PIE?
I'm not sure, then wait another answer, but I think that correct way is to mask use flag pieteefax wrote:It seems the PIE use flag is forced for the 17.0 profile. Is it sufficient to add -fno-pie to my CFLAGS in make.conf ?
Code: Select all
* Use gcc-config to select gcc-6.4.0 or later as system compiler
* Re-source /etc/profile:
. /etc/profile
* Re-emerge libtool
emerge -1 sys-devel/libtool
Then,
* Select the new profile with eselect
* Re-emerge, in this sequence, gcc, binutils, and glibc
emerge -1 sys-devel/gcc:6.4.0
emerge -1 sys-devel/binutils
emerge -1 sys-libs/glibc
* Rebuild your entire system
emerge -e @world
Code: Select all
emerge -1 sys-devel/gcc-7.2.0
Code: Select all
emerge -1 /lib*/*.a /usr/lib*/*.aCode: Select all
# emerge @preserved-rebuild -av
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-db/sqlitebrowser-3.9.1-r1::gentoo USE="{-test}" 0 KiB
[ebuild R ] media-video/vcdimager-0.7.24::gentoo USE="xml -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R ] gnome-base/gvfs-1.32.1::gentoo USE="bluray cdda gtk http (policykit) samba udev udisks -afp -archive -fuse -gnome-keyring -gnome-online-accounts -google -gphoto2 -ios -mtp -nfs -systemd {-test} -zeroconf" 0 KiB
[ebuild R ] media-libs/xine-lib-1.2.8:1::gentoo USE="X a52 aac aalib alsa bluray css directfb dts dvb fbcon flac gtk imagemagick jpeg libcaca mad mmap mng modplug nls opengl samba sdl speex theora truetype v4l vcd vorbis xinerama xv xvmc (-altivec) -dxr3 -fusionsound -ipv6 -jack -libav -musepack -oss -pulseaudio -vaapi -vdpau -vdr (-vidix) (-vis) -vpx -wavpack -xcb" 0 KiB
Total: 4 packages (4 reinstalls), Size of downloads: 0 KiB

Thanks for the reply, do you mean I can just select the new profile and then emerge -e @world or do I still need to compile sys-devel/binutils and sys-libs/glibc (already done up to emergeing sys-devel/libtool).asturm wrote:No need to if you're already on 7.2.

Sorry, the news item was originally written when gcc-7.2 was still without keywords.slackline wrote:Thanks for the reply, do you mean I can just select the new profile and then emerge -e @world or do I still need to compile sys-devel/binutils and sys-libs/glibc (already done up to emergeing sys-devel/libtool).asturm wrote:No need to if you're already on 7.2.
Sorry for the dumb quesiton, just not clear to me what it is I've no need to do.
Thats great, thanks for the clarification dilfridge, not adverse to rebuilding world so will forge ahead.dilfridge wrote:
If you're already on 7.2, just replace 6.4.0 with 7.2.0 everywhere in the instructions. You still need to follow the whole procedure though to be 100% sure that everything works.

Code: Select all
ERROR: compile
ERROR: www-client/firefox-52.4.0::gentoo failed (compile phase):
Failed to run 'emake -f client.mk profiledbuild'
Call stack:
ebuild.sh, line 124: Called src_compile
environment, line 5146: Called virtx 'emake' '-f' 'client.mk' 'profiledbuild'
environment, line 6226: Called die
The specific snippet of code:
[[ ${retval} -ne 0 ]] && die "Failed to run '$@'";



I, too, have the same question. What information I did find was vague and waaaaay over my head. For instance, according to this doc for Clang 6: https://clang.llvm.org/docs/ThreadSanitizer.htmlSoul Reaver wrote:So how does this relate to clang? I use clang as my main compiler, falling back to gcc for some incompatible packages. Is it sufficient to recompile those packages built with gcc? Are clang built binaries even compatible with gcc (+pie) built binaries?
So, we should put fsanitize=thread in our make.conf?Non-position-independent executables are not supported. Therefore, the fsanitize=thread flag will cause Clang to act as though the -fPIE flag had been supplied if compiling without -fPIC, and as though the -pie flag had been supplied if linking an executable.

Code: Select all
emerge 'media-libs/sdl-net-1.2.8-r1'
Code: Select all
emerge -DNUa sdl-net

On an x86 system, one should be able to measure it. On an amd64 system, it should be rather hard to construct an example where one can measure any difference.Spargeltarzan wrote:@klynastor: Do you think you will be even able to measure this performance difference?

Code: Select all
for ix in `cat ~user/17.0.lost.txt`; do emerge -1 "=$ix:0"; done;
Where is a drama?asturm wrote:If it's just a CFLAG default, why the drama?
