gdabah / distorm

Powerful Disassembler Library For x86/AMD64
Other
1.26k stars 238 forks source link

pip install distorm3 on fedora25 fails #121

Closed zachsis closed 5 years ago

zachsis commented 7 years ago
$ sudo pip install distorm3
Collecting distorm3
  Using cached distorm3-3.3.4.zip
Installing collected packages: distorm3
  Running setup.py install for distorm3 ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ygepnW/distorm3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ChjD62-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running custom_build
    running build_py
    creating build
    creating build/lib
    creating build/lib/distorm3
    copying python/distorm3/__init__.py -> build/lib/distorm3
    copying python/distorm3/sample.py -> build/lib/distorm3
    running build_clib
    running custom_build_clib
    building 'distorm3' library
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/src
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc -Iinclude -c src/wstring.c -o build/temp.linux-x86_64-2.7/src/wstring.o -fPIC -O2 -Wall -DSUPPORT_64BIT_OFFSET -DDISTORM_STATIC
    gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ygepnW/distorm3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ChjD62-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ygepnW/distorm3/
zachsis commented 7 years ago
$ cat /etc/redhat-release 
Fedora release 25 (Twenty Five)
zachsis commented 7 years ago

attempting to build / install from a git repo:

$ python setup.py build install
running build
running custom_build
running build_py
creating build
creating build/lib
creating build/lib/distorm3
copying python/distorm3/sample.py -> build/lib/distorm3
copying python/distorm3/__init__.py -> build/lib/distorm3
running build_clib
running custom_build_clib
building 'distorm3' library
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc -Iinclude -c src/decoder.c -o build/temp.linux-x86_64-2.7/src/decoder.o -fPIC -O2 -Wall -DSUPPORT_64BIT_OFFSET -DDISTORM_STATIC
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
error: command 'gcc' failed with exit status 1
kondor6c commented 6 years ago

install 'redhat-rpm-config', this will install some needed macros.

gdabah commented 6 years ago

@zachsis Can I close this?

gdabah commented 5 years ago

I'm closing this. If there's still an issue with latest diStorm, please re-open.