I think it's -lbfd -liberty that you need to add.
J
| -----Original Message-----
| From: Simon Peyton-Jones
| Sent: Friday, November 10, 2000 9:23 AM
| To: Axel Krauth; [EMAIL PROTECTED]
| Subject: RE: rts debugging version doesn't compile
|
|
| I think you need to add -lbfd to your command line when linking.
| But i'm not the expert on this!
|
| Simon
|
| | -----Original Message-----
| | From: Axel Krauth [mailto:[EMAIL PROTECTED]]
| | Sent: 09 November 2000 18:01
| | To: [EMAIL PROTECTED]
| | Subject: rts debugging version doesn't compile
| |
| |
| | Hi!
| |
| | While trying to compile a rts-debugging version of 4.08.1 I get the
| | following error :
| |
| | .
| | .
| | .
| | ===fptools== Recursively making `all' in DrIFT DtdToHaskell
| Xtract ...
| | PWD = /home/krauth/fptools/hslibs/tools
| | --------------------------------------------------------------
| | ----------
| | --------------------------------------------------------------
| | ----------
| | ==fptools== gmake all - --no-print-directory -r;
| | in /home/krauth/fptools/hslibs/tools/DrIFT
| | --------------------------------------------------------------
| | ----------
| | ../../../ghc/driver/ghc-inplace -o DrIFT -cpp -fglasgow-exts
| | -package text -O DataP.o DrIFT.o Literate.o Pretty.o
| | StandardRules.o ChaseImports.o CommandP.o DigitToInt.o
| | ParseLib2.o PreludData.o RuleUtils.o UserRuleBinary.o
| | UserRuleXml.o UserRules.o
| | /home/krauth/fptools/ghc/driver/../rts/libHSrts.a(Printer.o):
| | In function `DEBUG_LoadSymbols':
| | /home/krauth/fptools/ghc/rts/Printer.c:850: undefined
| | reference to `bfd_init'
| | /home/krauth/fptools/ghc/rts/Printer.c:851: undefined
| | reference to `bfd_openr'
| | /home/krauth/fptools/ghc/rts/Printer.c:855: undefined
| | reference to `bfd_check_format_matches'
| | collect2: ld returned 1 exit status
| | make[3]: *** [DrIFT] Error 1
| | make[2]: *** [all] Error 1
| | make[1]: *** [all] Error 1
| | make: *** [all] Error 1
| |
| |
| |
| | For compiling the rts debugging version I replaced in
| mk/config.mk the
| | optimising flags of the rts with the debugging flags. I have
| | libbfd.a and
| | libiberty.a (where the missing symbols are) in /usr/lib/ .
| | I'm using a linux system (suse 7.0) with gcc2.95.2 and ghc4.08.1 .
| |
| | bye,
| | Axel
| |
| |
| | _______________________________________________
| | Glasgow-haskell-bugs mailing list
| | [EMAIL PROTECTED]
| | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
| |
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs