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

media-libs/glu build failure #371

Open sandikata opened 5 years ago

sandikata commented 5 years ago

https://gist.github.com/sandikata/541c7b0559c90398afc2b6bfe78c1c69

build failure on such package, i cannot get it work, i need some tips.

javashin commented 5 years ago

Strange is Fine here media-libs/glu-9.0.0-r1::gentoo was built with the following: USE="-static-libs" 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" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" 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:  9.0.0-r1(07:28:37 PM 06/24/2019)(-static-libs ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
elsandosgrande commented 5 years ago

I compiled glu without any issues: https://gist.github.com/elsandosgrande/9304f086332e8e16b87900df308d94d5

InBetweenNames commented 5 years ago

I'm also not able to reproduce this -- the error itself looks pretty odd. How was GCC built?

barolo commented 5 years ago

Just got hit by this, out of 1k packages this one failed, it might be not GLTO related though as it doesn't build with default flags even

sandikata commented 5 years ago

~ ➜ genlop -i gcc

sandikata commented 5 years ago

cat /etc/portage/patches/media-libs/glu-9.0.0-r1/glu-stddef-fix.patch --- work/glu-9.0.0/src/libutil/error.c.orig 2019-07-08 16:16:22.409908650 +0300 +++ work/glu-9.0.0/src/libutil/error.c 2019-07-08 16:16:41.446397150 +0300 @@ -28,6 +28,7 @@

+#include "stddef.h"

include "gluos.h"

include "gluint.h"

include <GL/glu.h>

my dirty patch for that