InBetweenNames / gentooLTO

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

spidermonkey:52 build failure #313

Open sandikata opened 5 years ago

sandikata commented 5 years ago

https://gist.github.com/sandikata/8a0f86d99a6aa18d56caf394d9630179

sandikata commented 5 years ago

a possible issue with -fuse-linker-plugin in CFLAGS. Newer spidermonkey build fine. There must be some workaround without -fuse-linker-plugin just for spidermonkey 52

javashin commented 5 years ago

i can confirm this and happen with last version dev-lang/spidermonkey-60.5.2_p0-r2::gentoo

removing -fuse-linker-plugin did help dev-lang/spidermonkey-60.5.2_p0-r2::gentoo was built with the following: USE="custom-cflags custom-optimization jit system-icu -debug -minimal -test" ABI_X86="(64)" CFLAGS="-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fgraphite-identity -floop-nest-optimize -fno-semantic-interposition -fuse-ld=gold -O3 -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -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 -fgraphite-identity -floop-nest-optimize -fno-semantic-interposition -fuse-ld=gold -O3 -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu"

javashin commented 5 years ago

keeps happening

javashin commented 5 years ago

this time to be able to compile spidermonkey i had to remove bashrc bashrc.d make.conf.lto make.conf.lto.defines package.cflags from /etc/portage , delete all the leftovers from gentooLTO overay to make it compile i dont know why there is something wrong with this bashrc bashrc.d from mv:overlay do we really need mv overlay ?

sandikata commented 5 years ago

I don't know what to tell you, a -r1 spidermonkey fails to build.

javashin commented 5 years ago

i had successfully emerged spidermonkey but like i say dev-lang/spidermonkey-60.5.2_p0-r3::gentoo was built with the following: USE="custom-cflags custom-optimization jit system-icu -debug -minimal -test" ABI_X86="(64)" CFLAGS="-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fgraphite-identity -floop-nest-optimize -fno-semantic-interposition -fuse-ld=gold -O3 -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe" CXXFLAGS="-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fgraphite-identity -floop-nest-optimize -fno-semantic-interposition -fuse-ld=gold -O3 -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe"

i had to remove bashrc bashrc.d make.conf.lto make.conf.lto.defines package.cflags from /etc/portage

javashin commented 5 years ago

and make.conf