[pypy-dev] llvm backend issue on AMD64

Eric van Riet Paap eric at vanrietpaap.nl
Thu Nov 30 12:42:48 CET 2006


Hi Alexandre,

Thank you for trying this out!

Do the llvm tests pass?

pypy-llvm has not been properly tested on 64 bit systems! Some  
efforts were made but compatibilty was never maintained because of a  
lack of such a machine.
If you could give me an account on your computer I could make sure  
that at least proper checks are in place.

cheers,
Eric


On Nov 30, 2006, at 10:56 AM, Alexandre Fayolle wrote:

> Hi,
>
> While running translations with various options on an AMD64, I
> encountered issues with the llvm backend: the translation fails when
> llvm-as is called. The error message is::
>
>  [translation:ERROR] llvm-as: <stdin>:586398: Redefinition of  
> function 'LL_os_fstat'!
>
> In entry_point.ll, I have a forward declaration of LL_os_fstat::
>
>  declare fastcc %structtype_tuple10* %LL_os_fstat(long)
>
> and indeed 2 definitions of the function. The first one is at line
> 449952, and it has a structure very similar to the definition I get  
> when
> I translate in 32bit mode (but takes a long instead of an int as
> argument). The second one looks like::
>
>  internal fastcc %structtype_tuple10* %LL_os_fstat(long %tmp_13431) {
>         %tmp_13433 = cast long %tmp_13431 to int
>         %tmp_13432 = call fastcc %structtype_tuple10* %LL_os_fstat 
> (int %tmp_13433)
>         ret %structtype_tuple10* %tmp_13432
>  }
>
>
> If I comment out this second definition, I get a similar error  
> regarding
> LL_os_lseek, LL_os_fork, etc.
>
> -- 
> Alexandre Fayolle                              LOGILAB, Paris (France)
> Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/ 
> formations
> Développement logiciel sur mesure:       http://www.logilab.fr/ 
> services
> Informatique scientifique:               http://www.logilab.fr/science
> Reprise et maintenance de sites CPS:     http://www.migration-cms.com/
> _______________________________________________
> pypy-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-dev




More information about the Pypy-dev mailing list