Re: Linker error

2011-03-15 Thread Luca Ciciriello
Thanks.
My problem is that I can't downgrade Xcode and trying to reinstall the Haskell 
Platform 2010.2.0.0, I've found out that many packages are missing (i.e. IO 
doesn't exist any more). So in this moment I haven't a working Haskell 
Platform. Too bad.

Another strange thing is that I have in my /usr/lib the library crt1.10.5.o. So 
why is ghc unable to find it? Xcode 4 has just add in /usr/lib the new library 
crt1.10.6.o, without removing the old one.

I hope that a new fixed Haskell platform will be released as soon as possible.

Luca.

On Mar 14, 2011, at 4:55 PM, Don Stewart wrote:

 There's an open bug ticket about XCode 4 not linking properly (I think
 due to the new dtrace support making GHC builds tied to a specific
 XCode version).
 
 Can you downgrade to XCode 3 in the meantime?
 
 On Mon, Mar 14, 2011 at 8:43 AM, Luca Ciciriello
 luca_cicirie...@hotmail.com wrote:
 Hi All.
 I've just installed the new Haskell platform (2011.2.0.0) on my MacOS X 
 10.6.6 with Xcode 4
 
 Now the problem is that when I try to build my Haskel programs I receive the 
 linker error:
 
 Linking lexer ...
 ld: library not found for -lcrt1.10.5.o
 collect2: ld returned 1 exit status
 
 Any idea?
 
 Thanks in advance.
 
 Luca
 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
 
 


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


Linker error

2011-03-14 Thread Luca Ciciriello
Hi All.
I've just installed the new Haskell platform (2011.2.0.0) on my MacOS X 10.6.6 
with Xcode 4

Now the problem is that when I try to build my Haskel programs I receive the 
linker error:

Linking lexer ...
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status

Any idea?

Thanks in advance.

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


Re: Linker error

2011-03-14 Thread Don Stewart
There's an open bug ticket about XCode 4 not linking properly (I think
due to the new dtrace support making GHC builds tied to a specific
XCode version).

Can you downgrade to XCode 3 in the meantime?

On Mon, Mar 14, 2011 at 8:43 AM, Luca Ciciriello
luca_cicirie...@hotmail.com wrote:
 Hi All.
 I've just installed the new Haskell platform (2011.2.0.0) on my MacOS X 
 10.6.6 with Xcode 4

 Now the problem is that when I try to build my Haskel programs I receive the 
 linker error:

 Linking lexer ...
 ld: library not found for -lcrt1.10.5.o
 collect2: ld returned 1 exit status

 Any idea?

 Thanks in advance.

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


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


Re: Linker error

2011-03-14 Thread David Peixotto
The relevant GHC ticket is: http://hackage.haskell.org/trac/ghc/ticket/5011, 
which it seems has already been fixed in HEAD.

You can also check this thread on Haskell-Cafe which contains a few workarounds 
for this problem: 
http://www.haskell.org/pipermail/haskell-cafe/2011-March/090051.html

-Dave

On Mar 14, 2011, at 10:55 AM, Don Stewart wrote:

 There's an open bug ticket about XCode 4 not linking properly (I think
 due to the new dtrace support making GHC builds tied to a specific
 XCode version).
 
 Can you downgrade to XCode 3 in the meantime?
 
 On Mon, Mar 14, 2011 at 8:43 AM, Luca Ciciriello
 luca_cicirie...@hotmail.com wrote:
 Hi All.
 I've just installed the new Haskell platform (2011.2.0.0) on my MacOS X 
 10.6.6 with Xcode 4
 
 Now the problem is that when I try to build my Haskel programs I receive the 
 linker error:
 
 Linking lexer ...
 ld: library not found for -lcrt1.10.5.o
 collect2: ld returned 1 exit status
 
 Any idea?
 
 Thanks in advance.
 
 Luca
 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
 
 
 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
 


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


Re: [Haskell-cafe] Hint causes GHCi linker error under Windows

2009-12-14 Thread Martin Hofmann
Hi Daniel,

 Do you have a complete example one can use to reproduce this behavior?  
 (preferably a short one! :P)

With this code I could reproduce it in ghci.

  runInterpreter $ loadModules [(SomeModule.hs, Nothing)]

Currently I am not on a Windows machine, so I can't tell you if this
only occured when trying to load a specific module. I'll try it later
and if so, I'll tell you.

If you need more information, just let me know.

Martin

  The error message is:
 
  GHCi runtime linker: fatal error: I found a duplicate definition for
  symbol _hs_gtWord64 whilst processing object file
