On 5 Oct 2001, Marcin 'Qrczak' Kowalczyk wrote: > Fri, 5 Oct 2001 17:31:18 +0200, Ch. A. Herrmann <[EMAIL PROTECTED]> >pisze: > > >> Loading package std ... linking ... >/public/packages/programming/ghc-5.02/lib/ghc-5.02/HSstd_cbits.o: unknown symbol >`__ashldi3' > > I guess you can add the symbol to ghc/rts/Linker.c and recompile ghc > with the runtime using the new Linker.c (i.e. recompile twice). > I tried this a few weeks ago but it didn't work. It caused a bunch of other error messages. I've included them in the end of this mail. I'm not sure why I got them, maybe I did something wrong.
Cheers, /Josef ../../ghc/compiler/ghc-inplace -optc-O -optc-O2 -optc-fomit-frame-pointer -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-Wcast-align -optc-DCOMPILING_RTS -ldl -I../includes -I. -Iparallel -O2 -DCOMPILING_RTS -static -c Linker.c -o Linker.o In file included from ../includes/Stg.h:203, from ../includes/Rts.h:16, from Linker.c:11: ../includes/ClosureMacros.h: In function `get_entry': ../includes/ClosureMacros.h:66: warning: cast increases required alignment of target type Linker.c: At top level: Linker.c:369: `__ashldi3' undeclared here (not in a function) Linker.c:369: initializer element is not constant Linker.c:369: (near initialization for `rtsSyms[175].addr') Linker.c: In function `findElfSection': Linker.c:1506: warning: cast increases required alignment of target type Linker.c:1507: warning: cast increases required alignment of target type Linker.c: In function `ocVerifyImage_ELF': Linker.c:1530: warning: cast increases required alignment of target type Linker.c:1579: warning: cast increases required alignment of target type Linker.c:1633: warning: cast increases required alignment of target type Linker.c: In function `ocGetNames_ELF': Linker.c:1690: warning: cast increases required alignment of target type Linker.c:1692: warning: cast increases required alignment of target type Linker.c:1738: warning: cast increases required alignment of target type Linker.c: In function `do_Elf32_Rel_relocations': Linker.c:1844: warning: cast increases required alignment of target type Linker.c:1848: warning: cast increases required alignment of target type Linker.c:1849: warning: cast increases required alignment of target type Linker.c:1858: warning: unused variable `A' Linker.c: In function `do_Elf32_Rela_relocations': Linker.c:1916: warning: cast increases required alignment of target type Linker.c:1920: warning: cast increases required alignment of target type Linker.c:1921: warning: cast increases required alignment of target type Linker.c: In function `ocResolve_ELF': Linker.c:2028: warning: cast increases required alignment of target type Linker.c:2029: warning: cast increases required alignment of target type Linker.c:2032: warning: cast increases required alignment of target type make[2]: *** [Linker.o] Error 1 make[1]: *** [all] Error 1 make[1]: Leaving directory `/users/cs/josefs/packages/fpbuild/ghc' make: *** [all] Error 1 _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs