Discussion:
[MacPorts] #57358: Sundials upgrade to 2.9_0 fails
MacPorts
2018-10-12 20:08:28 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
---------------------+----------------------
Reporter: dershow | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: sundials
---------------------+----------------------
I have sundials 2.8_1 installed, and I attempted to upgrade to 2.9_0.
First it reported this:

{{{
---> Configuring sundials
Error: mpich-default has a different Fortran variant (gcc7) than the one
selected, gcc8 (via +gfortran).
Error: Failed to configure sundials: Install mpich-default +gcc8
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

}}}

mpich-default was already installed with defaults (variant +gcc7), and it
hadn't indicated that there was an upgrade. So, I reinstalled it, so that
it would rebuild to the new defaults: +gcc8.

I then again tried to upgrade sundials, and it still fails to configure.
I have attached my log.
--
Ticket URL: <https://trac.macports.org/ticket/57358>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-12 20:09:08 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
-----------------------+--------------------
Reporter: dershow | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+--------------------
Changes (by dershow):

* Attachment "main.log" added.
--
Ticket URL: <https://trac.macports.org/ticket/57358>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-12 20:22:09 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------
Changes (by Schamschula):

* cc: seanfarley (removed)
* owner: (none) => seanfarley
* status: new => assigned


Comment:

I also ran into this. I installed mpich +gcc8, and all was well.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-12 21:27:21 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by dershow):

Thanks. I just tried it, but it isn't working for me. I also tried to
install mpich-gcc8 and then did what the port notes say: sudo port select
--set mpi mpich-gcc8-fortran and it still doesn't build for me.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-16 00:52:19 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by jsmoon7605):

You need to install mpich-default with the variant gcc8 (sudo port install
mpich-default +gcc8). It will be automatically activated. Then, you can
uninstall the previous one (optional).
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-16 01:14:46 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by dershow):

Nope, mpich-default doesn't do it. It's still not working for me:

{{{
$ port installed mpich-default
The following ports are currently installed:
mpich-default @3.2.1_4+gcc6
mpich-default @3.2.1_4+gcc7
mpich-default @3.2.1_4+gcc8 (active)
$ sudo port clean sundials
---> Cleaning sundials
$ sudo port upgrade sundials
---> Computing dependencies for sundials
---> Fetching archive for sundials
---> Attempting to fetch
sundials-3.1.2_1+accelerate+gfortran+mpich.darwin_17.x86_64.tbz2 from
https://packages.macports.org/sundials
---> Attempting to fetch
sundials-3.1.2_1+accelerate+gfortran+mpich.darwin_17.x86_64.tbz2 from
http://ywg.ca.packages.macports.org/mirror/macports/packages/sundials
---> Attempting to fetch
sundials-3.1.2_1+accelerate+gfortran+mpich.darwin_17.x86_64.tbz2 from
http://lil.fr.packages.macports.org/sundials
---> Fetching distfiles for sundials
---> Verifying checksums for sundials
---> Extracting sundials
---> Applying patches to sundials
---> Configuring sundials
Error: Failed to configure sundials: configure failure: command execution
failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

}}}
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-16 01:27:42 UTC
Permalink
#57358: Sundials upgrade to 2.9_0 fails
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by dershow):

Here is the last part of the log file, where the error occurs:


