Bug 41871 - lto-plugin gives: could not open/create temporary file
Summary: lto-plugin gives: could not open/create temporary file
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: espindola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-29 20:42 UTC by Toon Moene
Modified: 2009-10-30 18:31 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toon Moene 2009-10-29 20:42:35 UTC
This might be a limit-on-number-of-open-files issue.

I encounter it while trying to link with link time optimization *and* using the linker plugin an executable which needs loads of object files from two dozen libraries.

To study this, use a program that's build from libraries and linked as follows:

gcc [optimization options] -flto -fwhole-program -fuse-linker-plugin -o exe mainprogram.c lib1.a lib2.a ... libn.a

To enforce the limit, use the following command in bash

ulimit -n <some small number around 20>
Comment 1 espindola 2009-10-30 18:31:53 UTC
Fixed on revision 153764.