-
Notifications
You must be signed in to change notification settings - Fork 527
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
ExtUtils::CBuilder fails to compile modules with warnings when -Wall is part of Perl's compile time flags #22212
Comments
|
Yes, as noted |
No, the offending flag is
Yeah prepending a
You can't easily do that, except by overriding |
Yeah
Thanks for the replies - at least I know I'm not missing anything wrt the flags. But it seems almost impossible to override them completely unless I am missing something. No matter how hard I tried to override the flags it seemed that somewhere new flags were added - perhaps I didn't try supplying them on the command line to Thanks again |
Update
Module: ExtUtils::CBuilder::Base
Description
Using the latest Amazon Linux container (
amazonlinux:latest
) ...While trying to compile Archive::Extract::Libarchive, compiling fails because the perl supplied in their repo is compiled with the
-Wall
flag which is included whenModule::Build
attempts to compile the module (and there are warnings when compiling).Removing -Wall right before Module::Build runs the compiler allows the module to proceed..
Not sure if this is a bug in
Module::Build, ExtUtils::CBuilder::Base
or just a deficiency of the tool chain's ability to remove flags that might cause downstream issues? In any event, there are many modules that compile with warnings so this may be a bigger issue when trying to install modules on the latest version of Amazon Linux.Steps to Reproduce
FROM amazonlinux:latest
)Perl configuration
The text was updated successfully, but these errors were encountered: