GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MAINT: fix licence path win by andyfaff · Pull Request #24793 · numpy/numpy

Conversation

@andyfaff

@andyfaff andyfaff commented Sep 25, 2023

Copy link
Copy Markdown
Member

@charris, I think there's a mistake in the licence path on windows.

Also, is it permitted to statically link a LGPL libquadmath into the libopenblas that we bundle?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@andyfaff
MAINT: fix licence path win
b307771
@github-actions github-actions Bot added the 03 - Maintenance label Sep 25, 2023
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Sep 25, 2023
@charris

charris commented Sep 25, 2023

Copy link
Copy Markdown
Member

@mattip @rgommers Thoughts?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tylerjereddy
tylerjereddy reviewed Sep 25, 2023
View reviewed changes
Comment thread tools/wheels/LICENSE_win32.txt

Name: libquadmath
Files: numpy\.libs\libopenb*.dll
Files: numpy.libs\libopenb*.dll

@tylerjereddy tylerjereddy Sep 25, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we statically linking a .dll? Or should it be .a for Windows? And we're sure it should be an OpenBLAS library name for quadmath instead of a quadmath-specific lib? Is it an indirect link to quadmath via OpenBLAS then?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tylerjereddy tylerjereddy Sep 25, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that's what's in the wheel, although maybe the static linking line below this line is less clear to me via DLL.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rgommers rgommers Sep 25, 2023

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct. The one file that is vendored is libopenblas64*.dll, and that DLL also contains statically linked libgcc and libquadmath.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rgommers
rgommers approved these changes Sep 25, 2023
View reviewed changes

@rgommers rgommers left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andyfaff. That's indeed a mistake, it snuck in in gh-24753. The discussion shows that the intent was numpy.libs, and that is what is in the 1.26.0 wheels.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tools/wheels/LICENSE_win32.txt

Name: libquadmath
Files: numpy\.libs\libopenb*.dll
Files: numpy.libs\libopenb*.dll

@rgommers rgommers Sep 25, 2023

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct. The one file that is vendored is libopenblas64*.dll, and that DLL also contains statically linked libgcc and libquadmath.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rgommers

rgommers commented Sep 25, 2023

Copy link
Copy Markdown
Member

Also, is it permitted to statically link a LGPL libquadmath into the libopenblas that we bundle?

Yes, that is permitted. I looked at those details when reviewing gh-24753; there's no substantial difference in dynamic vs static linking.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers rgommers mentioned this pull request Sep 25, 2023
MAINT: fix libquadmath licence scipy/scipy#19299
Merged
@charris
charris merged commit 4953864 into numpy:main Sep 25, 2023
@charris

charris commented Sep 25, 2023

Copy link
Copy Markdown
Member

Thanks Andrew.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@andyfaff
andyfaff deleted the licence branch September 25, 2023 21:56
@charris charris mentioned this pull request Sep 26, 2023
MAINT: fix licence path win #24804
Merged
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 26, 2023
@carlkl

carlkl commented Sep 27, 2023

Copy link
Copy Markdown
Member

just a comment: (windows)

a statically linked and stripped libquadmath.dll doesn't include any libquadmath code. This can be easily proven with linker maps.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip

mattip commented Sep 27, 2023

Copy link
Copy Markdown
Member

@carlkl I don't understand the comment. The source code is still compiled into the resulting OpenBLAS dll.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip

mattip commented Sep 27, 2023

Copy link
Copy Markdown
Member

Or are you saying that the windows DLL does not actually use any of the libquad code, since it does not call any 128-bit float routines, so the linker will not pull in the code?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip

mattip commented Sep 27, 2023

Copy link
Copy Markdown
Member

Ahh, I found this discussion of libquadmath on an openblas-libs issue MacPython/openblas-libs#82 (comment). It would be nice to upstream that patch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@carlkl

carlkl commented Sep 27, 2023

Copy link
Copy Markdown
Member

I tested this last year or so with te help of linker maps. The symbol quadmath_snprintf isn't used after all in the resulting binary but it is necessary to make the linker happy. I can check this again if needed and provide more details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

@tylerjereddy tylerjereddy tylerjereddy left review comments
@rgommers rgommers rgommers approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

03 - Maintenance

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@andyfaff @charris @rgommers @carlkl @mattip @tylerjereddy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.