[LLVMbugs] [Bug 7995] New: test/Scripts/macho-dump is incompatible to python 2.4(CentOS5)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 26 04:01:29 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7995

           Summary: test/Scripts/macho-dump is incompatible to python
                    2.4(CentOS5)
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: geek4civic at gmail.com
                CC: llvmbugs at cs.uiuc.edu


With Python-2.4, Reader::read64 always returns (unexpected) long integer.
FileCheck detects failure on test/MC/MachO among '0' and '0L'

---
$ Release+Asserts/bin/llvm-lit -v ~/llvm/test/MC/MachO/tbss.s
-- Testing: 1 tests, 1 threads --
FAIL: LLVM :: MC/MachO/tbss.s (1 of 1)
(snip)
Command Output (stderr):
--
/home/chapuni/llvm/test/MC/MachO/tbss.s:18:11: error: expected string not found
in input
// CHECK: ('vm_addr', 0)
          ^
<stdin>:13:2: note: scanning from here
 ('vm_addr', 0L)
 ^

---
import struct
print '%r' % struct.unpack('Q',"\x00\x00\x00\x00\x00\x00\x00\x00")[0]
---
Cygwin-1.5 (ok)
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
>>> print '%r' % struct.unpack('Q',"\x00\x00\x00\x00\x00\x00\x00\x00")[0]
0
>>>
---
* CentOS 5.4 (ng)
Python 2.4.3 (#1, Sep  3 2009, 15:37:37)
>>> print '%r' % struct.unpack('Q',"\x00\x00\x00\x00\x00\x00\x00\x00")[0]
0L
>>>

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list