InBetweenNames / gentooLTO

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

Strange build issue with dev-util/colm #694

Open kartebi opened 3 years ago

kartebi commented 3 years ago

I am building on a new harddrive and ragel failed to build as per issue #690. I made the dev-util/colm NOLAFILEREMOVE=true change and tried to rebuild colm But it failed to build with gen/if1.h no such file .... but it already had been build wtf ? so i tried again. It failed to build with gen/if2.h now.... wtf tried 2-3 more times with fails either if1.h or if2.h but after some tries it build with no error....... The only thing different in this new build is i have enabled globally jemalloc and jit (not on gcc) use flags..... my knowledge ends here.

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../src/aapl -Iinclude -Wall -DPREFIX='"/usr"' -DLOAD_COLM -march=znver1 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -Wl,-O1 -Wl,--as-needed -c -o gen/bootstrap2-if2.o test -f 'gen/if2.cc' || echo './'gen/if2.cc gen/if2.cc:1:10: fatal error: gen/if2.h: No such file or directory 1 | #include "gen/if2.h" | ^~~ compilation terminated. make[1]: [Makefile:1526: gen/bootstrap2-if2.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.6/work/colm-0.14.6/src' make: [Makefile:486: all-recursive] Error 1

kartebi commented 3 years ago

Ok , build some more and i came into a bug with ruby and jemalloc flag enabled I found this https://bugs.gentoo.org/617518 So i put FEATURE="-sandbox -usersandbox" and ruby build fine. So i tried building colm again and it build successfully 4 times in a row

My guess its a gentoo bug with jemalloc and sandbox, but i prob cant fill a bug report while using this repository

thesamesam commented 3 years ago

Can you try with the latest version in Gentoo? There was a makefile dependency issue (as in: parallel jobs issue, mainly).

kartebi commented 3 years ago

Can you try with the latest version in Gentoo? There was a makefile dependency issue (as in: parallel jobs issue, mainly).

Enabled jemalloc again and both ruby and colm build fine. A note though i'm no longer using gentoLTO (had to revert to vanilla gentoo due to trying to solve a nvidia bug). I have to rebuild the whole system to check this with gentooLTO