Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Build fails: compiler/prelude/primops.txt.pp:76:10: fatal error: 'ghc_boot_platform.h' file not found #145

Closed
angerman opened this issue Jan 10, 2016 · 2 comments
Assignees
Labels

Comments

@angerman
Copy link
Collaborator

I guess this is due to the recent changes towards fixing #113. I'll just document this here, so it doesn't get lost.

/-----------------------------------------------------\
| Run HsCpp (stage = Stage1, package = ghc)           |
|     input: compiler/prelude/primops.txt.pp          |
| => output: .build/stage1/compiler/build/primops.txt |
\-----------------------------------------------------/
compiler/prelude/primops.txt.pp:76:10: fatal error: 'ghc_boot_platform.h' file not found
#include "ghc_boot_platform.h"
         ^
1 error generated.
shakeArgsWith   0.002s    0%                           
Function shake  0.037s    3%                           
Database read   0.000s    0%                           
With database   0.000s    0%                           
Running rules   1.110s   96%  =========================
Total           1.149s  100%                           
Error when running Shake build system:
* utils/mkUserGuidePart/stage1/build/tmp/mkUserGuidePart
* OracleQ (PackageDataKey (".build/stage1/utils/mkUserGuidePart/package-data.mk",".build_stage1_utils_mkUserGuidePart_C_SRCS"))
* .build/stage1/utils/mkUserGuidePart/package-data.mk
* .build/stage1/compiler/package-data.mk
* .build/stage1/compiler/build/primop-can-fail.hs-incl
* .build/stage1/compiler/build/primops.txt
user error (Development.Shake.cmd, system command failed
Command: /usr/bin/gcc -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs -P -Iincludes -Iincludes/dist-derivedconstants/header -Icompiler/stage1 -x c compiler/prelude/primops.txt.pp
Exit code: 1
Stderr:
compiler/prelude/primops.txt.pp:76:10: fatal error: 'ghc_boot_platform.h' file not found
#include "ghc_boot_platform.h"
         ^
1 error generated.
)
@angerman angerman added the bug label Jan 10, 2016
snowleopard added a commit that referenced this issue Jan 10, 2016
@snowleopard
Copy link
Owner

I think I found the reason: wrong include path passed to some builders (-Icompiler/stage1).

The above commit should fix it.

@angerman
Copy link
Collaborator Author

Ok. This one is fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants