Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
a9ee4da6
Unverified
Commit
a9ee4da6
authored
4 years ago
by
Michael Kuhn
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ncl: Fix build with gcc@10: (#16624)
parent
9b8082ec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/ncl/package.py
+7
-0
7 additions, 0 deletions
var/spack/repos/builtin/packages/ncl/package.py
with
7 additions
and
0 deletions
var/spack/repos/builtin/packages/ncl/package.py
+
7
−
0
View file @
a9ee4da6
...
...
@@ -30,6 +30,9 @@ class Ncl(Package):
patch
(
'
ymake-filter.patch
'
,
when
=
"
@6.4.0
"
)
# ymake additional local library and includes will be filtered improperly
patch
(
'
ymake.patch
'
,
when
=
"
@6.4.0:
"
)
# ncl does not build with gcc@10:
# https://github.com/NCAR/ncl/issues/123
patch
(
'
https://src.fedoraproject.org/rpms/ncl/raw/12778c55142b5b1ccc26dfbd7857da37332940c2/f/ncl-boz.patch
'
,
when
=
'
%gcc@10:
'
,
sha256
=
'
64f3502c9deab48615a4cbc26073173081c0774faf75778b044d251e45d238f7
'
)
# This installation script is implemented according to this manual:
# http://www.ncl.ucar.edu/Download/build_from_src.shtml
...
...
@@ -144,6 +147,10 @@ def prepare_site_config(self):
cc_flags
.
append
(
'
-fp-model precise
'
)
c2f_flags
.
extend
([
'
-lifcore
'
,
'
-lifport
'
])
if
self
.
spec
.
satisfies
(
'
%gcc@10:
'
):
fc_flags
.
append
(
'
-fallow-argument-mismatch
'
)
cc_flags
.
append
(
'
-fcommon
'
)
with
open
(
'
./config/Spack
'
,
'
w
'
)
as
f
:
f
.
writelines
([
'
#define HdfDefines
\n
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment