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/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to