InBetweenNames / gentooLTO

A Gentoo Portage configuration for building with -O3, Graphite, and LTO optimizations
GNU General Public License v2.0
570 stars 96 forks source link

dev-util/umockdev Won't build #372

Open lovesegfault opened 5 years ago

lovesegfault commented 5 years ago

Not sure why, here's a log: umockdev.log

I suspect it might be an O3 issue, but I can't get my cflag patches to work

javashin commented 5 years ago

Compiles Fine Here i just compiled Right Now

dev-util/umockdev-0.12.1::gentoo was built with the following: USE="introspection -static-libs -test" ABI_X86="32 (64) (-x32)" CFLAGS="-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=3 -fuse-linker-plugin -fno-plt -fno-math-errno -fno-trapping-math -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu" CXXFLAGS="-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=3 -fuse-linker-plugin -fno-plt -fno-math-errno -fno-trapping-math -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu" LDFLAGS="-Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu -march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=3 -fuse-linker-plugin -fno-plt -fno-math-errno -fno-trapping-math -fno-stack-protector -pipe"

 Installed versions:  0.12.1(03:45:13 PM 07/08/2019)(introspection -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
lovesegfault commented 5 years ago

@javashin What version of GCC are you on?

javashin commented 5 years ago

emerge --info Portage 2.3.68 (python 3.6.9-final-0, default/linux/amd64/17.1/systemd, gcc-9.1.0, glibc-2.29-r2, 5.1.16-zen1 x86_64)

lovesegfault commented 5 years ago

Can't for the life of me get it to compile, simply won't work. Always with that weird inlining error.

javashin commented 5 years ago

try with -O2 -march=native myabe emerge -e world if you want it so bad would fix everything and future errors

lovesegfault commented 5 years ago

Ha, using this:

CFLAGS="-O2 -march=native" emerge -1 -j1 umockdev

It builds fine!

javashin commented 5 years ago

strange here compiles with lto and everything

InBetweenNames commented 5 years ago

Seems to build here fine as well. However, I have seen that error before with other packages by users here... I've been trying to reproduce these issues for quite some time.

fireedo commented 4 years ago

hi, I'm sorry if this allowed, but I have the same problem while try to do emerge -e @world I stuck with failed about "dev-util/umockdev" (dev-util/umockdev-0.12.1) emerge-info.txt and here are my build log with 2 version with LTO and NOLTO : LTO build_lto.log NOLTO build_nolto.log

I'm not an expert, but I have to try to read, google, explore about ltoworkarounds.conf and anything that I can think of, but I think I had a dead end so, is it possible to solve this?

Thankyou

Titaniumtown commented 4 years ago

umockdev still fails to build for me. even with libtool overrides.

AntarcticanWaffles commented 3 years ago

I got the same build failure, and removing -fno-semantic-interposition seems to make it build. umockdev-fail.log

dev-util/umockdev-0.12.1::gentoo was built with the following:
USE="introspection -static-libs -test" ABI_X86="32 (64) (-x32)"
CFLAGS="-march=skylake -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed"
CXXFLAGS="-march=skylake -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -flto=auto -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed"
FEATURES="fixlafiles preserve-libs usersync config-protect-if-modified strict userpriv qa-unresolved-soname-deps xattr userfetch ebuild-locks protect-owned merge-sync distlocks ipc-sandbox multilib-strict usersandbox parallel-fetch split-elog sfperms parallel-install binpkg-logs pid-sandbox sandbox unmerge-logs network-sandbox binpkg-dostrip news unknown-features-warn assume-digests unmerge-orphans binpkg-docompress candy metadata-transfer"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=skylake -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -flto=auto -fuse-linker-plugin -pipe -falign-functions=32"