Skip to content

ghc-stage1: unrecognised flags: -fno-asm-mangling

Clean git checkout, copied mk/build.mk.sample to mk/build.mk, set BuildFlavour = devel2 and added:

GhcUnregisterised=YES

Then ran configure and make and got:

rts-1.0: Warning: library-dirs: /home/erikd/ghc-upstream-unreg/rts/dist/build doesn't exist or isn't a directory
rts-1.0: cannot find libHSrts.a on library path (ignoring)
"inplace/bin/ghc-cabal" configure --with-ghc="/home/erikd/ghc-upstream-unreg/inplace/bin/ghc-stage1" --with-ghc-pkg="/home/erikd/ghc-upstream-unreg/inplace/bin/ghc-pkg" --with-gcc="/usr/bin/gcc" --configure-option=--with-cc="/usr/bin/gcc" --flag=include-ghc-prim --enable-library-for-ghci --with-hscolour="/usr/bin/HsColour" --configure-option=CFLAGS=" -fno-stack-protector  " --configure-option=LDFLAGS="   " --configure-option=CPPFLAGS="   " -- dist-install libraries/ghc-prim
Configuring ghc-prim-0.2.0.0...
ghc-stage1: unrecognised flags: -fno-asm-mangling
Usage: For basic information, try the `--help' option.
make[1]: *** [libraries/ghc-prim/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
Trac metadata
Trac field Value
Version 7.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information