Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-cluster/glusterfs: enable LTO, disable O3 #807

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aruhier
Copy link
Contributor

@aruhier aruhier commented Nov 25, 2021

LTO is enabled by default for debian builds, and is now safe to enable.
O3 produces segfault when mounting a volume.

LTO is enabled by default for debian builds, and is now safe to enable.
O3 produces segfault when mounting a volume.
@inode64
Copy link

inode64 commented Feb 11, 2023

I have used cflags only with "-pipe -march=native -O3" and it works correctly
This is my emerge --info
Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-12, glibc-2.36-r5, 5.15.41-gentoo x86_64)

System uname: Linux-5.15.41-gentoo-x86_64-Intel-R-_Xeon-R-Silver_4310_CPU@_2.10GHz-with-glibc2.36
KiB Mem: 263584504 total, 1845564 free
KiB Swap: 8388604 total, 20 free
Timestamp of repository gentoo: Thu, 09 Feb 2023 09:00:01 +0000
Head commit of repository gentoo: 2621753c65346ee47a1ef0528e40407e848b0f98
Head commit of repository inode64-overlay: a4f5dea9d5d304b3733f6f0b5dee125358871ff1

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r2::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.36.0-r1::gentoo
dev-lang/python: 3.10.9-r1::gentoo
dev-lang/rust-bin: 1.66.1::gentoo
dev-util/cmake: 3.25.2::gentoo
dev-util/meson: 0.64.1::gentoo
sys-apps/baselayout: 2.9::gentoo
sys-apps/openrc: 0.45.2-r2::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-apps/systemd: 252.4-r1::gentoo
sys-devel/autoconf: 2.71-r5::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc: 12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config: 2.8::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.36-r5::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-extra-opts: --delete-during
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24

inode64-overlay
location: /usr/portage/local/inode64
sync-type: git
sync-uri: https://github.com/inode64/inode64-overlay.git
masters: gentoo
volatile: True

inode64-private
location: /usr/portage/local/inode64-private
sync-type: svn
sync-uri: svn+ssh://svn.vpn.srvdr.com/srv/svn/portage
masters: gentoo
volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /var/bind /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="es_ES es en"
MAKEOPTS="-j48"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="zstd"
PORTAGE_COMPRESS_FLAGS="-9 -T0 --rm"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-during"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl addc ads amd64 apache2 boost brotli bzip2 caps cgi clamav cli crypt cups curl dbus device-mapper dri elf elfutils exif expat firewalld fontconfig geoip2 gf gif gmp gpm gssapi heif highlight http2 iconv icu idn imap introspection ipmi ipv6 ithreads jbig jemalloc jit jpeg lcms ldap libbsd libglvnd libtirpc libvirt lm-sensors lvm lz4 lzma lzo mysql nat ncurses net netlink nettle network nls nptl numa openmp openssl pam pcre pdf png policykit portage postscript readline samba seccomp slang snmp spell split-usr sqlite ssl subversion system-icu systemd test-rust threads tiff truetype udev udisks unicode usb usbredir vhosts webp winbind xattr xml xxhash zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_socache reqtimeout ratelimit authn_alias authz_dbd dav_fs dav_lock auth_basic authz_user auth_digest authz_host authn_file alias brotli filter deflate expires headers info cgi cgid dav rewrite log_config logio env setenvif mime mime_magic status autoindex asis negotiation dir actions cache cache_socache proxy proxy_connect proxy_ftp proxy_http include unique_id access_compat authn_dbd dbd macro http2 proxy_html substitute proxy_fcgi remoteip unixd authn_core authz_core socache_shmcb xml2enc authn_anon authn_dbm authz_dbm authz_groupfile authz_owner cache_disk version session session_cookie session_crypto" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="es-ES es en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" NGINX_MODULES_HTTP="access auth_basic autoindex browser addition brotli charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi flv geoip2 fancyindex mp4 spdy realip pstream_hash upstream_keepalive upstream_least_conn upstream_zone upstream_hash" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres14" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants