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

gcc version warning in Makefile.PL #168

Open
cjuerg opened this issue Oct 2, 2023 · 0 comments
Open

gcc version warning in Makefile.PL #168

cjuerg opened this issue Oct 2, 2023 · 0 comments

Comments

@cjuerg
Copy link

cjuerg commented Oct 2, 2023

Line 889-890 in Makefile.PL are now:
889: print "WARNING: Your GNU C compiler is very old. Please upgrade.\n"
890: if ($Config{gccversion} and $Config{gccversion} =~ m/^(1|2.[1-5])/);

Now regexp in 890 throws the "WARNING:..." with "gcc=10." and "gcc=20."
If 890 is changed to
890: if ($Config{gccversion} and $Config{gccversion} =~ m/^(\b[1].\d|\b[2].\b[0-5].)/);

no "WARNING:..." will be thrown for any gcc version > 2.5

I tested it with the following code snippet:
for m in {1..20} ; do \ for s in {0..20} ; do \ for u in {0..20} ; do \ echo "Version: "$m.$s.$u $(/usr/bin/perl -e "my \$version='"$m.$s.$u"';print 'WARNING: Your GNU C compiler is very old. Please upgrade.' if (\$version =~ m/^(\b[1]\.\d|\b[2]\.\b[0-5]\.)/);") && echo ; \ done ; \ done ; \ done | grep -i warning

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