Opened 4 years ago
Closed 4 years ago
#62214 closed defect (fixed)
openmpi-default +gccdevel fails to build on aarch64 with "error: address argument to atomic operation must be a pointer to integer or pointer"
Reported by: | platipodium (Carsten Lemmen) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | arm64, aarch64 | Cc: | |
Port: | openmpi-default |
Description
This could be an upstream issue (but I am not sure)
opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-default/work/openmpi-4.1.0/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/gcc_builtin/atomic.h:197:12: error: address argument to atomic operation must be a pointer to integer or pointer ('pmix_atomic_int128_t *' (aka '_Atomic(pmix_int128_t) *') invalid) :info:build return __atomic_compare_exchange_n (addr, oldval, newval, false, :info:build ^ ~~~~ :info:build 1 error generated.
Attachments (2)
Change History (10)
Changed 4 years ago by platipodium (Carsten Lemmen)
comment:1 Changed 4 years ago by mf2k (Frank Schima)
Cc: | mascguy removed |
---|---|
Owner: | set to mascguy |
Status: | new → assigned |
comment:2 Changed 4 years ago by mascguy (Christopher Nielsen)
comment:3 Changed 4 years ago by platipodium (Carsten Lemmen)
Thanks for looking into this. It is in fact currently a complete showstopper for my work.
comment:4 Changed 4 years ago by mascguy (Christopher Nielsen)
It looks like port gcc-devel
was updated to a newer release, just a few hours ago. Can you try updating your ports, followed by another install attempt?
comment:5 Changed 4 years ago by platipodium (Carsten Lemmen)
Sure, just updated
sh-3.2# port installed |grep gcc-devel gcc-devel @11-20210207_0 (active) libgcc-devel @11-20210207_0 (active)
But the error persists.
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-default/work/openmpi-4.1.0/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/atomic.h:168: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-default/work/openmpi-4.1.0/opal/mca/pmix/pmix3x/pmix/src/atomics/sys/gcc_builtin/atomic.h:197:12: error: address argument to atomic operation must be a pointer to integer or pointer ('pmix_atomic_int128_t *' (aka '_Atomic(pmix_int128_t) *') invalid) :info:build return __atomic_compare_exchange_n (addr, oldval, newval, false, :info:build ^ ~~~~ :info:build 1 error generated.
comment:6 Changed 4 years ago by gfiumara (Greg Fiumara)
Appears to be upstream issue (https://github.com/open-mpi/ompi/issues/8410), resolved in 4.1.1rc1. Attaching a Portfile diff for those who can't wait for an official 4.1.1 release. Tested on macOS 11.2.1 on M1 Mac Mini.
Changed 4 years ago by gfiumara (Greg Fiumara)
Attachment: | openmpi_4_1_1rc1.patch added |
---|
Update openmpi Portfile to 4.1.1rc1
comment:7 Changed 4 years ago by mascguy (Christopher Nielsen)
PR submitted to update to 4.1.1:
Once merged, that should resolve this issue.
comment:8 Changed 4 years ago by Christopher Nielsen <mascguy@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This certainly could be an upstream issue. Is building this port using an upstream gcc, essential for your work? (I'm simply trying to prioritize this, vs. other issues.)