Gentoolto: dev-libs/isl-0.21 builds with -flto but fails with -flto=${NTHREADS}

Created on 28 Mar 2019  路  11Comments  路  Source: InBetweenNames/gentooLTO

I'm guessing this is the important bit.
cc: error trying to exec '/usr/libexec/gcc/x86_64-pc-linux-gnu/8.3.0/collect2': execv: Argument list too long

emerge-info.txt
build.log

Most helpful comment

A package.cflags workaround:

dev-libs/isl /-flto=*/-flto=1

This will only slow down the compilation. The performance of the isl lib shouldn't be impacted.

All 11 comments

This looks like a limits problem. Do you have any non-default settings in /etc/security/limits.conf by any chance? Or something that would normally impact the default output for ulimit -s?
Can you CTRL+Z to stop emerge in the middle of the compilation, then run ps aux to find one of the compilation process IDs (make or gcc for example), and tell us what the output of /proc/<pid_of_that_process>/limits is?

Same issue.
ulimit -s
8192
limits.conf is unmodified.

I'm reproducing. isl-0.20 compiled fine. 0.21 fails with the error mentioned in this issue. The diff between the two versions is 80k lines, so I'm not yet sure what's causing this exactly. I'm now suspecting a change in the package's build system.

A package.cflags workaround:

dev-libs/isl /-flto=*/-flto=1

This will only slow down the compilation. The performance of the isl lib shouldn't be impacted.

Turns out gentoo upstream has now masked isl-0.21 for this exact problem. For anyone using the workaround above, I think it's safe to add =dev-libs/isl-0.21 to your local package.unmask

See: https://bugs.gentoo.org/682018

Confirmed -- thanks @gcs-github for the workaround. The PR has been merged.

I haven't tried yet but seems this particular problem has been sorted by gentoo with a gcc patch.

See: https://bugs.gentoo.org/682018 (again)

Yep. That was fast :)

For some reason, the package is still masked in upstream Gentoo, but I can confirm that the problem is gone on my end.

It got unmasked just now, just needed some time.

Excellent, I will commit the revert then. Thanks for the followup!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mid-kid picture mid-kid  路  5Comments

ArniDagur picture ArniDagur  路  9Comments

nivedita76 picture nivedita76  路  17Comments

javashin picture javashin  路  4Comments

pchome picture pchome  路  14Comments