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

cygwin: workaround DLL load address conflict #22696

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ jobs:
run: |
cd ~/work
set +e
./Configure -des -Dusedevel -Doptimize=-g -DDEBUGGING || exit 1
./Configure -des -Dusedevel -Doptimize=-g -DDEBUGGING -Astatic_ext=I18N/Langinfo || exit 1
- name: Build
shell: sh
env:
Expand Down
17 changes: 16 additions & 1 deletion pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,22 @@ platform specific bugs also go here.

=item *

XXX
C<cygwin> builds may fail during testing due to a conflict between the
load addresses of F<cygperl5_41_6.dll> and
F<olib/auto/I18N/Langinfo/Langinfo.dll>. This will also be visible
for anything that attempts to fork() with C<I18N::LangInfo> loaded.

This is known to fail for builds with options that increase the size
of the binary, such as C<-DDEBUGGING>, C<-Doptimize="-O0 -g"> or
C<-Doptimize="-O2 -g -march=x86-64-v2">.

This can be avoided by building perl with
C<-Astatic_ext=I18N/Langinfo>.

The base addresses are generated by the linker based on the names of
the DLLs, so this is expected to clear up for 5.41.7.

[github #22695]

=back

Expand Down
Loading