On 10/16/11 08:41 PM, Ben Gamari wrote:
On Sun, 16 Oct 2011 20:03:24 +0200, Karel Gardas<[email protected]>  
wrote:

Also I'm quite out of idea what was your intention on line above so I'm
not able to fix this myself.

Doh, yes. You are right. Fixed. I also fixed a serious oversight in my
target address calculation.

Unfortunately `A' is undeclared:

"inplace/bin/ghc-stage1" -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Iincludes -optc-Irts -optc-DCOMPILING_RTS -optc-DUSE_LIBFFI_FOR_ADJUSTORS -optc-fno-strict-aliasing -optc-fno-common -optc-Ilibffi/dist-install/build -optc-fomit-frame-pointer -optc-DRtsWay=\"rts_v\" -H32m -O -Iincludes -Irts -DCOMPILING_RTS -package-name rts -dcmm-lint -Ilibffi/dist-install/build -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -optc-O2 -c rts/Linker.c -o rts/dist/build/Linker.o
rts/Linker.c: In function ‘do_Elf_Rel_relocations’:

rts/Linker.c:4329:31:
     warning: pointer targets in initialization differ in signedness

rts/Linker.c:4339:16:
     warning: implicit declaration of function ‘makeArmSymbolExtra’

rts/Linker.c:4339:16:
     warning: nested extern declaration of ‘makeArmSymbolExtra’

rts/Linker.c:4339:64:
     error: ‘A’ undeclared (first use in this function)

rts/Linker.c:4339:64:
note: each undeclared identifier is reported only once for each function it appears in

rts/Linker.c:4339:78:
     warning: left-hand operand of comma expression has no effect

rts/Linker.c:4339:16:  error: lvalue required as unary ‘&’ operand

rts/Linker.c:4407:78:
     warning: left-hand operand of comma expression has no effect

rts/Linker.c:4407:16:  error: lvalue required as unary ‘&’ operand

rts/Linker.c:4390:17:  warning: unused variable ‘is_bl’


Anyways, I'll try building a non-Thumb GHC next. How do I configure the
build system to accomplish this?

I'm just using build.mk I already provided. Then just ./configure; make -j2

nothing more is needed in order to compile build on my system. In fact I'm quite surprised to consider your LLVM generates thumb by default while mine generates ARM by default. Are you sure, your build really generates Thumb?

Thanks,
Karel

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to