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

Fix scipy-1.7.2 build failure on Cygwin #33080

Closed
slel opened this issue Dec 25, 2021 · 34 comments
Closed

Fix scipy-1.7.2 build failure on Cygwin #33080

slel opened this issue Dec 25, 2021 · 34 comments

Comments

@slel
Copy link
Member

slel commented Dec 25, 2021

Sage 9.5.beta9 + #33043 fails to build scipy-1.7.2
on Cygwin.

Initial report:

Issues/PRs:

CC: @dimpase @mkoeppe @slel

Component: porting: Cygwin

Keywords: scipy

Author: Matthias Koeppe

Branch: 9070a03

Reviewer: Samuel Lelièvre

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

@slel slel added this to the sage-9.5 milestone Dec 25, 2021
@dimpase
Copy link
Member

dimpase commented Dec 25, 2021

comment:1

logs please

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title Fix scipy-3.7.2 build failure on Cygwin Fix scipy-1.7.2 build failure on Cygwin Dec 26, 2021
@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

comment:3

I see this build failure now also in https://github.com/mkoeppe/sage/runs/4635610425?check_suite_focus=true (tested with the update to 1.7.3 in #33049)

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

comment:4
  scipy/stats/_boost/src/beta_ufunc.cxx:3903:46:   required from here
  /opt/sage-4525b51c9c556e7d1bf7a4d90ee129c6b7f1d9a7/var/tmp/sage/build/scipy-1.7.3/src/scipy/_lib/boost/boost/math/tools/promotion.hpp:148:37: error: static assertion failed: Sorry, but this platform does not have sufficient long double support for the special functions to be reliably implemented.
    148 |          BOOST_STATIC_ASSERT_MSG((0 == ::boost::is_same<type, long double>::value), "Sorry, but this platform does not have sufficient long double support for the special functions to be reliably implemented.");
error: Command "g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -DOPENSSL_NO_SSL3=1 -fdebug-prefix-map=/pub/devel/python/python38/python38-3.8.12-1.x86_64/build=/usr/src/debug/python38-3.8.12-1 -fdebug-prefix-map=/pub/devel/python/python38/python38-3.8.12-1.x86_64/src/Python-3.8.12=/usr/src/debug/python38-3.8.12-1 -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -DOPENSSL_NO_SSL3=1 -fdebug-prefix-map=/pub/devel/python/python38/python38-3.8.12-1.x86_64/build=/usr/src/debug/python38-3.8.12-1 -fdebug-prefix-map=/pub/devel/python/python38/python38-3.8.12-1.x86_64/src/Python-3.8.12=/usr/src/debug/python38-3.8.12-1 -D_GNU_SOURCE -DBOOST_MATH_DOMAIN_ERROR_POLICY=ignore_error -DBOOST_MATH_EVALUATION_ERROR_POLICY=user_error -DBOOST_MATH_PROMOTE_DOUBLE_POLICY=false -Iscipy/stats/_boost/include/ -Iscipy/stats/_boost/src/ -I/opt/sage-4525b51c9c556e7d1bf7a4d90ee129c6b7f1d9a7/lib/python3.8/site-packages/numpy/core/include -I/opt/sage-4525b51c9c556e7d1bf7a4d90ee129c6b7f1d9a7/var/tmp/sage/build/scipy-1.7.3/src/scipy/_lib/boost -I/opt/sage-4525b51c9c556e7d1bf7a4d90ee129c6b7f1d9a7/lib/python3.8/site-packages/numpy/core/include -Ibuild/src.cygwin-3.3.3-x86_64-3.8/numpy/distutils/include -I/opt/sage-4525b51c9c556e7d1bf7a4d90ee129c6b7f1d9a7/include -I/usr/include/python3.8 -c scipy/stats/_boost/src/beta_ufunc.cxx -o build/temp.cygwin-3.3.3-x86_64-3.8/scipy/stats/_boost/src/beta_ufunc.o -MMD -MF build/temp.cygwin-3.3.3-x86_64-3.8/scipy/stats/_boost/src/beta_ufunc.o.d -std=c++14 -msse -msse2 -msse3" failed with exit status 1

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

comment:5

Use of (vendored) boost was introduced in scipy 1.7.0

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

comment:6

This is with gcc-g++ 11.2.0-1

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

comment:8

Also affects FreeBSD apparently, and the porters just patch it out: https://cgit.freebsd.org/ports/tree/science/py-scipy/files/patch-scipy___lib_boost_boost_math_tools_config.hpp

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

comment:10

Neither of these projects has a Cygwin CI (and obviously no FreeBSD CI):

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 26, 2021

Commit: 1eccca3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 26, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

1eccca3build/pkgs/scipy/patches/boost_math_tools_config.patch: Fixup

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 26, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

9070a03build/pkgs/scipy/patches/boost_math_tools_config.patch: Fixup

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 26, 2021

Changed commit from 1eccca3 to 9070a03

@mkoeppe
Copy link
Member

mkoeppe commented Dec 26, 2021

@mkoeppe
Copy link
Member

mkoeppe commented Dec 27, 2021

comment:18

I don't seem to be getting Windows runners on GH Actions at the moment, so manual testing of this branch on Cygwin would be helpful

@mkoeppe
Copy link
Member

mkoeppe commented Dec 28, 2021

comment:19

This branch fixes the issue, as can be seen in the successful run https://github.com/mkoeppe/sage/runs/4646463107?check_suite_focus=true

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@slel
Copy link
Member Author

slel commented Dec 28, 2021

comment:23

This lets the scipy-1.7.2 spkg build for me.

Thanks for the fix and for sending pull requests
to Boost and opening an issue for SciPy.

Should the the patch or the commit messages
mention the inspiration is from FreeBSD?

Or is the discussion here enough?

One way or the other, you can set to
positive review on my behalf.

@slel
Copy link
Member Author

slel commented Dec 28, 2021

Changed reviewer from https://github.com/mkoeppe/sage/actions/runs/1625005817 to Samuel Lelièvre

@slel

This comment has been minimized.

@mkoeppe
Copy link
Member

mkoeppe commented Dec 28, 2021

Changed reviewer from Samuel Lelièvre to Samuel Lelièvre

@mkoeppe
Copy link
Member

mkoeppe commented Dec 28, 2021

comment:24

Thanks for testing!

@mkoeppe
Copy link
Member

mkoeppe commented Dec 28, 2021

comment:25

Replying to @slel:

Should the the patch or the commit messages
mention the inspiration is from FreeBSD?

Or is the discussion here enough?

I think it's fine as is.

@vbraun
Copy link
Member

vbraun commented Jan 1, 2022

Changed branch from u/mkoeppe/fix_scipy_1_7_2_build_failure_on_cygwin to 9070a03

@mkoeppe
Copy link
Member

mkoeppe commented Jan 14, 2022

Changed commit from 9070a03 to none

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

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

4 participants