C:\Programme\Haskell Platform\2009.2.0.2\ghc-prim-0.1.0.0
  HSghc-prim-0.1.0.o
  This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
  loaded twice.
  GHCi cannot safely continue in this situation.  Exiting now.  Sorry.
 
  The problem does not occur under Unix or with a compiled program. IMHO
  hint tries to start a second instance of GHCi which is not
  allowed/possible under Windows. If this is the case a more telling  
  error
  message would be helpful.
 
  I used the Haskell Platform, version 2009.2.0.2 under Windows XP. My
  package.conf is:
 
  C:/Programme/Haskell Platform/2009.2.0.2\package.conf:
 Cabal-1.6.0.3, GHood-0.0.3, GLUT-2.1.1.2, HTTP-4000.0.6,
 HUnit-1.2.0.3, MonadCatchIO-mtl-0.2.0.0, OpenGL-2.2.1.1,
 QuickCheck-1.2.0.0, Win32-2.2.0.0, ansi-terminal-0.5.0,
 ansi-wl-pprint-0.5.1, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0,
 bimap-0.2.4, bytestring-0.9.1.4, cgi-3001.1.7.1,
 containers-0.2.0.1, cpphs-1.9, directory-1.0.0.3, (dph-base-0.3),
 (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3),
 (dph-prim-seq-0.3), (dph-seq-0.3), extensible-exceptions-0.1.1.0,
 fgl-5.4.2.2, filepath-1.1.0.2, (ghc-6.10.4), ghc-mtl-1.0.1.0,
 ghc-paths-0.1.0.6, ghc-prim-0.1.0.0, haddock-2.4.2,
 haskeline-0.6.2.2, haskell-src-1.0.1.3, haskell-src-exts-1.3.4,
 haskell98-1.0.1.0, hint-0.3.2.1, hpc-0.5.0.3, html-1.0.1.2,
 integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1.4, old-locale-1.0.0.1,
 old-time-1.0.0.2, packedstring-0.1.0.1, parallel-1.1.0.1,
 parsec-2.1.0.1, pointless-haskell-0.0.1, pretty-1.0.1.0,
 process-1.0.1.1, random-1.0.0.1, regex-base-0.72.0.2,
 regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2,
 syb-0.1.0.1, template-haskell-2.3.0.1, time-1.1.2.4,
 utf8-string-0.3.6, xhtml-3000.2.0.1, zlib-0.5.0.0
 
  Thanks,
 
  Martin
 
  ___
  Haskell-Cafe mailing list
  haskell-c...@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe
-- 
---
Dipl.-Wirtsch.Inf. (E.M.B.Sc.) Martin Hofmann
Cognitive Systems Group
Faculty Information Systems and Applied Computer Science
University of Bamberg
http://www.cogsys.wiai.uni-bamberg.de/members/hofmann 
http://www.inductive-programming.org
   

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


Re: [Haskell-cafe] Hint causes GHCi linker error under Windows

2009-12-12 Thread Daniel Gorín

Hi, Martin

Do you have a complete example one can use to reproduce this behavior?  
(preferably a short one! :P)


In any case, I'm resending your message to the glasgow-haskell-users  
list to see if a ghc guru recognize the error message. It is strange  
that the problem only manifests on Windows


Daniel


On Dec 11, 2009, at 7:04 AM, Martin Hofmann wrote:


The following hint code causes GHCi to crash under Windows:


runInterpreter $ loadModules [SomeModule.hs]


The error message is:

GHCi runtime linker: fatal error: I found a duplicate definition for
symbol _hs_gtWord64 whilst processing object file
  C:\Programme\Haskell Platform\2009.2.0.2\ghc-prim-0.1.0.0
