Skip to content

nn-c uses invalid self.compiler.pic_flag? (breaks nn-c build, via elmerfem build) #18469

@michaelkarlcoleman

Description

@michaelkarlcoleman

These lines fail, because there is no such member, and looking at other packages, it seems that flags like

self.compiler.cc_pic_flag
self.compiler.cxx_pic_flag
self.compiler.fc_pic_flag
#or ?
self.compiler.f77_pic_flag

would be appropriate.

'CFLAGS={0}'.format(self.compiler.pic_flag),
'CXXFLAGS={0}'.format(self.compiler.pic_flag),
'FFLAGS={0}'.format(self.compiler.pic_flag)

I triggered this on recent devel (today) by

spack install --test=root elmerfem@devel +mpi +hypre +lua +mumps +openmp +scatt2d +trilinos +zoltan

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions