question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. On Linux, pip install compiler_gym
  2. 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JD-ETHcommented, Apr 19, 2021

Was able to install once clang+±9 was installed. Will update the Readme to include this. Thanks!

0reactions
ChrisCumminscommented, Apr 19, 2021

Great!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found