hiroyuki-sato / ucx

Unified Communication X (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group):
http://www.openucx.org
Other
2 stars 0 forks source link

UCM: gcc -z option #43

Open hiroyuki-sato opened 4 years ago

hiroyuki-sato commented 4 years ago
AC_SUBST([UCM_MODULE_LDFLAGS],
         ["-Xlinker -z -Xlinker interpose -Xlinker --no-as-needed"])
/bin/sh ../../libtool  --tag=CC   --mode=link gcc -O3 -g -Wall \
-Werror -fmax-type-align=16 -funwind-tables \
-Wno-missing-field-initializers -Wno-unused-parameter \
-Wno-unused-label -Wno-long-long -Wno-endif-labels \
-Wno-sign-compare -Wno-multichar -Wno-deprecated-declarations \
-Winvalid-pch -Wno-pointer-sign \
-Werror-implicit-function-declaration -Wno-format-zero-length \
-Wnested-externs -Wshadow -Wno-deprecated-declarations \
-I/path/to/progress64/include  -L/path/to/progress64 -lprogress64 \
-ldl -version-info 0:0:0  -o libucm.la -rpath /usr/lib \
event/libucm_la-event.lo malloc/libucm_la-malloc_hook.lo \
mmap/libucm_la-install.lo util/libucm_la-replace.lo \
util/libucm_la-log.lo util/libucm_la-reloc.lo \
util/libucm_la-sys.lo bistro/libucm_la-bistro.lo \
bistro/libucm_la-bistro_x86_64.lo bistro/libucm_la-bistro_aarch64.lo \
bistro/libucm_la-bistro_ppc64.lo ptmalloc286/libucm_la-malloc.lo  \
-ldl -lintl

libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libucm.0.dylib  \
event/.libs/libucm_la-event.o malloc/.libs/libucm_la-malloc_hook.o \
mmap/.libs/libucm_la-install.o util/.libs/libucm_la-replace.o util/.libs/libucm_la-log.o \
util/.libs/libucm_la-reloc.o util/.libs/libucm_la-sys.o bistro/.libs/libucm_la-bistro.o \
bistro/.libs/libucm_la-bistro_x86_64.o bistro/.libs/libucm_la-bistro_aarch64.o \
bistro/.libs/libucm_la-bistro_ppc64.o ptmalloc286/.libs/libucm_la-malloc.o  \
 -ldl -lintl  -O3 -g -Wl,-z -Wl,interpose -Wl,--no-as-needed   -install_name  /usr/lib/libucm.0.dylib \
-compatibility_version 1 -current_version 1.0 -Wl,-single_module
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libucm.la] Error 1
make: *** [all-recursive] Error 1
ld: warning: -undefined dynamic_lookup is incompatible with dyld share cache
ld: warning: static initializer found in 'event/.libs/libucm_la-event.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: static initializer found in 'malloc/.libs/libucm_la-malloc_hook.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: static initializer found in 'util/.libs/libucm_la-replace.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: static initializer found in 'util/.libs/libucm_la-log.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: invalid -install_name (/usr/local/opt/gettext/lib/libintl.8.dylib) in dependent dylib (/usr/local/lib/libintl.dylib). Dylibs/frameworks which might go in dyld shared cache cannot link with dylibs that won't be in the shared cache
ld: -undefined dynamic_lookup cannot be used to find '_ucs_fatal_error_format' in dylib in dyld shared cache for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libucm.la] Error 1
make[1]: Target `all-am' not remade because of errors.
Making all in cuda
make[1]: Nothing to be done for `all'.
Making all in rocm
make[1]: Nothing to be done for `all'.
make: *** [all-recursive] Error 1
make: Target `all' not remade because of errors.