Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD Build Error #1469

Open
schrodyn opened this issue Jan 17, 2024 · 1 comment
Open

FreeBSD Build Error #1469

schrodyn opened this issue Jan 17, 2024 · 1 comment

Comments

@schrodyn
Copy link

Trying to install miasm in a virtualenv on FreeBSD 14.0, python3.11 via pip install miasm and it fails with the following error:

      copying miasm/runtime/export.h -> build/lib.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/runtime
      copying miasm/runtime/int_endianness.h -> build/lib.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/runtime
      copying miasm/runtime/int_lib.h -> build/lib.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/runtime
      copying miasm/runtime/int_types.h -> build/lib.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/runtime
      copying miasm/runtime/int_util.h -> build/lib.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/runtime
      copying miasm/VERSION -> build/lib.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm
      running build_ext
      building 'miasm.jitter.VmMngr' extension
      creating build/temp.freebsd-14.0-RELEASE-p3-amd64-cpython-311
      creating build/temp.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm
      creating build/temp.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/jitter
      cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -fPIC -I/home/schrodinger/.venv/arcadia/include -I/usr/l
ocal/include/python3.11 -c miasm/jitter/bn.c -o build/temp.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/jitter/bn.o
      cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -fPIC -I/home/schrodinger/.venv/arcadia/include -I/usr/l
ocal/include/python3.11 -c miasm/jitter/vm_mngr.c -o build/temp.freebsd-14.0-RELEASE-p3-amd64-cpython-311/miasm/jitter/vm_mngr.o
      miasm/jitter/vm_mngr.c:88:22: error: use of undeclared identifier '__BYTE_ORDER'
              if (vm_mngr->sex == __BYTE_ORDER)
                                  ^
      miasm/jitter/vm_mngr.c:96:22: error: use of undeclared identifier '__BYTE_ORDER'
              if (vm_mngr->sex == __BYTE_ORDER)
                                  ^
      miasm/jitter/vm_mngr.c:104:22: error: use of undeclared identifier '__BYTE_ORDER'
              if (vm_mngr->sex == __BYTE_ORDER)
                                  ^
      3 errors generated.
      SystemExit("error: command '/usr/bin/cc' failed with exit code 1")
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-8lwbxs0k/miasm_8a409e44731743c6baee36bed6b9aeeb/setup.py", line 436, in <module>
          build_all()
        File "/tmp/pip-install-8lwbxs0k/miasm_8a409e44731743c6baee36bed6b9aeeb/setup.py", line 364, in build_all
          raise ValueError("Unable to build Miasm!")
      ValueError: Unable to build Miasm!
      [end of output]
@serpilliere
Copy link
Contributor

Hi @schrodyn
Oh, maybe the __BYTE_ORDER is not the proper variable to use. Or we may add a typedef to __BYTE_ORDER__ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants