[MacPorts] #48089: GASNet @1.24.0_0: build fails due to wrong CXX
MacPorts
noreply at macports.org
Wed Jun 17 13:37:35 PDT 2015
#48089: GASNet @1.24.0_0: build fails due to wrong CXX
----------------------+-----------------------
Reporter: larryv@… | Owner: takeshi@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: haspatch | Port: GASNet
----------------------+-----------------------
{{{
:info:build /opt/local/bin/ccache /usr/bin/clang++ -O3 -Wno-unused-value
-Wno-empty-body -Wstrict-prototypes -L/opt/local/lib
-Wl,-headerpad_max_install_names -Wl,-multiply_defined,suppress
-Wl,-no_pie -I. -I./.. -DAMUDP_NDEBUG=1 -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2
-DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DSIZEOF_LONG_LONG=8 -DSIZEOF_VOID_P=8
-DHAVE_STDINT_H -DCOMPLETE_STDINT_H -DHAVE_INTTYPES_H
-DCOMPLETE_INTTYPES_H -DHAVE_SYS_TYPES_H -DAMUDP_ENV_PREFIX=GASNET
-I./../.. -I../.. -DHAVE_GASNET_TOOLS -o amudprun amudprun.o -L. -lamudp
-L../.. -lgasnet_tools-seq -lgcc_eh
:info:build ld: library not found for -lgcc_eh
}}}
Looks like the build should be using `mpicxx`, but it isn’t.
{{{
:debug:configure Environment:
CC='ccache /opt/local/bin/mpicc-mpich-gcc5'
[...]
CXX='ccache /usr/bin/clang++'
[...]
:info:configure checking for C++ compiler family... Clang
:info:configure configure: WARNING: The compiler families of $CC and $CXX
do not match:
:info:configure CC: COMPILER_FAMILY:GNU COMPILER_VERSION:5.1.0
:info:configure CXX: COMPILER_FAMILY:CLANG
COMPILER_VERSION:6.1.0 (clang-602.0.53)
:info:configure If this is not what you intended, then set $CXX to select
a different C++ compiler.
}}}
The [[attachment:GASNet.patch|attached patch]] fixes the build for me, but
I’m not sure that it doesn’t have any unintended side-effects. The
`compilers-1.0` and `mpi-1.0` portgroups are quite opaque.
--
Ticket URL: <https://trac.macports.org/ticket/48089>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list