Hi everyone,
As someones know, I'm working for a company (as an internship) on
the MIPS port of Pypy. I started the JIT backend but not finished and
for the moment I try to translate Pypy without JIT (because JIT isn't
finished). I try to translate it directly on the target, even if it will
take very very long time. But for the moment I only try to compile a
small Rpython snippet :
def main(args):
print "Hello World"
return 0
def target(*args):
return main, None
with this command line :
python ../../rpython/bin/rpython -O1 test.py
Then, I've got this translation configuration :
[translation] translate.py configuration:
[translation] [translate]
[translation] opt = 1
[translation] targetspec = test
[translation] translation configuration:
[translation] [translation]
[translation] [backendopt]
[translation] inline_threshold = 16.2
[translation] continuation = False
[translation] gc = boehm
[translation] gcremovetypeptr = False
[translation] gcrootfinder = n/a
[translation] gctransformer = boehm
[translation] list_comprehension_operations = True
Annotating&Simplifying is OK, as RTyping, backend optimisations, stack
checking, database creation and C generation. But during compilation,
the first instruction fails...
[platform:execute] make -j 2 in /tmp/usession-unknown-12/testing_1
[platform:Error]
/opt/cross-native-mipsel-linux-gnu/bin/../lib/gcc/mipsel-linux-gnu/4.4.6/../../../../mipsel-linux-gnu/bin/ld:
test-c: local symbol `__data_start' in
/opt/cross-native-mipsel-linux-gnu/bin/../mipsel-linux-gnu/sysroot/usr/lib/crt1.o
is referenced by DSO
[platform:Error]
/opt/cross-native-mipsel-linux-gnu/bin/../lib/gcc/mipsel-linux-gnu/4.4.6/../../../../mipsel-linux-gnu/bin/ld:
final link failed: Bad value
[platform:Error] collect2: ld returned 1 exit status
[platform:Error] make: *** [test-c] Error 1
I search on Google and all I found is that it can comes from binutils
2.21, I try to create a new toolchain with binutils 2.22 but same error...
Is anyone got any idea where I can search to debug this ?
Thanks,
Alexis
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev