On Thu, 2005-03-03 at 17:22 +0100, Olivier Thauvin wrote: > ops/core_ops_switch.c > as -o src/asmfun.o src/asmfun.s > src/asmfun.s: Assembler messages: > src/asmfun.s:6: Error: unsupported relocation against f14
Adding -mregnames to the as call makes it compile for me, but it apparently doesn't export the symbol properly:
blib/lib/libparrot.a(jit_cpu.o)(.text+0x2722): In function `Parrot_end_jit': src/jit_cpu.c:74: undefined reference to `Parrot_ppc_jit_restore_nonvolatile_registers' blib/lib/libparrot.a(jit_cpu.o)(.text+0x2726):src/jit_cpu.c:74: undefined reference to `Parrot_ppc_jit_restore_nonvolatile_registers
On Thu, 2005-03-03 at 09:30 -0800, chromatic wrote: > Adding -mregnames to the as call makes it compile for me, but it > apparently doesn't export the symbol properly:
Ah, here it is. For whatever reason, it doesn't strip the leading underscore from the symbol name. (GNU as allows symbols to start with word characters, but I don't see a flag to remove a prefix.)
Compiling the file manually with the -mregnames flag and applying this patch fixes the build for me.
Chromatic <chroma...@wgz.org> wrote: > On Thu, 2005-03-03 at 09:30 -0800, chromatic wrote: >> Adding -mregnames to the as call makes it compile for me, but it >> apparently doesn't export the symbol properly: > Ah, here it is. For whatever reason, it doesn't strip the leading > underscore from the symbol name. (GNU as allows symbols to start with > word characters, but I don't see a flag to remove a prefix.) > Compiling the file manually with the -mregnames flag and applying this > patch fixes the build for me.
Ok. I've duplicate jit/ppc/asm.s to jit/ppc/ppc-linux.s, removed the leading underscore and the register name prefixes.
config/auto/jit.pl should now use this file for the platform "ppc-linux".
> -- c
Thanks to Olivier and your for providing feedback, leo
On Fri, 4 Mar 2005 16:24:30 -0500, Matt Diephouse <mdd...@gmail.com> wrote: > On Fri, 4 Mar 2005 08:48:06 +0100, Leopold Toetsch <l...@toetsch.at> wrote: > > Ok. I've duplicate jit/ppc/asm.s to jit/ppc/ppc-linux.s, removed the > > leading underscore and the register name prefixes.
> > config/auto/jit.pl should now use this file for the platform > > "ppc-linux".
> Can someone that #32514 can be closed?
Eek. That should read "Can someone *confirm* that #32514 can be closed?".
On Fri, 4 Mar 2005 08:48:06 +0100, Leopold Toetsch <l...@toetsch.at> wrote: > Ok. I've duplicate jit/ppc/asm.s to jit/ppc/ppc-linux.s, removed the > leading underscore and the register name prefixes.
> config/auto/jit.pl should now use this file for the platform > "ppc-linux".
I don't see the failures (and have never seen them). Both of the tests mentioned there pass with make testj. (Only t/pmc/eval.t #4 fails, and I'll look at that later.)