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

media-libs/glu build failure #371

Open
sandikata opened this issue Jul 8, 2019 · 6 comments
Open

media-libs/glu build failure #371

sandikata opened this issue Jul 8, 2019 · 6 comments

Comments

@sandikata
Copy link

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

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

@javashin
Copy link

javashin commented Jul 8, 2019

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
Copy link
Contributor

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

@InBetweenNames
Copy link
Owner

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

@barolo
Copy link

barolo commented Jul 17, 2019

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
Copy link
Author

~ ➜ genlop -i gcc

  • sys-devel/gcc

    Total builds: 14
    Global build time: 15 hours, 43 minutes and 19 seconds.
    Average merge time: 1 hour, 7 minutes and 22 seconds.

    Info about currently installed ebuild:

    • sys-devel/gcc-9.1.0-r1
      Install date: Mon Jul 8 06:01:55 2019
      USE=""
      CFLAGS="-march=bdver2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -O2" CXXFLAGS="-march=bdver2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -O2" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -march=bdver2 -pipe -O2"

@sandikata
Copy link
Author

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 @@

  • Silicon Graphics, Inc.
    */

+#include "stddef.h"
#include "gluos.h"
#include "gluint.h"
#include <GL/glu.h>

my dirty patch for that

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

No branches or pull requests

5 participants