[petsc-dev] build errror
Satish Balay
balay at mcs.anl.gov
Sat Sep 21 18:02:19 CDT 2013
On Sat, 21 Sep 2013, Mark F. Adams wrote:
>
> On Sep 21, 2013, at 5:25 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
> > "Mark F. Adams" <mfadams at lbl.gov> writes:
> >
> >>>>
> >>>>
> >>>> $ make -f gmakefile PETSC_ARCH=arch-macosx-gnu-O
> >>>>
> >>
> >> OK, I'm up and running. Do I need to use this -f flag all the time or can I configure something?
> >
> > You haven't told us what happens when you try a parallel build while
> > invoking make directly or when you set MAKE_NP=1 to prevent a parallel
> > build.
>
> 'make MAKE_NP=1' seems to work (as well as Satish's -j 8) … but damn it, just plane 'make all' works now.
>
> Jed: is 'make MAKE_NP=1' what you wanted me to test?
>
> I deleted the ARCH directory and reconfigured and got the same error with 'make all'.
>
> I then did 'make -f gmakefile -j 8' and that worked. I'm going to clean and make super sure that two ''make all" do not work and that a clean 'make -f gmakefile -j 8' works.
Its likely the following will work.
'make -f gmakefile -j 8'
However the following is likely to fail
'gmake -f gmakefile -j 8'
configure is picking up gmake - so 'make all' is failing because of it.
[as its internally doing "gmake -f gmakefile - j 8"]
And the workarround would be to use:
configure --with-make=make ....
Satish
More information about the petsc-dev
mailing list