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

2006-12-05 Thread wld

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
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: unsafeCoerce#

2006-07-30 Thread wld

On 7/31/06, Neil Mitchell <[EMAIL PROTECTED]> wrote:

Hi,

Finding unsafeCoerce# in the documentation is challenging at best.
It's not indexed by Haddock, which in turn means its not indexed by
Hoogle. Lambdabot doesn't find it. Googling gave me GhcExts (from an
old Happy file), which I guessed at GHC.Exts.

Someone in #haskell suggested GHC.Base. I'm not sure where I should
import it from, but it would be nice if the docs included it
somewhere.


Hi, GHC.Prim module say at the end of its export section:

-- * Coercion
-- |@unsafeCoerce\# :: a -> b@ is not a primop, but is defined in MkId.lhs.

In MkId.lhs , see \subsection{Un-definable}

HTH,
V.Rudenko
--
λ is the ultimate
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: One-character bug in time library

2006-06-05 Thread wld

Sorry ;)

On 6/5/06, wld <[EMAIL PROTECTED]> wrote:

Hi,

File package.conf.in (darcs GHC HEAD) contains
the following line:
  hs-libraries:   "HSTime"

This should be of course
  hs-libraries:   "HSTime"


Certainly,
  hs-libraries:   "HStime"
 ^


V.Rudenko
--
λ is the ultimate
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


One-character bug in time library

2006-06-05 Thread wld

Hi,

File package.conf.in (darcs GHC HEAD) contains
the following line:
 hs-libraries:   "HSTime"

This should be of course
 hs-libraries:   "HSTime"


V.Rudenko
--
λ is the ultimate
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


GHC as library and new build tree layout

2006-05-05 Thread wld

Hi,

I have tried Lemmih's example of using
GHC as library. The very first line

 Prelude> :m GHC

failed. Searching for reason of this failure, I've
looked into the package.conf.in file of package ghc
and found that pragma import-dirs contains lines like

import-dirs:   FPTOOLS_TOP_ABS"/ghc/compiler/stage2/utils",
  FPTOOLS_TOP_ABS"/ghc/compiler/stage2/basicTypes",

It looks like an artifact of the old layout. I've
removed "/ghc" from all those lines, re-registered package
ghc - example worked!

Is that the right way to go?


V.Rudenko
--
λ is the ultimate
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Head GHCi fails to load package unix

2006-02-26 Thread wld
GHC built from Darcs head fails to load the package 'unix'.


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

Loading package base-1.0 ... linking ... done.
Loading package unix-1.0 ... linking ... ghc-6.5:
/home/wld/test/fp/libraries/unix/HSunix.o: unknown symbol `lstat'
ghc-6.5: unable to load package `unix-1.0'


The small test of using 'lstat' compiles and links fine
with 'ghc-inplace --make'.


import System.Posix.Files
main = getSymbolicLinkStatus "Test.hs" >>= return . linkCount >>= print


My environment:
  Linux 2.6.15
  gcc 4.0
  glibc 2.3.5

--
V.Rudenko
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Bug in cvs head ghci

2005-12-08 Thread wld
HI,

Typing
   Prelude> :b GHC.Base

I get
[snip]
  data Addr#
  data Array# a
  data Bool = False | True
  data ByteArray#
  data Char#
  data Char = C# Char#
  data Double#
  data Float#*** Exception: No match in record selector TyCon.tyConTyVars
  Prelude>

ghc built on Linux with
- ghc 6.4.1
- gcc 4.0.2

--
V.Rudenko
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs