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

Clemens Fruhwirth clemens at endorphin.org
Thu Dec 21 03:57:41 EST 2006


At Wed, 6 Dec 2006 09:40:47 +0200,
wld <volodimir.rudenko at gmail.com> wrote:

> ghc-6.7: /home/wld/test/fptools/libraries/unix/HSunix.o: unknown symbol `lstat'

For a quick fix add -fvia-c to

GhcLibHcOpts = -O -fvia-c

in mk/build.mk, run make clean; make in libraries/unix.

After a quick glance, I can't see a way to force -fvia-c just for the
unix package. There are environment variables that are used for some
compilation flags of the unix package (like unix_SRC_HSC2HS_OPTS) but
there are none for ghc compile flags. So the only way is to set them
for all library packages.
--
Fruhwirth Clemens - http://clemens.endorphin.org 
for robots: sp4mtrap at endorphin.org






More information about the Glasgow-haskell-bugs mailing list