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

Build for linux-ppc64le, pip install fails #41

Closed
olafthiele opened this issue Jan 8, 2020 · 3 comments
Closed

Build for linux-ppc64le, pip install fails #41

olafthiele opened this issue Jan 8, 2020 · 3 comments

Comments

@olafthiele
Copy link

Im working on an IBM Power VM and there seems to be no wheel for it. How would I build one myself if there is none?

Python 3.6
Ubuntu 18

Thanks for a great project

   ERROR: Command errored out with exit status 1:
     command: /home/anaconda3/envs/wmlce-1.6.1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m8vmxfbt/webrtcvad/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m8vmxfbt/webrtcvad/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-record-zhq51ldg/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-m8vmxfbt/webrtcvad/
    Complete output (24 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-ppc64le-3.6
    copying webrtcvad.py -> build/lib.linux-ppc64le-3.6
    running build_ext
    building '_webrtcvad' extension
    creating build/temp.linux-ppc64le-3.6
    creating build/temp.linux-ppc64le-3.6/cbits
    creating build/temp.linux-ppc64le-3.6/cbits/webrtc
    creating build/temp.linux-ppc64le-3.6/cbits/webrtc/common_audio
    creating build/temp.linux-ppc64le-3.6/cbits/webrtc/common_audio/signal_processing
    creating build/temp.linux-ppc64le-3.6/cbits/webrtc/common_audio/vad
    gcc -pthread -B /home/anaconda3/envs/wmlce-1.6.1/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWEBRTC_POSIX -Icbits -I/home/anaconda3/envs/wmlce-1.6.1/include/python3.6m -c cbits/pywebrtcvad.c -o build/temp.linux-ppc64le-3.6/cbits/pywebrtcvad.o
    In file included from cbits/webrtc/common_audio/vad/include/webrtc_vad.h:19:0,
                     from cbits/pywebrtcvad.c:2:
    cbits/webrtc/typedefs.h:51:2: error: #error Please add support for your architecture in typedefs.h
     #error Please add support for your architecture in typedefs.h
      ^~~~~
    cbits/webrtc/typedefs.h:55:2: error: #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN
     #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN
      ^~~~~
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/anaconda3/envs/wmlce-1.6.1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m8vmxfbt/webrtcvad/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m8vmxfbt/webrtcvad/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-record-zhq51ldg/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

@olafthiele
Copy link
Author

Root cause is missing support in WebRTC and it doesn't look like it's coming soon:

https://bugs.chromium.org/p/webrtc/issues/detail?id=1418

@valterf
Copy link

valterf commented Sep 4, 2020

Just for anyone else with the same problem, I was able to install webrtcvad by "faking" a little-endian ARM64 environment:

pip install --global-option=build_ext --global-option="-DWEBRTC_ARCH_LITTLE_ENDIAN" --global-option="-D__aarch64__" webrtcvad

@olafthiele
Copy link
Author

@valterf Great idea, thanks for sharing

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