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

Test failure (darwin 64-bit PPC) with easy fix #452

Open
gsteemso opened this issue May 20, 2024 · 1 comment
Open

Test failure (darwin 64-bit PPC) with easy fix #452

gsteemso opened this issue May 20, 2024 · 1 comment

Comments

@gsteemso
Copy link

Installing Perl 5.38.2 on 64-bit PowerPC (under OS 10.5 / Darwin 9, the only one it can be done on), the make test step choked on “ExtUtils-MakeMaker/t/04-xs-rpath-darwin.t”. Examination showed that the tiny dummy library it compiles to test linking against was not being built for the correct architecture, causing a link failure.

The fix is to edit line 202 of that file (in the function “compile_mylib”) so that the command line being constructed includes “split(' ', $ENV{'CFLAGS'}), ”. Once this is done, the test library compiles for the same architecture etc. as Perl, and linkage succeeds.

@gsteemso
Copy link
Author

I should add that this fix will fail if the build system does not set CFLAGS, but even though GCC (for example) ignores it, I don't know of any toolchain that doesn't use it at all.

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

No branches or pull requests

1 participant