haddock: lexical error in string/character literal

2005-03-06 Thread Gérard Milmeister
Hi,

I stumbled on the dreaded lexical error in string/character literal
while compiling haddock. Googling for this error, it seems that it is a
problem with ghc-6.2.2 and gcc-3.4.2, the versions that I use. Is there
a workaround for this?
-- 
Grard Milmeister
Langackerstrasse 49
CH-8057 Zrich

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


RE: gtk+hs and libgmp

2001-10-31 Thread Gérard Milmeister

On Wed, 2001-10-31 at 15:49, Simon Marlow wrote:
 
  Here is the output:
  1. Main.out from a link that succeeds.
  2. GtkHelloWorld.out, a sample program from gtk+hs, compiled with
  ghc -v -fglasgow-exts -lgtkHS GtkHelloWorld.hs `gtkhs-config 
  --cflags` `gtkhs-config --libs` `gtk-config --cflags` 
  `gtk-config --libs`
  
  In fact, you are right, there is a -L/usr/lib before -lgmp. 
  Maybe the libgmp.a included
  with ghc should be renamed, for example  libgmp_ghc.a
 
 That would be one solution, yes.  On your system, if you remove /usr/lib/libgmp.a 
(and /usr/lib/libgmp.so if you have one), does it work?  You only need these files if 
you intend to build any software which depends on having GMP version 2, which is 
unlikely since GMP 3 is source-compatible with GMP 2.

Yes, that works. Still I would opt for the renaming to avoid this
problem in the future. It really depends on the setup of the system.
Another question: should packages like gtk+hs not add themselves to
package.conf, so that gtkhs-config is not needed? Or is this method
not yet proven.

-- 
Gérard Milmeister
Tannenrauchstr. 35
8038 Zürich
[EMAIL PROTECTED]

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



RE: gtk+hs and libgmp

2001-10-29 Thread Gérard Milmeister

On Mon, 2001-10-29 at 20:24, Gérard Milmeister wrote:
 
 n.b. I send the message only to you, not to the mailing list because
 of the attachments.

Ooops...

-- 
Gérard Milmeister
Tannenrauchstr. 35
8038 Zürich
[EMAIL PROTECTED]

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



gtk+hs and libgmp

2001-10-25 Thread Gérard Milmeister

When trying to compile the examples in gtk+hs, I get the following link
errors:
/opt/ghc/lib/ghc-5.02/libHSstd.a(PrelFloat__413.o): In function `shP2_2_alt':
PrelFloat__413.o(.text+0x2b0): undefined reference to `__gmpz_cmp_si'
etc..
When linking simple programs, this doesn't occur.
I have the following gmp's installing:
/usr/lib/libgmp.so.2.0.2
/usr/local/lib/libgmp.so.3.1.1
/opt/ghc/lib/ghc-5.02/libgmp.a
It seems that the programs only link with the version in /usr/local/lib.
I tried putting this path in 'library_dirs' for package 'gmp' in
'package.conf', but to no avail. Only when I explicitly put
'/usr/local/lib/libgmp.so' in 'extra_ld_opts' for package 'gmp'
did it work.

-- 
Gérard Milmeister
Tannenrauchstr. 35
8038 Zürich
[EMAIL PROTECTED]

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



RE: gtk+hs and libgmp

2001-10-25 Thread Gérard Milmeister

On Thu, 2001-10-25 at 12:04, Simon Marlow wrote:

 
 The version in /opt/ghc/lib/ghc-5.02 should work, as should 
/usr/local/lib/libgmp.so.3.1.1.  The version in /usr/lib looks like GMP 2, so that 
would cause the link errors.
 
 Make sure the link command line doesn't have -L/usr/lib on it, or at least not 
before -L/usr/local/lib and -L/opt/ghc/lib/ghc-5.02.
 
 Cheers,
   Simon
I tried to remove the libgmp.so from both /usr/local/lib and /usr/lib.
ghc doesn't seem to link with the one in /opt/ghc. Also when I give
/opt/ghc/lib/ghc-5.02/libgmp.a on the command line it doesn't work... It
only works with /usr/local/lib/libgmp.so. I guess, that gmp is always
used, so I wonder that it works apart from gtk+hs.

-- 
Gérard Milmeister
Tannenrauchstr. 35
8038 Zürich
[EMAIL PROTECTED]

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Compile problems with ghc-5.0

2001-05-12 Thread Gérard Milmeister

I use Redhat 6.2.
The binary install is ok, but when I compile ghc-5.0 from source
using ghc-5.0, I get the following error after 'make all':

../../../ghc/utils/hsc2hs/hsc2hs-inplace Directory.hsc
../../../ghc/utils/hsc2hs/hsc2hs-inplace:
/test/v-julsew/Nightly-HEAD/i386-unknown-linux/stage1/ghc/utils/hsc2hs/hsc2hs-bin:
No such file or directory

Furthermore, most available libraries seem to be uncompilable
with ghc-5.0, e.g. c2hs and gtk2hs.

-- 
Gérard Milmeister
Tannenrauchstr. 35
8038 Zürich

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Compiling ghc 4.08

2000-07-07 Thread Gérard Milmeister

I get the following compile error:

(My configuration is Linux kernel 2.4.0-test1, gcc 2.91.66 and
ghc 4.06 installed)

PWD = /home/gemi/fptools/ghc/lib/std

rm -f PrelBase.o ; if [ ! -d PrelBase ]; then mkdir PrelBase; else 
/usr/bin/find PrelBase -name '*.o' -print | xargs rm -f __rm_food ; fi ;
../../driver/ghc-inplace -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O 
-package-name std -static -split-objs  -H12m  -c PrelBase.lhs -o PrelBase.o 
-osuf o
ghc: 114644880 bytes, 17 GCs, 1047207/1890108 avg/max bytes residency (4 
samples), 13M in use, 0.01 INIT (0.00 elapsed), 2.68 MUT (3.04 elapsed), 0.75 
GC (0.84 elapsed) :ghc
Epilogue junk?: 
popl %edx
.Lfe364:
.sizec3Ix_ret,.Lfe364-c3Ix_ret
.globl PrelBase_zdwgcdInt_info
.section.rodata
.align 4
.typePrelBase_zdwgcdInt_info,@object
.sizePrelBase_zdwgcdInt_info,12

make[3]: *** [PrelBase.o] Error 255
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1



 PGP signature