{{{
:info:configure -- Searching for a Fortran compiler...
/opt/local/bin/mpif90-mpich-mp
:info:configure CMake Error at config/SundialsCMakeMacros.cmake:94
(MESSAGE):
:info:configure
************************************************************
:info:configure ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are
:info:configure not equal.
:info:configure
************************************************************
:info:configure Call Stack (most recent call first):
:info:configure config/SundialsFortran.cmake:55 (PRINT_ERROR)
:info:configure CMakeLists.txt:628 (INCLUDE)
:info:configure -- Configuring incomplete, errors occurred!
:info:configure See also
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/work/build/CMakeFiles/CMakeOutput.log".
:info:configure See also
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/work/build/CMakeFiles/CMakeError.log".
:info:configure Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/work/build"
&& /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles"
-DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local"
-DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
-DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
-DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
-DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DEXAMPLES_ENABLE_C=OFF
-DEXAMPLES_ENABLE_CXX=OFF -DEXAMPLES_ENABLE_F77=OFF
-DEXAMPLES_ENABLE_F90=OFF -DBLAS_ENABLE=OFF -DLAPACK_ENABLE=ON
-DFCMIX_ENABLE=ON -DKLU_ENABLE=ON -DKLU_LIBRARY_DIR=/opt/local/lib
-DKLU_INCLUDE_DIR=/opt/local/include -DCMAKE_INCLUDE_DIRECTORIES_BEFORE=ON
-DSUNDIALS_INDEX_TYPE=int32_t -DBLA_VENDOR=Apple
-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.13"
-DCMAKE_OSX_SYSROOT="/" -DMPI_ENABLE=ON -DMPI_MPICC=/opt/local/bin/mpicc-
mpich-mp -DMPI_MPICXX=/opt/local/bin/mpicxx-mpich-mp
-DMPI_MPIF77=/opt/local/bin/mpif77-mpich-mp
-DMPI_MPIF90=/opt/local/bin/mpif90-mpich-mp
-DMPI_RUN_COMMAND=/opt/local/bin/mpiexec-mpich-mp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/work/sundials-3.1.2
:info:configure Exit code: 1
:error:configure Failed to configure sundials: configure failure: command
execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure while executing
:debug:configure "$procedure $targetname"
:error:configure See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_sundials/sundials/main.log
for details.

}}}

Any ideas?
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-16 23:46:34 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by ryandesign):

The buildbot sees the same error.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-20 13:40:02 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by MarcusCalhoun-Lopez):

I believe this is a bug in base.\\
I recently ran into it with PETSc.\\
There is a [https://github.com/macports/macports-base/pull/108 pull
request] that attempts to fix it.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-21 20:23:42 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by jmroot):

In [changeset:"b3ca3444e72c01aa4247eca31db91fc17d13154a/macports-base"
b3ca3444e72c01aa4247eca31db91fc17d13154a/macports-base] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-base"
revision="b3ca3444e72c01aa4247eca31db91fc17d13154a"
set FFLAGS not F77FLAGS in configure env

Issue introduced in aa375e5. The environment variable corresponding to
f77 cannot be derived by upper-casing it.

Closes: #108
See: https://trac.macports.org/ticket/57358
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-22 09:58:36 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by jmroot):

This could be a workaround:
{{{
configure.fflags-append {*}${configure.f77_archflags}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-06 18:23:41 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by dershow):

I added that to my local portfile and now it does build. Thank you.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-26 19:43:35 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by dershow):

Was this fixed? I am a little confused unclear about the status. I
believe that I locally made the edit above, and then was able to build
sundials. But, I just looked at my local port file and it doesn't seem to
have that edit. But, sundials is installed fine for me. Was there a
change that fixed this and updated it? Should this be closed?
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-29 23:13:13 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by jjstickel):

I guess it is fixed in master, but it will not show up via selfupdate
until there is another release. The workaround mentioned above worked for
me today.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-04 13:59:16 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------

Comment (by dershow):

Do you mean another release of macports or sundials? Does that mean that
we need a rev-bump for sundials, or an actual change in the port to match
a new sundials release?
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-06 14:50:32 UTC
Permalink
#57358: sundials @3.1.2_1: ERROR: FFLAGS='-pipe -Os' and FCFLAGS='-pipe -Os -m64'
are both set but are not equal.
-----------------------+------------------------
Reporter: dershow | Owner: seanfarley
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sundials |
-----------------------+------------------------
Post by MacPorts
Do you mean another release of macports or sundials? Does that mean
that we need a rev-bump for sundials, or an actual change in the port to
match a new sundials release?

The next release of macports base, i.e., the port command. It is a bit
unusual that something in base fixes a specific port, but apparently that
is the situation here.
--
Ticket URL: <https://trac.macports.org/ticket/57358#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...