... libtool: link: x86_64-pc-linux-gnu-gcc -march=westmere -mno-aes -mno-avx -O2 -pipe -march=westmere -mno-aes -mno-avx -O2 -pipe -g -Wl,-O1 -Wl,--as-needed -o hydra_pmi_proxy hydra_pmi_proxy-pmip.o hydra_pmi_proxy-pmip_cb.o hydra_pmi_proxy-pmip_utils.o hydra_pmi_proxy-pmip_pmi_v1.o hydra_pmi_proxy-pmip_pmi_v2.o hydra_pmi_proxy-common.o hydra_pmi_proxy-pmi_v2_common.o -L./../../mpl -L. -L/usr/lib64 -L/usr/lib /var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/pm/hydra/.libs/libhydra.a -lnsl /var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/mpl/.libs/libmpl.a -lpthread /usr/lib64/libhwloc.so -lm -lnuma -ludev -lpciaccess -lxml2 libtool: link: x86_64-pc-linux-gnu-gcc -march=westmere -mno-aes -mno-avx -O2 -pipe -march=westmere -mno-aes -mno-avx -O2 -pipe -g -Wl,-O1 -Wl,--as-needed -o hydra_persist hydra_persist-persist_server.o -L./../../mpl -L. -L/usr/lib64 -L/usr/lib /var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/pm/hydra/.libs/libhydra.a -lnsl /var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/mpl/.libs/libmpl.a -lpthread /usr/lib64/libhwloc.so -lm -lnuma -ludev -lpciaccess -lxml2 /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hydra_pmi_proxy-pmip_cb.o:/var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/pm/hydra/./pm/pmiserv/pmip_cb.c:15: multiple definition of `HYD_pmcd_pmip'; hydra_pmi_proxy-pmip.o:/var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/pm/hydra/./pm/pmiserv/pmip.c:14: first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hydra_pmi_proxy-pmip_utils.o:/var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/pm/hydra/./pm/pmiserv/pmip_utils.c:14: multiple definition of `HYD_pmcd_pmip'; hydra_pmi_proxy-pmip.o:/var/tmp/portage/sys-cluster/mpich-3.0.4/work/mpich-3.0.4/src/pm/hydra/./pm/pmiserv/pmip.c:14: first defined here collect2: error: ld returned 1 exit status .... Full build log is in attachments. Reproducible: Always
Created attachment 745050 [details] mpich-3.0.4_build.log
Created attachment 745053 [details] imerge_info.txt
Looks like https://bugs.gentoo.org/716664 for sys-cluster/mpich2-1.5
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2772ce712ccef6d9ae6196d5a84615d9c56b7811 commit 2772ce712ccef6d9ae6196d5a84615d9c56b7811 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-10-15 22:01:20 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-15 22:01:20 +0000 sys-cluster/mpich: add -fcommon for 3.0.4-r1 I can't reproduce this but it builds with this anyway. Closes: https://bugs.gentoo.org/818280 Signed-off-by: Sam James <sam@gentoo.org> sys-cluster/mpich/mpich-3.0.4-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+)
Does that resolve the issue for you?
(In reply to Sam James from comment #5) > Does that resolve the issue for you? Thanks. It fixes the build issue.