Opened 16 months ago

Closed 9 months ago

Last modified 3 months ago

#71266 closed defect (fixed)

mpich-default @4.2.2_0+gcc14 fails to build

Reported by: oscarrutt Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: sonoma arm64 Cc: mascguy (Christopher Nielsen), stefanoaz (Steve R), Dave-Allured (Dave Allured)
Port: mpich-default

Description

mpich-default fails to install. This is a dependency of Octave so Octave also fails to install. The installation attempts to install version 4.2.2. The mpich home page states that the latest version is 4.2.3 so it doesn't make sense to file a ticket there since updating MacPorts seems like the first thing to try. My machine = MacBook Pro running Sonoma 14.7.1 ports version = 2.10.4 Octave version

Attachments (1)

main.log.zip (228.7 KB) - added by oscarrutt 16 months ago.
log

Download all attachments as: .zip

Change History (13)

Changed 16 months ago by oscarrutt

Attachment: main.log.zip added

log

comment:1 Changed 16 months ago by jmroot (Joshua Root)

Cc: mascguy added
Keywords: arm64 added; mpich aarch removed
Owner: set to eborisch
Port: mpich-default added
Status: newassigned
Summary: mpich-default 4.2.2 fails to installmpich-default @4.2.2_0+gcc14 fails to build
:info:build src/mpi/datatype/typerep/src/typerep_ext32.c:111:14: error: duplicate case value '201326592'
:info:build   111 |         case MPI_CXX_FLOAT_COMPLEX:
:info:build       |              ^
:info:build ./src/include/mpi.h:229:37: note: expanded from macro 'MPI_CXX_FLOAT_COMPLEX'
:info:build   229 | #define MPI_CXX_FLOAT_COMPLEX       ((MPI_Datatype)MPI_DATATYPE_NULL)
:info:build       |                                     ^
:info:build src/mpi/datatype/typerep/src/typerep_ext32.c:108:14: note: previous case defined here
:info:build   108 |         case MPI_COMPLEX32:
:info:build       |              ^
:info:build ./src/include/mpi.h:196:31: note: expanded from macro 'MPI_COMPLEX32'
:info:build   196 | #define MPI_COMPLEX32         ((MPI_Datatype)MPI_DATATYPE_NULL)
:info:build       |                               ^

comment:2 Changed 16 months ago by reneeotten (Renee Otten)

see also 71171 ; different error and on x86_64 but it also fails... so far no response from the maintainer

comment:3 Changed 16 months ago by eborisch (Eric A. Borisch)

Not sure when I’ll have time to look at this. Open to any patches / pull requests to address.

comment:4 Changed 16 months ago by eborisch (Eric A. Borisch)

I’ll try to get the version bumped this afternoon to the latest on the off chance it helps.

comment:5 Changed 16 months ago by stefanoaz (Steve R)

Cc: stefanoaz added

comment:6 Changed 16 months ago by stefanoaz (Steve R)

Build of mpich-default (during build of Octave) fails for me on Sonoma + M3. This was with V4.2.3(mpich).

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-default/work/mpich-4.2.3' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-default/work/mpich-4.2.3' make: * [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-default/work/mpich-4.2.3' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-default/work/mpich-4.2.3" && /usr/bin/make -j12 -w all Exit code: 2 Error: Failed to build mpich-default: command execution failed

comment:7 Changed 15 months ago by stefanoaz (Steve R)

Errors where code fails:

src/mpi/datatype/typerep/src/typerep_yaksa_init.c:308:14: error: duplicate case value '201326592'

308 | case MPI_CXX_DOUBLE_COMPLEX:

|

./src/include/mpi.h:230:37: note: expanded from macro 'MPI_CXX_DOUBLE_COMPLEX'

230 | #define MPI_CXX_DOUBLE_COMPLEX ((MPI_Datatype)MPI_DATATYPE_NULL)

|

src/mpi/datatype/typerep/src/typerep_yaksa_init.c:304:14: note: previous case defined here

304 | case MPI_CXX_FLOAT_COMPLEX:

|

./src/include/mpi.h:229:37: note: expanded from macro 'MPI_CXX_FLOAT_COMPLEX'

229 | #define MPI_CXX_FLOAT_COMPLEX ((MPI_Datatype)MPI_DATATYPE_NULL)

|

src/mpi/datatype/typerep/src/typerep_yaksa_init.c:312:14: error: duplicate case value '201326592'

312 | case MPI_CXX_LONG_DOUBLE_COMPLEX:

|

./src/include/mpi.h:231:37: note: expanded from macro 'MPI_CXX_LONG_DOUBLE_COMPLEX'

231 | #define MPI_CXX_LONG_DOUBLE_COMPLEX ((MPI_Datatype)MPI_DATATYPE_NULL)

|

src/mpi/datatype/typerep/src/typerep_yaksa_init.c:308:14: note: previous case defined here

308 | case MPI_CXX_DOUBLE_COMPLEX:

|

./src/include/mpi.h:230:37: note: expanded from macro 'MPI_CXX_DOUBLE_COMPLEX'

230 | #define MPI_CXX_DOUBLE_COMPLEX ((MPI_Datatype)MPI_DATATYPE_NULL)

|

2 errors generated.

comment:8 Changed 10 months ago by Dave-Allured (Dave Allured)

comment:9 Changed 10 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:10 Changed 9 months ago by Dave-Allured (Dave Allured)

It looks like this issue is fixed in mpich version 4.3.0. Works for me:

macOS 14.6.1 Sonoma

> mpicc-mpich-mp --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: x86_64-apple-darwin23.6.0

Please confirm and close this ticket.

comment:11 in reply to:  10 Changed 9 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: assignedclosed

Replying to Dave-Allured:

It looks like this issue is fixed in mpich version 4.3.0. Works for me:

macOS 14.6.1 Sonoma

> mpicc-mpich-mp --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: x86_64-apple-darwin23.6.0

Please confirm and close this ticket.

Agreed, glad it's fixed!

comment:12 Changed 3 months ago by MoorFGDES (Thomas Moor)

This problem appears to be back with

mpich-default @4.3.0

Apple clang version 17.0.0 (clang-1700.4.4.1)

Target: arm64-apple-darwin25.1.0

Checking the mpich sources, it is again fixed in 4.3.2

Relevant file that causes the issue:

./src/include/mpi.h.in

where in 4.3.2 the macros MPI_CXX_*_COMPLEX have ben updated

Note: See TracTickets for help on using tickets.