HSghc-prim-0.1.0.o
This could be caused by:
  * Loading two different object files which export the same symbol
  * Specifying the same object file twice on the GHCi command line
  * An incorrect `package.conf' entry, causing some object to be
loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.

The problem does not occur under Unix or with a compiled program. IMHO
hint tries to start a second instance of GHCi which is not
allowed/possible under Windows. If this is the case a more telling  
error

message would be helpful.

I used the Haskell Platform, version 2009.2.0.2 under Windows XP. My
package.conf is:

C:/Programme/Haskell Platform/2009.2.0.2\package.conf:
   Cabal-1.6.0.3, GHood-0.0.3, GLUT-2.1.1.2, HTTP-4000.0.6,
   HUnit-1.2.0.3, MonadCatchIO-mtl-0.2.0.0, OpenGL-2.2.1.1,
   QuickCheck-1.2.0.0, Win32-2.2.0.0, ansi-terminal-0.5.0,
   ansi-wl-pprint-0.5.1, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0,
   bimap-0.2.4, bytestring-0.9.1.4, cgi-3001.1.7.1,
   containers-0.2.0.1, cpphs-1.9, directory-1.0.0.3, (dph-base-0.3),
   (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3),
   (dph-prim-seq-0.3), (dph-seq-0.3), extensible-exceptions-0.1.1.0,
   fgl-5.4.2.2, filepath-1.1.0.2, (ghc-6.10.4), ghc-mtl-1.0.1.0,
   ghc-paths-0.1.0.6, ghc-prim-0.1.0.0, haddock-2.4.2,
   haskeline-0.6.2.2, haskell-src-1.0.1.3, haskell-src-exts-1.3.4,
   haskell98-1.0.1.0, hint-0.3.2.1, hpc-0.5.0.3, html-1.0.1.2,
   integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1.4, old-locale-1.0.0.1,
   old-time-1.0.0.2, packedstring-0.1.0.1, parallel-1.1.0.1,
   parsec-2.1.0.1, pointless-haskell-0.0.1, pretty-1.0.1.0,
   process-1.0.1.1, random-1.0.0.1, regex-base-0.72.0.2,
   regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2,
   syb-0.1.0.1, template-haskell-2.3.0.1, time-1.1.2.4,
   utf8-string-0.3.6, xhtml-3000.2.0.1, zlib-0.5.0.0

Thanks,

Martin

___
Haskell-Cafe mailing list
haskell-c...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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


Re: Linker error when building GHC HEAD on Mac OS

2007-03-02 Thread Simon Marlow

Stefan Holdermans wrote:
I'm trying to build GHC HEAD on Mac OS 10.4.8 (PowerPC), but end up with 
a linker error:


  ../compiler/stage1/ghc-inplace -o stage2/ghc-6.7.20070228 -H16m -O 
-package ghc -Istage2 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. 
-IcodeGen -InativeGen -Iparser -Rghc-timing  -DGHCI -DDEBUGGER -threaded 
-fforce-recompstage2/main/Main.o

  /usr/bin/ld: warning multiple definitions of symbol _UP
  
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib(terminal.so) 
definition of _UP
  
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib(lib_termcap.o) 
definition of _UP

  /usr/bin/ld: warning multiple definitions of symbol _BC
  
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib(terminal.so) 
definition of _BC
  
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib(lib_termcap.o) 
definition of _BC

  /usr/bin/ld: warning multiple definitions of symbol _PC
  
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib(terminal.so) 
definition of _PC
  
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib(lib_tputs.o) 
definition of _PC

  /usr/bin/ld: Undefined symbols:
  _stg_interp_constr1_entry
  _stg_interp_constr2_entry
  _stg_interp_constr3_entry
  _stg_interp_constr4_entry
  _stg_interp_constr5_entry
  _stg_interp_constr6_entry
  _stg_interp_constr7_entry
  _stg_interp_constr8_entry
  collect2: ld returned 1 exit status
  ghc: 19070104 bytes, 4 GCs, 120108/120108 avg/max bytes residency (1 
samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.10 MUT (4.20 elapsed), 
0.05 GC (0.08 elapsed) :ghc

  make[3]: *** [stage2/ghc-6.7.20070228] Error 1
  make[2]: *** [stage2/ghc-6.7.20070228] Error 2
  make[1]: *** [stage2] Error 2
  make: *** [bootstrap2] Error 2


This was a temporary build bug yesterday that is now fixed, sorry for the 
inconvenience.


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


Linker error when building GHC HEAD on Mac OS

2007-02-28 Thread Stefan Holdermans
I'm trying to build GHC HEAD on Mac OS 10.4.8 (PowerPC), but end up  
with a linker error:


  ../compiler/stage1/ghc-inplace -o stage2/ghc-6.7.20070228 -H16m -O  
-package ghc -Istage2 -cpp -fglasgow-exts -fno-generics -Rghc-timing - 
I. -IcodeGen -InativeGen -Iparser -Rghc-timing  -DGHCI -DDEBUGGER - 
threaded -fforce-recompstage2/main/Main.o

  /usr/bin/ld: warning multiple definitions of symbol _UP
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib 
(terminal.so) definition of _UP
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_termcap.o) definition of _UP

  /usr/bin/ld: warning multiple definitions of symbol _BC
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib 
(terminal.so) definition of _BC
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_termcap.o) definition of _BC

  /usr/bin/ld: warning multiple definitions of symbol _PC
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libreadline.dylib 
(terminal.so) definition of _PC
  /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_tputs.o) definition of _PC

  /usr/bin/ld: Undefined symbols:
  _stg_interp_constr1_entry
  _stg_interp_constr2_entry
  _stg_interp_constr3_entry
  _stg_interp_constr4_entry
  _stg_interp_constr5_entry
  _stg_interp_constr6_entry
  _stg_interp_constr7_entry
  _stg_interp_constr8_entry
  collect2: ld returned 1 exit status
  ghc: 19070104 bytes, 4 GCs, 120108/120108 avg/max bytes  
residency (1 samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.10 MUT  
(4.20 elapsed), 0.05 GC (0.08 elapsed) :ghc

  make[3]: *** [stage2/ghc-6.7.20070228] Error 1
  make[2]: *** [stage2/ghc-6.7.20070228] Error 2
  make[1]: *** [stage2] Error 2
  make: *** [bootstrap2] Error 2

Anyone any pointers?

Cheers,

  Stefan

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