<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
With `—disable-shared` you didn’t solve the problem, you avoided the problem. From your `./libtool —tag=FC —config`, apparently libtool has no idea about `flang`, so it doesn’t know how to pass on the linker flags. It is strange that they took a blank default
for `wl`.
<div class=""><br class="">
</div>
<div class="">`flang` is quite new, until libtool gets updated, the only solution is to patch libtool. To do it manually, if you open the libtool script (after configure), if you see `wl=‘’`, then it probably should be changed into `wl=‘-Wl,’`.</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
— </div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Hui Zhou</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Nov 8, 2019, at 6:04 AM, Je Iaa via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div style="font-family: Verdana;font-size: 12.0px;" class="">
<div class="">
<div class="">
<div class="">Hi Thomas,</div>
<div class=""> </div>
<div class="">I thought I had "solved" the problem by using <span style="font-size:12.0pt" class="">
<span style="font-family:"Liberation Serif",serif" class=""><span style="" class="">--disable-shared --enable-static</span></span></span>, but then I have other issues after (with hdf5, netcdf, etc.), so back to square one...</div>
<div class=""> </div>
<div class=""> </div>
<div class="">You will find below what the ./libtool --tag=FC --config command gives, is that of any help?</div>
<div class=""> </div>
<div class="">Regards,</div>
<div class=""> </div>
<div class="">J</div>
<div class=""> </div>
<div class="">
<div class="">./libtool --tag=FC --config</div>
<div class=""># Which release of libtool.m4 was used?<br class="">
macro_version=2.4.6<br class="">
macro_revision=2.4.6</div>
<div class=""># Whether or not to build shared libraries.<br class="">
build_libtool_libs=yes</div>
<div class=""># Whether or not to build static libraries.<br class="">
build_old_libs=yes</div>
<div class=""># What type of objects to build.<br class="">
pic_mode=default</div>
<div class=""># Whether or not to optimize for fast installation.<br class="">
fast_install=yes</div>
<div class=""># Shared archive member basename,for filename based shared library versioning on AIX.<br class="">
shared_archive_member_spec=</div>
<div class=""># Shell to use when invoking shell scripts.<br class="">
SHELL="/bin/sh"</div>
<div class=""># An echo program that protects backslashes.<br class="">
ECHO="printf %s\\n"</div>
<div class=""># The PATH separator for the build system.<br class="">
PATH_SEPARATOR=":"</div>
<div class=""># The host system.<br class="">
host_alias=<br class="">
host=x86_64-unknown-linux-gnu<br class="">
host_os=linux-gnu</div>
<div class=""># The build system.<br class="">
build_alias=<br class="">
build=x86_64-unknown-linux-gnu<br class="">
build_os=linux-gnu</div>
<div class=""># A sed program that does not truncate output.<br class="">
SED="/usr/bin/sed"</div>
<div class=""># Sed that helps us avoid accidentally triggering echo(1) options like -n.<br class="">
Xsed="$SED -e 1s/^X//"</div>
<div class=""># A grep program that handles long lines.<br class="">
GREP="/usr/bin/grep"</div>
<div class=""># An ERE matcher.<br class="">
EGREP="/usr/bin/grep -E"</div>
<div class=""># A literal string matcher.<br class="">
FGREP="/usr/bin/grep -F"</div>
<div class=""># A BSD- or MS-compatible name lister.<br class="">
NM="/usr/bin/nm -B"</div>
<div class=""># Whether we need soft or hard links.<br class="">
LN_S="ln -s"</div>
<div class=""># What is the maximum length of a command?<br class="">
max_cmd_len=1572864</div>
<div class=""># Object file suffix (normally "o").<br class="">
objext=o</div>
<div class=""># Executable file suffix (normally "").<br class="">
exeext=</div>
<div class=""># whether the shell understands "unset".<br class="">
lt_unset=unset</div>
<div class=""># turn spaces into newlines.<br class="">
SP2NL="tr \\040 \\012"</div>
<div class=""># turn newlines into spaces.<br class="">
NL2SP="tr \\015\\012 \\040\\040"</div>
<div class=""># convert $build file names to $host format.<br class="">
to_host_file_cmd=func_convert_file_noop</div>
<div class=""># convert $build files to toolchain format.<br class="">
to_tool_file_cmd=func_convert_file_noop</div>
<div class=""># An object symbol dumper.<br class="">
OBJDUMP="objdump"</div>
<div class=""># Method to check whether dependent libraries are shared objects.<br class="">
deplibs_check_method="pass_all"</div>
<div class=""># Command to use when deplibs_check_method = "file_magic".<br class="">
file_magic_cmd="\$MAGIC_CMD"</div>
<div class=""># How to find potential files when deplibs_check_method = "file_magic".<br class="">
file_magic_glob=""</div>
<div class=""># Find potential files using nocaseglob when deplibs_check_method = "file_magic".<br class="">
want_nocaseglob="no"</div>
<div class=""># DLL creation program.<br class="">
DLLTOOL="false"</div>
<div class=""># Command to associate shared and link libraries.<br class="">
sharedlib_from_linklib_cmd="printf %s\\n"</div>
<div class=""># The archiver.<br class="">
AR="ar"</div>
<div class=""># Flags to create an archive.<br class="">
AR_FLAGS="cr"</div>
<div class=""># How to feed a file listing to the archiver.<br class="">
archiver_list_spec="@"</div>
<div class=""># A symbol stripping program.<br class="">
STRIP="strip"</div>
<div class=""># Commands used to install an old-style archive.<br class="">
RANLIB="ranlib"<br class="">
old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$tool_oldlib"<br class="">
old_postuninstall_cmds=""</div>
<div class=""># Whether to use a lock for old archive extraction.<br class="">
lock_old_archive_extraction=no</div>
<div class=""># A C compiler.<br class="">
LTCC="clang"</div>
<div class=""># LTCC compiler flags.<br class="">
LTCFLAGS=" -O2"</div>
<div class=""># Take the output of nm and produce a listing of raw symbols and C names.<br class="">
global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p' | sed '/ __gnu_lto/d'"</div>
<div class=""># Transform the output of nm in a proper C declaration.<br class="">
global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/extern char \\1;/p'"</div>
<div class=""># Transform the output of nm into a list of symbols to manually relocate.<br class="">
global_symbol_to_import=""</div>
<div class=""># Transform the output of nm in a C name address pair.<br class="">
global_symbol_to_c_name_address="sed -n -e 's/^: \\(.*\\) .*\$/ {\"\\1\", (void *) 0},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/ {\"\\1\", (void *) \\&\\1},/p'"</div>
<div class=""># Transform the output of nm in a C name address pair when lib prefix is needed.<br class="">
global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \\(.*\\) .*\$/ {\"\\1\", (void *) 0},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(lib.*\\)\$/ {\"\\1\", (void *) \\&\\1},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/ {\"lib\\1\", (void *) \\&\\1},/p'"</div>
<div class=""># The name lister interface.<br class="">
nm_interface="BSD nm"</div>
<div class=""># Specify filename containing input files for $NM.<br class="">
nm_file_list_spec="@"</div>
<div class=""># The root where to search for dependent libraries,and where our libraries should be installed.<br class="">
lt_sysroot=</div>
<div class=""># Command to truncate a binary pipe.<br class="">
lt_truncate_bin="/usr/bin/dd bs=4096 count=1"</div>
<div class=""># The name of the directory that contains temporary libtool files.<br class="">
objdir=.libs</div>
<div class=""># Used to examine libraries when file_magic_cmd begins with "file".<br class="">
MAGIC_CMD=file</div>
<div class=""># Must we lock files when doing compilation?<br class="">
need_locks="no"</div>
<div class=""># Manifest tool.<br class="">
MANIFEST_TOOL=":"</div>
<div class=""># Tool to manipulate archived DWARF debug symbol files on Mac OS X.<br class="">
DSYMUTIL=""</div>
<div class=""># Tool to change global to local symbols on Mac OS X.<br class="">
NMEDIT=""</div>
<div class=""># Tool to manipulate fat objects and archives on Mac OS X.<br class="">
LIPO=""</div>
<div class=""># ldd/readelf like tool for Mach-O binaries on Mac OS X.<br class="">
OTOOL=""</div>
<div class=""># ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.<br class="">
OTOOL64=""</div>
<div class=""># Old archive suffix (normally "a").<br class="">
libext=a</div>
<div class=""># Shared library suffix (normally ".so").<br class="">
shrext_cmds=".so"</div>
<div class=""># The commands to extract the exported symbol list from a shared archive.<br class="">
extract_expsyms_cmds=""</div>
<div class=""># Variables whose values should be saved in libtool wrapper scripts and<br class="">
# restored at link time.<br class="">
variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH"</div>
<div class=""># Do we need the "lib" prefix for modules?<br class="">
need_lib_prefix=no</div>
<div class=""># Do we need a version for libraries?<br class="">
need_version=no</div>
<div class=""># Library versioning type.<br class="">
version_type=linux</div>
<div class=""># Shared library runtime path variable.<br class="">
runpath_var=LD_RUN_PATH</div>
<div class=""># Shared library path variable.<br class="">
shlibpath_var=LD_LIBRARY_PATH</div>
<div class=""># Is shlibpath searched before the hard-coded library search path?<br class="">
shlibpath_overrides_runpath=no</div>
<div class=""># Format of library name prefix.<br class="">
libname_spec="lib\$name"</div>
<div class=""># List of archive names. First name is the real one, the rest are links.<br class="">
# The last name is the one that the linker finds with -lNAME<br class="">
library_names_spec="\$libname\$release\$shared_ext\$versuffix \$libname\$release\$shared_ext\$major \$libname\$shared_ext"</div>
<div class=""># The coded name of the library, if different from the real name.<br class="">
soname_spec="\$libname\$release\$shared_ext\$major"</div>
<div class=""># Permission mode override for installation of shared libraries.<br class="">
install_override_mode=""</div>
<div class=""># Command to use after installation of a shared archive.<br class="">
postinstall_cmds=""</div>
<div class=""># Command to use after uninstallation of a shared archive.<br class="">
postuninstall_cmds=""</div>
<div class=""># Commands used to finish a libtool library installation in a directory.<br class="">
finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"</div>
<div class=""># As "finish_cmds", except a single script fragment to be evaled but<br class="">
# not shown.<br class="">
finish_eval=""</div>
<div class=""># Whether we should hardcode library paths into libraries.<br class="">
hardcode_into_libs=yes</div>
<div class=""># Compile-time system search path for libraries.<br class="">
sys_lib_search_path_spec="/opt/modules/src/aocc-compiler-2.0.0/lib/clang/8.0.0 /usr/lib/gcc/x86_64-redhat-linux/4.8.5 /usr/lib64 /lib64 /usr/lib /opt/modules/src/aocc-compiler-2.0.0/lib /lib "</div>
<div class=""># Detected run-time system search path for libraries.<br class="">
sys_lib_dlsearch_path_spec="/usr/lib64//bind9-export /usr/lib64/dyninst /usr/lib64/mysql /lib /lib64 /lib/sse2 /lib64/sse2 /lib64/tls "</div>
<div class=""># Explicit LT_SYS_LIBRARY_PATH set during ./configure time.<br class="">
configure_time_lt_sys_library_path=""</div>
<div class=""># Whether dlopen is supported.<br class="">
dlopen_support=unknown</div>
<div class=""># Whether dlopen of programs is supported.<br class="">
dlopen_self=unknown</div>
<div class=""># Whether dlopen of statically linked programs is supported.<br class="">
dlopen_self_static=unknown</div>
<div class=""># Commands to strip libraries.<br class="">
old_striplib="strip --strip-debug"<br class="">
striplib="strip --strip-unneeded"</div>
<div class=""><br class="">
# The linker used to build libraries.<br class="">
LD="/usr/bin/ld -m elf_x86_64"</div>
<div class=""># How to create reloadable object files.<br class="">
reload_flag=" -r"<br class="">
reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"</div>
<div class=""># Commands used to build an old-style archive.<br class="">
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib"</div>
<div class=""># A language specific compiler.<br class="">
CC="clang"</div>
<div class=""># Is the compiler the GNU compiler?<br class="">
with_gcc=yes</div>
<div class=""># Compiler flag to turn off builtin functions.<br class="">
no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"</div>
<div class=""># Additional compiler flags for building library objects.<br class="">
pic_flag=" -fPIC -DPIC"</div>
<div class=""># How to pass a linker flag through the compiler.<br class="">
wl="-Wl,"</div>
<div class=""># Compiler flag to prevent dynamic linking.<br class="">
link_static_flag=""</div>
<div class=""># Does compiler simultaneously support -c and -o options?<br class="">
compiler_c_o="yes"</div>
<div class=""># Whether or not to add -lc for building shared libraries.<br class="">
build_libtool_need_lc=no</div>
<div class=""># Whether or not to disallow shared libs when runtime libs are static.<br class="">
allow_libtool_libs_with_static_runtimes=no</div>
<div class=""># Compiler flag to allow reflexive dlopens.<br class="">
export_dynamic_flag_spec="\$wl--export-dynamic"</div>
<div class=""># Compiler flag to generate shared objects directly from archives.<br class="">
whole_archive_flag_spec="\$wl--whole-archive\$convenience \$wl--no-whole-archive"</div>
<div class=""># Whether the compiler copes with passing no objects directly.<br class="">
compiler_needs_object="no"</div>
<div class=""># Create an old-style archive from a shared archive.<br class="">
old_archive_from_new_cmds=""</div>
<div class=""># Create a temporary old-style archive to link instead of a shared archive.<br class="">
old_archive_from_expsyms_cmds=""</div>
<div class=""># Commands used to build a shared archive.<br class="">
archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname -o \$lib"<br class="">
archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~<br class="">
cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~<br class="">
echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~<br class="">
\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname \$wl-version-script \$wl\$output_objdir/\$libname.ver -o \$lib"</div>
<div class=""># Commands used to build a loadable module if different from building<br class="">
# a shared archive.<br class="">
module_cmds=""<br class="">
module_expsym_cmds=""</div>
<div class=""># Whether we are building with GNU ld or not.<br class="">
with_gnu_ld="yes"</div>
<div class=""># Flag that allows shared libraries with undefined symbols to be built.<br class="">
allow_undefined_flag=""</div>
<div class=""># Flag that enforces no undefined symbols.<br class="">
no_undefined_flag=""</div>
<div class=""># Flag to hardcode $libdir into a binary during linking.<br class="">
# This must work even if $libdir does not exist<br class="">
hardcode_libdir_flag_spec="\$wl-rpath \$wl\$libdir"</div>
<div class=""># Whether we need a single "-rpath" flag with a separated argument.<br class="">
hardcode_libdir_separator=""</div>
<div class=""># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br class="">
# DIR into the resulting binary.<br class="">
hardcode_direct=no</div>
<div class=""># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br class="">
# DIR into the resulting binary and the resulting library dependency is<br class="">
# "absolute",i.e impossible to change by setting $shlibpath_var if the<br class="">
# library is relocated.<br class="">
hardcode_direct_absolute=no</div>
<div class=""># Set to "yes" if using the -LDIR flag during linking hardcodes DIR<br class="">
# into the resulting binary.<br class="">
hardcode_minus_L=no</div>
<div class=""># Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR<br class="">
# into the resulting binary.<br class="">
hardcode_shlibpath_var=unsupported</div>
<div class=""># Set to "yes" if building a shared library automatically hardcodes DIR<br class="">
# into the library and all subsequent libraries and executables linked<br class="">
# against it.<br class="">
hardcode_automatic=no</div>
<div class=""># Set to yes if linker adds runtime paths of dependent libraries<br class="">
# to runtime path list.<br class="">
inherit_rpath=no</div>
<div class=""># Whether libtool must link a program against all its dependency libraries.<br class="">
link_all_deplibs=unknown</div>
<div class=""># Set to "yes" if exported symbols are required.<br class="">
always_export_symbols=no</div>
<div class=""># The commands to list exported symbols.<br class="">
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"</div>
<div class=""># Symbols that should not be listed in the preloaded symbols.<br class="">
exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"</div>
<div class=""># Symbols that must always be exported.<br class="">
include_expsyms=""</div>
<div class=""># Commands necessary for linking programs (against libraries) with templates.<br class="">
prelink_cmds=""</div>
<div class=""># Commands necessary for finishing linking programs.<br class="">
postlink_cmds=""</div>
<div class=""># Specify filename containing input files.<br class="">
file_list_spec=""</div>
<div class=""># How to hardcode a shared library path into an executable.<br class="">
hardcode_action=immediate</div>
<div class=""># The directories searched by this compiler when creating a shared library.<br class="">
compiler_lib_search_dirs=""</div>
<div class=""># Dependencies to place before and after the objects being linked to<br class="">
# create a shared library.<br class="">
predep_objects=""<br class="">
postdep_objects=""<br class="">
predeps=""<br class="">
postdeps=""</div>
<div class=""># The library search path used internally by the compiler when linking<br class="">
# a shared library.<br class="">
compiler_lib_search_path=""</div>
<div class=""># ### BEGIN LIBTOOL TAG CONFIG: FC</div>
<div class=""># The linker used to build libraries.<br class="">
LD="/usr/bin/ld -m elf_x86_64"</div>
<div class=""># How to create reloadable object files.<br class="">
reload_flag=" -r"<br class="">
reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"</div>
<div class=""># Commands used to build an old-style archive.<br class="">
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib"</div>
<div class=""># A language specific compiler.<br class="">
CC="flang"</div>
<div class=""># Is the compiler the GNU compiler?<br class="">
with_gcc=no</div>
<div class=""># Compiler flag to turn off builtin functions.<br class="">
no_builtin_flag=""</div>
<div class=""># Additional compiler flags for building library objects.<br class="">
pic_flag=""</div>
<div class=""># How to pass a linker flag through the compiler.<br class="">
wl=""</div>
<div class=""># Compiler flag to prevent dynamic linking.<br class="">
link_static_flag=""</div>
<div class=""># Does compiler simultaneously support -c and -o options?<br class="">
compiler_c_o="yes"</div>
<div class=""># Whether or not to add -lc for building shared libraries.<br class="">
build_libtool_need_lc=no</div>
<div class=""># Whether or not to disallow shared libs when runtime libs are static.<br class="">
allow_libtool_libs_with_static_runtimes=no</div>
<div class=""># Compiler flag to allow reflexive dlopens.<br class="">
export_dynamic_flag_spec="\$wl--export-dynamic"</div>
<div class=""># Compiler flag to generate shared objects directly from archives.<br class="">
whole_archive_flag_spec="\$wl--whole-archive\$convenience \$wl--no-whole-archive"</div>
<div class=""># Whether the compiler copes with passing no objects directly.<br class="">
compiler_needs_object="no"</div>
<div class=""># Create an old-style archive from a shared archive.<br class="">
old_archive_from_new_cmds=""</div>
<div class=""># Create a temporary old-style archive to link instead of a shared archive.<br class="">
old_archive_from_expsyms_cmds=""</div>
<div class=""># Commands used to build a shared archive.<br class="">
archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname -o \$lib"<br class="">
archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~<br class="">
cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~<br class="">
echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~<br class="">
\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname \$wl-version-script \$wl\$output_objdir/\$libname.ver -o \$lib"</div>
<div class=""># Commands used to build a loadable module if different from building<br class="">
# a shared archive.<br class="">
module_cmds=""<br class="">
module_expsym_cmds=""</div>
<div class=""># Whether we are building with GNU ld or not.<br class="">
with_gnu_ld="yes"</div>
<div class=""># Flag that allows shared libraries with undefined symbols to be built.<br class="">
allow_undefined_flag=""</div>
<div class=""># Flag that enforces no undefined symbols.<br class="">
no_undefined_flag=""</div>
<div class=""># Flag to hardcode $libdir into a binary during linking.<br class="">
# This must work even if $libdir does not exist<br class="">
hardcode_libdir_flag_spec="\$wl-rpath \$wl\$libdir"</div>
<div class=""># Whether we need a single "-rpath" flag with a separated argument.<br class="">
hardcode_libdir_separator=""</div>
<div class=""># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br class="">
# DIR into the resulting binary.<br class="">
hardcode_direct=no</div>
<div class=""># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br class="">
# DIR into the resulting binary and the resulting library dependency is<br class="">
# "absolute",i.e impossible to change by setting $shlibpath_var if the<br class="">
# library is relocated.<br class="">
hardcode_direct_absolute=no</div>
<div class=""># Set to "yes" if using the -LDIR flag during linking hardcodes DIR<br class="">
# into the resulting binary.<br class="">
hardcode_minus_L=no</div>
<div class=""># Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR<br class="">
# into the resulting binary.<br class="">
hardcode_shlibpath_var=unsupported</div>
<div class=""># Set to "yes" if building a shared library automatically hardcodes DIR<br class="">
# into the library and all subsequent libraries and executables linked<br class="">
# against it.<br class="">
hardcode_automatic=no</div>
<div class=""># Set to yes if linker adds runtime paths of dependent libraries<br class="">
# to runtime path list.<br class="">
inherit_rpath=no</div>
<div class=""># Whether libtool must link a program against all its dependency libraries.<br class="">
link_all_deplibs=unknown</div>
<div class=""># Set to "yes" if exported symbols are required.<br class="">
always_export_symbols=no</div>
<div class=""># The commands to list exported symbols.<br class="">
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"</div>
<div class=""># Symbols that should not be listed in the preloaded symbols.<br class="">
exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"</div>
<div class=""># Symbols that must always be exported.<br class="">
include_expsyms=""</div>
<div class=""># Commands necessary for linking programs (against libraries) with templates.<br class="">
prelink_cmds=""</div>
<div class=""># Commands necessary for finishing linking programs.<br class="">
postlink_cmds=""</div>
<div class=""># Specify filename containing input files.<br class="">
file_list_spec=""</div>
<div class=""># How to hardcode a shared library path into an executable.<br class="">
hardcode_action=immediate</div>
<div class=""># The directories searched by this compiler when creating a shared library.<br class="">
compiler_lib_search_dirs="/usr/lib/gcc/x86_64-redhat-linux/4.8.5 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 /lib/../lib64 /usr/lib/../lib64 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. /opt/modules/src/aocc-compiler-2.0.0/bin/../lib /lib /usr/lib"</div>
<div class=""># Dependencies to place before and after the objects being linked to<br class="">
# create a shared library.<br class="">
predep_objects="/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o"<br class="">
postdep_objects="/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o"<br class="">
predeps=""<br class="">
postdeps="-lflangmain -L/usr/lib -L/usr/lib64 -L/opt/modules/src/aocc-compiler-2.0.0/lib -L/opt/modules/src/aocc-compiler-2.0.0/lib32 -L. -lpgmath -lflang -lflangrti -lompstub -lm -lrt -lpthread -lgcc_s -lgcc -lc -lgcc_s -lgcc"</div>
<div class=""># The library search path used internally by the compiler when linking<br class="">
# a shared library.<br class="">
compiler_lib_search_path="-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -L/opt/modules/src/aocc-compiler-2.0.0/bin/../lib
-L/lib -L/usr/lib"</div>
<div class=""># ### END LIBTOOL TAG CONFIG: FC<br class="">
</div>
<div class=""> </div>
</div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="margin:0 0 10px 0;" class=""><b class="">Sent:</b> Friday, November 08, 2019 at 12:02 PM<br class="">
<b class="">From:</b> "Thomas Jahns via discuss" <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>><br class="">
<b class="">To:</b> <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
<b class="">Cc:</b> "Thomas Jahns" <<a href="mailto:jahns@dkrz.de" class="">jahns@dkrz.de</a>><br class="">
<b class="">Subject:</b> Re: [mpich-discuss] Compilation with AOCC - clang-8 errors unsupported options '-soname', etc.</div>
<div name="quoted-content" class="">On 11/7/19 6:37 PM, Zhou, Hui via discuss wrote:<br class="">
> The attached log does not show libtool options. Is it possible to<br class="">
> reproduce and obtain the output of `./libtool —config`?<br class="">
<br class="">
I think<br class="">
<br class="">
./libtool --tag=FC --config<br class="">
<br class="">
might be more interesting?<br class="">
<br class="">
Thomas<br class="">
<br class="">
<br class="">
<br class="">
><br class="">
> —<br class="">
> Hui Zhou<br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
>> On Nov 7, 2019, at 11:22 AM, Je Iaa <<a href="mailto:jeiaa@gmx.com" class="">jeiaa@gmx.com</a><br class="">
>> <<a href="mailto:jeiaa@gmx.com" class="">mailto:jeiaa@gmx.com</a>>> wrote:<br class="">
>><br class="">
>> Hi Hui,<br class="">
>> Thank you for looking into this.<br class="">
>> You will find the log attached.<br class="">
>> Regards,<br class="">
>> J<br class="">
>> *Sent:* Thursday, November 07, 2019 at 5:03 PM<br class="">
>> *From:* "Zhou, Hui" <<a href="mailto:zhouh@anl.gov" class="">zhouh@anl.gov</a> <<a href="mailto:zhouh@anl.gov" class="">mailto:zhouh@anl.gov</a>>><br class="">
>> *To:* "<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a> <<a href="mailto:discuss@mpich.org" class="">mailto:discuss@mpich.org</a>>"<br class="">
>> <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a> <<a href="mailto:discuss@mpich.org" class="">mailto:discuss@mpich.org</a>>><br class="">
>> *Cc:* "Je Iaa" <<a href="mailto:jeiaa@gmx.com" class="">jeiaa@gmx.com</a> <<a href="mailto:jeiaa@gmx.com" class="">mailto:jeiaa@gmx.com</a>>><br class="">
>> *Subject:* Re: [mpich-discuss] Compilation with AOCC - clang-8 errors<br class="">
>> unsupported options '-soname', etc.<br class="">
>> Those options are libtool options that supposed to be passed down to<br class="">
>> linker. It looks like the libtool is misconfigured. Could you do `make<br class="">
>> V=1` and attach a more verbose log?<br class="">
>> —<br class="">
>> Hui Zhou<br class="">
>><br class="">
>> On Nov 7, 2019, at 9:53 AM, Je Iaa via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
>> <<a href="mailto:discuss@mpich.org" class="">mailto:discuss@mpich.org</a>>> wrote:<br class="">
>> Hi,<br class="">
>> I am trying without success to install mpich3.3.1 on virtual<br class="">
>> machine with AMD EPYC Processors and the AOCC2.0.0 compiler.<br class="">
>> This is what I did and the error I get:<br class="">
>> export PREFIX=/opt/modules/packages<br class="">
>> export MPICH_HOME=$PREFIX/mpich/3.3.1-aocc2.0.0<br class="">
>> export CC=clang<br class="">
>> export CXX=clang++<br class="">
>> export FC=flang<br class="">
>> export F77=flang<br class="">
>><br class="">
>> mkdir -p $MPICH_HOME<br class="">
>> tar xvf mpich-3.3.1.tar.gz<br class="">
>> cd mpich-3.3.1<br class="">
>> ./configure --prefix=$MPICH_HOME<br class="">
>><br class="">
>> make<br class="">
>> Failed:<br class="">
>> clang-8: error: unsupported option '--whole-archive'<br class="">
>> clang-8: error: unsupported option '--no-whole-archive'<br class="">
>> clang-8: error: unknown argument: '-soname'<br class="">
>> clang-8: error: no such file or directory: 'libmpi.so.12'<br class="">
>> make[2]: *** [lib/<a href="http://libmpi.la" class="">libmpi.la</a> <<a href="http://libmpi.la/" target="_blank" class="">http://libmpi.la/</a>>] Error 1<br class="">
>> make[2]: Leaving directory `/opt/modules/src/mpich-3.3.1'<br class="">
>> make[1]: *** [all-recursive] Error 1<br class="">
>> make[1]: Leaving directory `/opt/modules/src/mpich-3.3.1'<br class="">
>> make: *** [all] Error 2<br class="">
>> Any idea how to sort this out?<br class="">
>> Regards,<br class="">
>> J<br class="">
>> _______________________________________________<br class="">
>> discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a> <<a href="mailto:discuss@mpich.org" class="">mailto:discuss@mpich.org</a>><br class="">
>> To manage subscription options or unsubscribe:<br class="">
>> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">
https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
>><br class="">
>> <m.txt><br class="">
><br class="">
><br class="">
> _______________________________________________<br class="">
> discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
> To manage subscription options or unsubscribe:<br class="">
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">
https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
><br class="">
<br class="">
<br class="">
--<br class="">
Thomas Jahns<br class="">
HPC-Gruppe<br class="">
Abteilung Anwendungssoftware<br class="">
<br class="">
Deutsches Klimarechenzentrum GmbH<br class="">
Bundesstraße 45a • D-20146 Hamburg • Germany<br class="">
<br class="">
Phone: +49 40 460094-151<br class="">
Fax: +49 40 460094-270<br class="">
Email: Thomas Jahns <<a href="mailto:jahns@dkrz.de" class="">jahns@dkrz.de</a>><br class="">
URL: <a href="http://www.dkrz.de/" target="_blank" class="">www.dkrz.de</a><br class="">
<br class="">
Geschäftsführer: Prof. Dr. Thomas Ludwig<br class="">
Sitz der Gesellschaft: Hamburg<br class="">
Amtsgericht Hamburg HRB 39784<br class="">
<br class="">
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">https://lists.mpich.org/mailman/listinfo/discuss</a></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>