Building HEAD with -fasm: error in package 'unix'

wld volodimir.rudenko at gmail.com
Wed Dec 6 02:40:47 EST 2006


Hi,

I have built GHC HEAD yesterday.
My build.mk is:

GhcCompilerWays =
GhcRTSWays = thr
GhcLibWays =

SRC_HC_OPTS = -O
GhcHcOpts = -O
GhcLibHcOpts = -O

Options -O and -fvia-C have separated recently.
So libraries and the stage2 compiler were compiled
by the native code generator. The build finished
without any errors, but the following command failed:

$ ./compiler/stage2/ghc-inplace --interactive -package ghc
   ___         ___ _
  / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 6.7, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package readline-1.0 ... linking ... done.
ghc-6.7: /home/wld/test/fptools/libraries/unix/HSunix.o: unknown symbol `lstat'
Loading package unix-1.0 ... linking ... ghc-6.7: unable to load
package `unix-1.0'

I think, the reason  of this error is that 'lstat' is a macro but the native
generator do not look into C headers to find a real name.

-- 
V.Rudenko
--
λ is the ultimate


More information about the Glasgow-haskell-bugs mailing list