vmt / udis86

Disassembler Library for x86 and x86-64
http://udis86.sourceforge.net
BSD 2-Clause "Simplified" License
1.02k stars 299 forks source link

Error building on Arch Linux #146

Open flysand7 opened 9 months ago

flysand7 commented 9 months ago

I'm encountering building errors

$ ./autogen.sh
$ ./configure
$ make

The make produces the following output:

make  all-recursive
make[1]: Entering directory '/home/bumbread/udis86'
Making all in scripts
make[2]: Entering directory '/home/bumbread/udis86/scripts'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/bumbread/udis86/scripts'
Making all in libudis86
make[2]: Entering directory '/home/bumbread/udis86/libudis86'
/sbin/python ../scripts/ud_itab.py ../docs/x86/optable.xml .
Traceback (most recent call last):
  File "/home/bumbread/udis86/libudis86/../scripts/ud_itab.py", line 379, in <module>
    main()
  File "/home/bumbread/udis86/libudis86/../scripts/ud_itab.py", line 374, in main
    tables = UdOpcodeTables(xml=sys.argv[1])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bumbread/udis86/scripts/ud_opcode.py", line 330, in __init__
    self.printStats()
  File "/home/bumbread/udis86/scripts/ud_opcode.py", line 575, in printStats
    self.pprint()
  File "/home/bumbread/udis86/scripts/ud_opcode.py", line 557, in pprint
    printWalk(self.root)
  File "/home/bumbread/udis86/scripts/ud_opcode.py", line 554, in printWalk
    printWalk(e, indent + "    |")
  File "/home/bumbread/udis86/scripts/ud_opcode.py", line 554, in printWalk
    printWalk(e, indent + "    |")
  File "/home/bumbread/udis86/scripts/ud_opcode.py", line 556, in printWalk
    self.log("%s    |-<%02x> %s" % (indent, k, e))
             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
TypeError: %x format: an integer is required, not float
make[2]: *** [Makefile:748: itab.c] Error 1
make[2]: Leaving directory '/home/bumbread/udis86/libudis86'
make[1]: *** [Makefile:483: all-recursive] Error 1
make[1]: Leaving directory '/home/bumbread/udis86'
make: *** [Makefile:394: all] Error 2