Opened 9 years ago
Closed 9 years ago
#48089 closed defect (fixed)
GASNet @1.24.0_0+gcc5+mpich: build fails due to wrong CXX
Reported by: | larryv (Lawrence Velázquez) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | haspatch | Cc: | |
Port: | GASNet |
Description
: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 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.
Attachments (2)
Change History (4)
Changed 9 years ago by larryv (Lawrence Velázquez)
Changed 9 years ago by larryv (Lawrence Velázquez)
Attachment: | GASNet.patch added |
---|
comment:1 Changed 9 years ago by larryv (Lawrence Velázquez)
Summary: | GASNet @1.24.0_0: build fails due to wrong CXX → GASNet @1.24.0_0+gcc5+mpich: build fails due to wrong CXX |
---|
comment:2 Changed 9 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Sorry for slow response. Thanks for the patch. r138283.