Bug 57683 - Parallel build failure: generated prerequisite header not built in time (insn-opinit.h)
Summary: Parallel build failure: generated prerequisite header not built in time (insn...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.8.1
: P3 major
Target Milestone: 4.8.3
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2013-06-23 09:38 UTC by Nicolas Hannekum
Modified: 2021-10-02 08:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2017-03-15 00:00:00


Attachments
Patch to generate header insn-opinit.h early (348 bytes, text/plain)
2013-06-23 09:38 UTC, Nicolas Hannekum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Hannekum 2013-06-23 09:38:06 UTC
Created attachment 30343 [details]
Patch to generate header insn-opinit.h early

Bootstrap failure on parallel build of gcc cross compiler for ARM target. Single job build unaffected and verified to work.
In my particular circumstance, the first pass builds successfully however the second pass, which builds libgcc as well, fails due to above reason.

Build error:
In file included from <path_to_gcc_src>/gcc/lra-constraints.c:127:
<path_to_gcc_src>/gcc/optabs.h:24:25: error: insn-opinit.h: No such file or directory

Reason: Prerequisite header file 'gcc/insn-opinit.h' not generated before being required.

Solution: add 'insn-opinit.h' to 'generated_files' variable in 'gcc/Makefile.in' where prerequisite files are declared (obvious it should be there) - see attached patch.

System: Darwin host.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64 (OS X 10.8.4)
System GCC: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

Build GCC: gcc version 4.8.1 (crosstool-NG hg+unknown-20130621.174606)
Target Arch: ARM
Comment 1 zqchen 2013-11-21 02:32:53 UTC
Author: zqchen
Date: Thu Nov 21 02:32:51 2013
New Revision: 205189

URL: http://gcc.gnu.org/viewcvs?rev=205189&root=gcc&view=rev
Log:
2013-11-21  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

	PR bootstrap/57683
	Backport from mainline: r197467 and r198999.
	2013-04-03  Jeff Law  <law@redhat.com>

	* Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
	(lra-eliminations.o): Likewise.

	2013-05-16  Jeff Law  <law@redhat.com>

	* Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).

Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/Makefile.in
Comment 2 Martin Sebor 2017-03-15 23:39:56 UTC
Does the commit referenced in comment #1 fix the problem?
Comment 3 Andrew Pinski 2021-10-02 08:06:09 UTC
Fixed so closing.