hfsinspect: src/crc32c/crc32c.c:29:13: error: instruction requires: Not 64-bit mode

macports at parvis.nl macports at parvis.nl
Tue May 5 13:18:56 UTC 2020


https://github.com/ahknight/hfsinspect

i’m trying to build a portfile for hfsinspect (on 10.11).

manually its works fine:

git clone --recursive https://github.com/ahknight/hfsinspect.git
cd hfsinspect
make
sudo make install

Portfile:
---------
PortSystem          1.0
PortGroup           github 1.0
github.setup        ahknight hfsinspect 0.3.2
categories          sysutils
platforms           darwin
maintainers         nomaintainer
description         hfsinspect package
long_description    An open-source HFS+ filesystem explorer and debugger (in the spirit of hfsdebug)
checksums           rmd160  dbc34aefd7e700e433fa63d0df167f96c7e16e70 \
                    sha256  41a0ffebc9e02c1200168e6042b9009f83a1625c99aa3e5474c02cdc8037ba0a \
                    size    1872376
use_configure        no

log:
----
Compiling src/crc32c/crc32c.c
src/crc32c/crc32c.c:29:13: error: instruction requires: Not 64-bit mode
    __asm__("pushl %%ebx\n\t" /* save %ebx */
            ^
<inline asm>:1:2: note: instantiated into assembly here
        pushl %ebx
        ^
src/crc32c/crc32c.c:31:34: error: instruction requires: Not 64-bit mode
            "movl %%ebx, %[ebx]\n\t" /* save what cpuid just put in %ebx */
                                 ^
<inline asm>:4:2: note: instantiated into assembly here
        popl %ebx
        ^
2 errors generated.

---

i don’t understand the problem with 32/64 bit mode.
is something special needed?

---

the author also provides hfsinspect.xcodeproj, there is a port group xcode, but if i can build manually without xcode, should i use xcode anyway?

---

thanks,
paul.




More information about the macports-dev mailing list