Skip to content

libraries/base/dist-install/build/HSbase-4.9.0.0.o: unknown symbol `stat'

When I make the following change:

--- a/mk/flavours/validate.mk
+++ b/mk/flavours/validate.mk
@@ -2,7 +2,7 @@ SRC_HC_OPTS        = -O0 -H64m
 SRC_HC_OPTS_STAGE1 = -fllvm-fill-undef-with-garbage   # See Trac 11487
 GhcStage1HcOpts    = -O -DDEBUG
 GhcStage2HcOpts    = -O -dcore-lint
-GhcLibHcOpts       = -O -dcore-lint
+GhcLibHcOpts       = -O0 -dcore-lint
 BUILD_PROF_LIBS    = NO
 SplitObjs          = NO
 HADDOCK_DOCS       = YES

And push to Travis (DYNAMIC_GHC_PROGRAMS = NO, GhcLibWays = v), a gazillion tests fail with:

libraries/base/dist-install/build/HSbase-4.9.0.0.o: unknown symbol `stat'

Originally reported in https://github.com/snowleopard/hadrian/issues/259.

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System (Linker)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC Phyx-, erikd
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information