-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
BLD:1.8.0: SciPy is not LTO ready #16098
Copy link
Copy link
Closed
Labels
Build issuesIssues with building from source, including different choices of architecture, compilers and OSIssues with building from source, including different choices of architecture, compilers and OSdefectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expected
Milestone
Metadata
Metadata
Assignees
Labels
Build issuesIssues with building from source, including different choices of architecture, compilers and OSIssues with building from source, including different choices of architecture, compilers and OSdefectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expected
Describe your issue.
Looks like
scipylast release is not LTO ready and compiler shows a lot LTO related warnings.Reproducing Code Example
Regular build with passing in env variables
-flto=auto -flto-partition=nonein $CFLAGS and $CXXFLAGS, and-flto=auto -flto-partition=none -fuse-linker-pluginin $LDFLAGS.Error message
-Wlto-type-mismatchare caused by mismatched declarations in header files and place where routine is defined. Someone need to make decision which one version of those declarations needs to be used in both places.Using LTO as well exposed
-Wmaybe-uninitializedwarnings.SciPy/NumPy/Python version information
scipy 1.8.0, python 3.8.13