Pillow fails to build on Linux
See original GitHub issue🐛 Bug
Same error appears when building the compiler_gym wheel or compiling from source. Clang misses a compiler flag: -fno-semantic-interposition
To Reproduce
Steps to reproduce the behavior:
- On Linux,
pip install compiler_gym
- Or build from source gives the same error
clang: error: unknown argument: '-fno-semantic-interposition'
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for Pillow
The error with -fno-semantic-interposition
shows up a lot, omitted here.
Environment
- CompilerGym: current development
- How you installed CompilerGym (conda, pip, source): pip and source in a conda env.
- OS: Linux 18.04.5 LTS
- Python version: 3.9
- Build command you used (if compiling from source): as in documentation
- GCC/clang version (if compiling from source): as in documentation
- Bazel version (if compiling from source): as in documentation
- Versions of any other relevant libraries:
You may use the PyTorch environment collection script to generate most of this information. You can get the script and run it with:
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
Additional context
Installing pip install Pillow
works ok.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
software installation - Failed to build Pillow - Ask Ubuntu
I'm using Kubuntu 16.04. I'm trying to install the TFLearn library, but it requires Pillow, which it tried to install but was failing....
Read more >Pillow installation on Ubuntu Broken · Issue #5782 - GitHub
Pillow installation is not working on ubuntu pip3 version 21.3 python version 3.6.9 The error Building wheels for collected packages: pillow ...
Read more >Failed building wheel for pillow - python 2.7 - Stack Overflow
The problem I ran into was python module Pillow version 3.7 failing to compile during python -m pip install Pillow .
Read more >[Fixed] "Failed building wheel for Pillow" in Python - CSEStack
I come across this error “Failed building wheel for Pillow” while setting up the Python Django project. I have executed these commands on...
Read more >ERROR: Can't roll back Pillow; was not uninstalled - Odoo
Building wheels for collected packages: Pillow, psycopg2 Building wheel ... copying src/PIL/__init__.py -> build/lib.linux-x86_64-3.8/PIL
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Was able to install once clang+±9 was installed. Will update the Readme to include this. Thanks!
Great!