Opened 4 years ago

Closed 4 years ago

#62160 closed defect (fixed)

mpich-* compilation error with 10.9

Reported by: massonseb Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: mpich, _SC_PHYS_PAGES Cc: massonseb
Port: mpich

Description

I have compilation error with mpich-* packages with OS 10.9.5 when I try to update mpich-* from version 3.3.2_0 to 3.4_0.
The error is:

:info:build libtool: compile:  /opt/local/bin/clang-mp-9.0 -DHAVE_CONFIG_H -I. -I./include -D_GNU_SOURCE -D__USE_XOPEN2K8 -DSYSCONFDIR=\"/opt/local/etc/mpich-clang90\" -DRDMADIR=\"@rdmadir@\" -DPROVDLDIR=\"/opt/local/lib/mpich-clang90/libfabric\" -I./prov/sockets/include -I./prov/sockets -I./prov/hook/include -I./prov/hook/perf/include -I./prov/hook/hook_debug/include -Wall -O2 -DNDEBUG -c src/shared/ofi_str.c  -fno-common -DPIC -o src/shared/.libs/src_libfabric_la-ofi_str.o
:info:build src/mem.c:112:25: error: use of undeclared identifier '_SC_PHYS_PAGES'
:info:build         page_cnt = ofi_sysconf(_SC_PHYS_PAGES);
:info:build                                ^
:info:build 1 error generated.
:info:build make[3]: *** [src/src_libfabric_la-mem.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....

It looks very similar to #60650 and a solution was proposed here

Would it be possible to use the same solution with mpich?

Change History (7)

comment:1 Changed 4 years ago by massonseb

Cc: massonseb added

comment:2 Changed 4 years ago by kencu (Ken)

I moved that fix into legacysupport, so that might be the best way to go.

Just add:

PortGroup legacysupport 1.1

near the top of the Portfile. ( found by port file XYZ )

Let us know if that works, please.

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to eborisch
Status: newassigned

comment:5 in reply to:  1 Changed 4 years ago by eborisch (Eric A. Borisch)

Replying to massonseb:

Can you try adding the trivial change locally and see if it works? (And if you can build things against the resulting mpich successfully?)

I don't have a legacy system to test on.

Thanks!

comment:6 Changed 4 years ago by massonseb

Yes your change works perfectly.
I was able to compile mpich-clang90 on OS 10.9
Thank you for your quick response.

comment:7 Changed 4 years ago by eborisch (Eric A. Borisch)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.