Opened 6 years ago

Closed 5 years ago

#57424 closed defect (fixed)

petsc: FCFLAGS and FFLAGS are both set, but with different values

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jjstickel (Jonathan Stickel), tartarini (Daniele Tartarini), vincelap, Schamschula (Marius Schamschula), aaschwanden (Andy Aschwanden)
Port: petsc

Description

petsc does not build:

*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
FCFLAGS and FFLAGS are both set, but with different values (FCFLAGS=-pipe -m64, FFLAGS=-pipe)
*******************************************************************************

Change History (14)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Likely the same base issue as #57358.

comment:2 Changed 6 years ago by jjstickel (Jonathan Stickel)

Cc: jjstickel added

comment:3 Changed 6 years ago by jjstickel (Jonathan Stickel)

I can confirm the workaround in #57358#comment:11 worked for me. I installed petsc with these variants:

port -u install petsc +gfortran -mpich +openmpi +sundials -accelerate +openblas

where I already had openmpi-default +gcc8 installed.

comment:4 in reply to:  3 Changed 6 years ago by FraPsiZeta

Replying to jjstickel:

I can confirm the workaround in #57358#comment:11 worked for me. I installed petsc with these variants:

port -u install petsc +gfortran -mpich +openmpi +sundials -accelerate +openblas

where I already had openmpi-default +gcc8 installed.

To this day the problem persist

 *******************************************************************************
          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
 -------------------------------------------------------------------------------
 FCFLAGS and FFLAGS are both set, but with different values (FCFLAGS=-pipe -m64, FFLAGS=-pipe -Os -m64)
*******************************************************************************

I tried the workaround in #57358, i've guessed that the position in which the line needs to be add in the file (opt/local/../../math/petsc/Portfile) is irrelevant. If that is the case (and if didn't screw anything up) is there another solution to this problem? I tried your variants, as well as without any, can't understand what the problem is (by the way, no other ports are installed, just the dependecies needed for petsc)

comment:5 Changed 6 years ago by seanfarley (Sean Farley)

Yeah, one of the problems with doing this all in base. If you don't need fortran binding (it doesn't seem like you do since you're not using mumps), then you can just remove the +gfortran variant.

comment:6 in reply to:  5 Changed 6 years ago by FraPsiZeta

Replying to seanfarley:

Yeah, one of the problems with doing this all in base. If you don't need fortran binding (it doesn't seem like you do since you're not using mumps), then you can just remove the +gfortran variant.

It still does not compile, even without the +gfortran. Any other workaround?

comment:7 Changed 6 years ago by mf2k (Frank Schima)

Owner: seanfarley deleted

comment:8 Changed 6 years ago by tartarini (Daniele Tartarini)

Cc: tartarini added

comment:9 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: vincelap added

Has duplicate #58530.

comment:10 Changed 5 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:11 Changed 5 years ago by aaschwanden (Andy Aschwanden)

I was finally able to install petsc using

port install petsc +mumps

after I added the following to lines to the Portfile:

configure.fcflags   -Os
configure.fflags    -Os -m64

I had to play with the order of the flags. "-Os -m64" is not the same as "-m64 -Os".

This clearly is a hack and I'm sure there is a more elegant way of doing this, but I'm not well versed in Portfile writing.

comment:12 Changed 5 years ago by aaschwanden (Andy Aschwanden)

Cc: aaschwanden added

comment:13 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Owner: set to MarcusCalhoun-Lopez
Status: assignedaccepted

comment:14 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: acceptedclosed

This has been fixed in a released version of MacPorts (see the discussion in #57358).

Note: See TracTickets for help on using tickets.