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

homebrew llvm / clang - followup to #30835 #32207

Closed
dimpase opened this issue Jul 16, 2021 · 33 comments
Closed

homebrew llvm / clang - followup to #30835 #32207

dimpase opened this issue Jul 16, 2021 · 33 comments

Comments

@dimpase
Copy link
Member

dimpase commented Jul 16, 2021

in #30835 problems with using clang(++) from Homebrew on macOS were found

  • Pillow build broken
  • PATH needs to be adjusted (?)

After Pillow update to 9.0.1 the only problem is caused by an obsolete workaround
for Darwin/XCode in Pillow's spkg-install. The branch here removes it.

Depends on #33116

Upstream: None of the above - read trac for reasoning.

CC: @mkoeppe @jhpalmieri

Component: build

Keywords: macOS, Darwin

Author: Dima Pasechnik

Branch/Commit: 9619910

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/32207

@dimpase dimpase added this to the sage-9.4 milestone Jul 16, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Jul 19, 2021
@dimpase
Copy link
Member Author

dimpase commented Jul 19, 2021

Upstream: Reported upstream. No feedback yet.

@dimpase
Copy link
Member Author

dimpase commented Jul 19, 2021

comment:2

reported here: python-pillow/Pillow#5622

@dimpase
Copy link
Member Author

dimpase commented Jul 20, 2021

comment:3

the setup.py patch in Pillow is obsolete anyway, and should be removed.

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

comment:4

python-pillow/Pillow#5624 provides a fix. Will backport here.

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, in a later stable release.

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

New commits:

ae7304fbuild/pkgs/llvm: New
26f40f2tox.ini, build/bin/write-dockerfile.sh: Add configuration factor 'llvm'
7c61eb9tox.ini [homebrew-llvm]: Set CC, CXX to full path
4592331remove obsolete patch, replace it with one for #32207

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

Commit: 4592331

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

Author: Dima Pasechnik

@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2021

Dependencies: #30835

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 18, 2021

comment:7

Stalled in needs_review or needs_info; likely won't make it into Sage 9.5.

@dimpase
Copy link
Member Author

dimpase commented Mar 3, 2022

Changed dependencies from #30835 to #33116

@dimpase
Copy link
Member Author

dimpase commented Mar 3, 2022

comment:9

hopefully pillow problem will be fixed by #33116

@dimpase
Copy link
Member Author

dimpase commented Mar 3, 2022

comment:10

we need to remove this obsolete (?) workaround to let Homebrew's clang do the job. Apparently also OK for Xcode's clang.


New commits:

a2967a2update pillow to 9.0.1, remove its patches
c9f6fbabump system freetype2 minimal version, for pillow
9619910remove obsolete workaround

@dimpase
Copy link
Member Author

dimpase commented Mar 3, 2022

Changed commit from 4592331 to 9619910

@dimpase
Copy link
Member Author

dimpase commented Mar 3, 2022

@dimpase
Copy link
Member Author

dimpase commented Mar 15, 2022

comment:11

The only thing to review here is removal of the Darwin-only Pillow workaround, which is no longer necessary, according to my tests.

Please review.

@dimpase
Copy link
Member Author

dimpase commented Mar 15, 2022

Changed upstream from Fixed upstream, in a later stable release. to None of the above - read trac for reasoning.

@dimpase
Copy link
Member Author

dimpase commented Mar 16, 2022

Changed keywords from none to macOS, Darwin

@dimpase

This comment has been minimized.

@jhpalmieri
Copy link
Member

comment:14

Can someone remind me of why, in the pillow installation log file, it says toward the end

Successfully built Pillow
WARNING: Skipping Pillow as it is not installed.

@dimpase
Copy link
Member Author

dimpase commented Mar 16, 2022

comment:15

I guess it's coming from pip ?

src/pip/_internal/req/req_install.py: logger.warning("Skipping %s as it is not installed.", self.name)

namely, before installing a newly built wheel, pip is called to uninstall the package.
But if it wasn't installed one gets this warning. Harmless.

@dimpase
Copy link
Member Author

dimpase commented Mar 16, 2022

comment:16
$ pip uninstall foobar
WARNING: Skipping foobar as it is not installed.

@jhpalmieri
Copy link
Member

comment:17

Pillow builds for me (with the standard gcc, not using homebrew's llvm etc.). Sage itself does not — see my recent post on sage-support — so I can't test further.

@dimpase
Copy link
Member Author

dimpase commented Mar 17, 2022

comment:18

I understand that #33522 fixes the scipy error you're talking about. It has nothing to do with this ticket, I think.

@jhpalmieri
Copy link
Member

comment:19

I think you're right, but I would like to see for myself that Sage builds with this branch (+#33522).

@jhpalmieri
Copy link
Member

comment:20

I haven't checked llvm/clang, but it works with the standard OS X clang + homebrew's gfortran. Is this good enough?

@dimpase
Copy link
Member Author

dimpase commented Mar 18, 2022

comment:21

Yes, that's good enough. Thanks.

@dimpase
Copy link
Member Author

dimpase commented Mar 18, 2022

comment:22

in case, tests are running on #33512 comment:3

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@jhpalmieri
Copy link
Member

comment:23

Great, let's merge it.

@GMS103
Copy link
Member

GMS103 commented Mar 20, 2022

comment:24

FWIW, Positive review on Apple Silicon M1 Macs with Homebrew up to date, both macOS 11.6.5 (Big Sur) with Xcode 13.2.1 and macOS 12.3 (Monterey) with Xcode 13.3.

@vbraun
Copy link
Member

vbraun commented Mar 27, 2022

Changed branch from u/dimpase/packages/pillow/fixfor_homebrew_clang to 9619910

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

No branches or pull requests

5 participants