[MacPorts] #62160: mpich-* compilation error with 10.9

MacPorts noreply at macports.org
Wed Jan 27 14:58:56 UTC 2021


#62160: mpich-* compilation error with 10.9
-----------------------------------+--------------------
 Reporter:  massonseb              |      Owner:  (none)
     Type:  defect                 |     Status:  new
 Priority:  Normal                 |  Milestone:
Component:  ports                  |    Version:  2.6.4
 Keywords:  mpich, _SC_PHYS_PAGES  |       Port:  mpich
-----------------------------------+--------------------
 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
 [https://github.com/macports/macports-
 ports/blob/3db241d4f40b0343a012d320b2933a7ade5353c3/databases/mysql8/files
 /patch-mysql8-workaround-no-SC_PHYS_PAGES.diff here]

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

-- 
Ticket URL: <https://trac.macports.org/ticket/62160>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list