[libdrm] AutotoolsPackage; %gcc@10.0.0 requires CFLAGS=-fcommon #18393
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.
Bugfix for
gcc@10.0.0:
libdrm %gcc@10.2.0
fails to compile onlinux-ubuntu20.04-skylake_avx512
indevelop
with the following error (spack-build-out.txt):This PR adds
CFLAGS=-fcommon
to theconfigure
phase when%gcc@10.0.0:
, which allows the compilation to succeed on my%gcc@10.2.0:
(spack-build-out.txt).Rewrite to use
AutotoolsPackage
Furthermore, anticipating the request, this is an autotools package, so it was rewritten to use AutotoolsPackage. The compiled versions on
%gcc@9.3.0
before and after the change were compared. The libraries had identical md5sum hashes. The only difference is that the previous version explicitly included themake('check')
step, which is only included withspack install --test all
in the AutotoolsPackage (as in the successful build output linked above).Newer versions
Finally, no attempt was made to support newer versions 2.4.101 or 2.4.102, which are distributed only as
tar.xz
files and use meson as the build system.