<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi Hui,</div>

<div> </div>

<div>I edited libtool and replaced a couple of wl="" by wl="-Wl," but there were still errors and I had to add -fPIC.</div>

<div> </div>

<div>Now that seems to work, I will try to continue with hdf5 and netcdf.</div>

<div> </div>

<div>Thank you again for your help,</div>

<div> </div>

<div>J</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;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Friday, November 08, 2019 at 4:24 PM<br/>
<b>From:</b> "Zhou, Hui" <zhouh@anl.gov><br/>
<b>To:</b> "discuss@mpich.org" <discuss@mpich.org><br/>
<b>Cc:</b> "Je Iaa" <jeiaa@gmx.com><br/>
<b>Subject:</b> Re: [mpich-discuss] Compilation with AOCC - clang-8 errors unsupported options '-soname', etc.</div>

<div name="quoted-content">
<div>
<div> </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> </div>

<div>`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> 
<div>
<div style="color: rgb(0,0,0);letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">
<div style="color: rgb(0,0,0);letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">
<div style="color: rgb(0,0,0);letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">
<div style="color: rgb(0,0,0);letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">
<div>
<div style="color: rgb(0,0,0);font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: normal;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">— </div>

<div style="color: rgb(0,0,0);font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: normal;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">Hui Zhou</div>

<div style="color: rgb(0,0,0);font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: normal;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"> </div>

<div style="color: rgb(0,0,0);font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: normal;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"> </div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline"/>
 </div>

<div> 
<blockquote>
<div>On Nov 8, 2019, at 6:04 AM, Je Iaa via discuss <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a>> wrote:</div>
 

<div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div> 
<div>
<div>Hi Thomas,</div>

<div> </div>

<div>I thought I had "solved" the problem by using <span style="font-size: 12.0pt;"> <span style="font-family: "Liberation Serif" , serif;"><span>--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> </div>

<div> </div>

<div>You will find below what the ./libtool --tag=FC --config command gives, is that of any help?</div>

<div> </div>

<div>Regards,</div>

<div> </div>

<div>J</div>

<div> </div>

<div>
<div>./libtool --tag=FC --config</div>

<div># Which release of libtool.m4 was used?<br/>
macro_version=2.4.6<br/>
macro_revision=2.4.6</div>

<div># Whether or not to build shared libraries.<br/>
build_libtool_libs=yes</div>

<div># Whether or not to build static libraries.<br/>
build_old_libs=yes</div>

<div># What type of objects to build.<br/>
pic_mode=default</div>

<div># Whether or not to optimize for fast installation.<br/>
fast_install=yes</div>

<div># Shared archive member basename,for filename based shared library versioning on AIX.<br/>
shared_archive_member_spec=</div>

<div># Shell to use when invoking shell scripts.<br/>
SHELL="/bin/sh"</div>

<div># An echo program that protects backslashes.<br/>
ECHO="printf %s\\n"</div>

<div># The PATH separator for the build system.<br/>
PATH_SEPARATOR=":"</div>

<div># The host system.<br/>
host_alias=<br/>
host=x86_64-unknown-linux-gnu<br/>
host_os=linux-gnu</div>

<div># The build system.<br/>
build_alias=<br/>
build=x86_64-unknown-linux-gnu<br/>
build_os=linux-gnu</div>

<div># A sed program that does not truncate output.<br/>
SED="/usr/bin/sed"</div>

<div># Sed that helps us avoid accidentally triggering echo(1) options like -n.<br/>
Xsed="$SED -e 1s/^X//"</div>

<div># A grep program that handles long lines.<br/>
GREP="/usr/bin/grep"</div>

<div># An ERE matcher.<br/>
EGREP="/usr/bin/grep -E"</div>

<div># A literal string matcher.<br/>
FGREP="/usr/bin/grep -F"</div>

<div># A BSD- or MS-compatible name lister.<br/>
NM="/usr/bin/nm -B"</div>

<div># Whether we need soft or hard links.<br/>
LN_S="ln -s"</div>

<div># What is the maximum length of a command?<br/>
max_cmd_len=1572864</div>

<div># Object file suffix (normally "o").<br/>
objext=o</div>

<div># Executable file suffix (normally "").<br/>
exeext=</div>

<div># whether the shell understands "unset".<br/>
lt_unset=unset</div>

<div># turn spaces into newlines.<br/>
SP2NL="tr \\040 \\012"</div>

<div># turn newlines into spaces.<br/>
NL2SP="tr \\015\\012 \\040\\040"</div>

<div># convert $build file names to $host format.<br/>
to_host_file_cmd=func_convert_file_noop</div>

<div># convert $build files to toolchain format.<br/>
to_tool_file_cmd=func_convert_file_noop</div>

<div># An object symbol dumper.<br/>
OBJDUMP="objdump"</div>

<div># Method to check whether dependent libraries are shared objects.<br/>
deplibs_check_method="pass_all"</div>

<div># Command to use when deplibs_check_method = "file_magic".<br/>
file_magic_cmd="\$MAGIC_CMD"</div>

<div># How to find potential files when deplibs_check_method = "file_magic".<br/>
file_magic_glob=""</div>

<div># Find potential files using nocaseglob when deplibs_check_method = "file_magic".<br/>
want_nocaseglob="no"</div>

<div># DLL creation program.<br/>
DLLTOOL="false"</div>

<div># Command to associate shared and link libraries.<br/>
sharedlib_from_linklib_cmd="printf %s\\n"</div>

<div># The archiver.<br/>
AR="ar"</div>

<div># Flags to create an archive.<br/>
AR_FLAGS="cr"</div>

<div># How to feed a file listing to the archiver.<br/>
archiver_list_spec="@"</div>

<div># A symbol stripping program.<br/>
STRIP="strip"</div>

<div># Commands used to install an old-style archive.<br/>
RANLIB="ranlib"<br/>
old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$tool_oldlib"<br/>
old_postuninstall_cmds=""</div>

<div># Whether to use a lock for old archive extraction.<br/>
lock_old_archive_extraction=no</div>

<div># A C compiler.<br/>
LTCC="clang"</div>

<div># LTCC compiler flags.<br/>
LTCFLAGS="   -O2"</div>

<div># Take the output of nm and produce a listing of raw symbols and C names.<br/>
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># Transform the output of nm in a proper C declaration.<br/>
global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/extern char \\1;/p'"</div>

<div># Transform the output of nm into a list of symbols to manually relocate.<br/>
global_symbol_to_import=""</div>

<div># Transform the output of nm in a C name address pair.<br/>
global_symbol_to_c_name_address="sed -n -e 's/^: \\(.*\\) .*\$/  {\"\\1\", (void *) 0},/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \\(.*\\)\$/  {\"\\1\", (void *) \\&\\1},/p'"</div>

<div># Transform the output of nm in a C name address pair when lib prefix is needed.<br/>
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># The name lister interface.<br/>
nm_interface="BSD nm"</div>

<div># Specify filename containing input files for $NM.<br/>
nm_file_list_spec="@"</div>

<div># The root where to search for dependent libraries,and where our libraries should be installed.<br/>
lt_sysroot=</div>

<div># Command to truncate a binary pipe.<br/>
lt_truncate_bin="/usr/bin/dd bs=4096 count=1"</div>

<div># The name of the directory that contains temporary libtool files.<br/>
objdir=.libs</div>

<div># Used to examine libraries when file_magic_cmd begins with "file".<br/>
MAGIC_CMD=file</div>

<div># Must we lock files when doing compilation?<br/>
need_locks="no"</div>

<div># Manifest tool.<br/>
MANIFEST_TOOL=":"</div>

<div># Tool to manipulate archived DWARF debug symbol files on Mac OS X.<br/>
DSYMUTIL=""</div>

<div># Tool to change global to local symbols on Mac OS X.<br/>
NMEDIT=""</div>

<div># Tool to manipulate fat objects and archives on Mac OS X.<br/>
LIPO=""</div>

<div># ldd/readelf like tool for Mach-O binaries on Mac OS X.<br/>
OTOOL=""</div>

<div># ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.<br/>
OTOOL64=""</div>

<div># Old archive suffix (normally "a").<br/>
libext=a</div>

<div># Shared library suffix (normally ".so").<br/>
shrext_cmds=".so"</div>

<div># The commands to extract the exported symbol list from a shared archive.<br/>
extract_expsyms_cmds=""</div>

<div># Variables whose values should be saved in libtool wrapper scripts and<br/>
# restored at link time.<br/>
variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH"</div>

<div># Do we need the "lib" prefix for modules?<br/>
need_lib_prefix=no</div>

<div># Do we need a version for libraries?<br/>
need_version=no</div>

<div># Library versioning type.<br/>
version_type=linux</div>

<div># Shared library runtime path variable.<br/>
runpath_var=LD_RUN_PATH</div>

<div># Shared library path variable.<br/>
shlibpath_var=LD_LIBRARY_PATH</div>

<div># Is shlibpath searched before the hard-coded library search path?<br/>
shlibpath_overrides_runpath=no</div>

<div># Format of library name prefix.<br/>
libname_spec="lib\$name"</div>

<div># List of archive names.  First name is the real one, the rest are links.<br/>
# The last name is the one that the linker finds with -lNAME<br/>
library_names_spec="\$libname\$release\$shared_ext\$versuffix \$libname\$release\$shared_ext\$major \$libname\$shared_ext"</div>

<div># The coded name of the library, if different from the real name.<br/>
soname_spec="\$libname\$release\$shared_ext\$major"</div>

<div># Permission mode override for installation of shared libraries.<br/>
install_override_mode=""</div>

<div># Command to use after installation of a shared archive.<br/>
postinstall_cmds=""</div>

<div># Command to use after uninstallation of a shared archive.<br/>
postuninstall_cmds=""</div>

<div># Commands used to finish a libtool library installation in a directory.<br/>
finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"</div>

<div># As "finish_cmds", except a single script fragment to be evaled but<br/>
# not shown.<br/>
finish_eval=""</div>

<div># Whether we should hardcode library paths into libraries.<br/>
hardcode_into_libs=yes</div>

<div># Compile-time system search path for libraries.<br/>
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># Detected run-time system search path for libraries.<br/>
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># Explicit LT_SYS_LIBRARY_PATH set during ./configure time.<br/>
configure_time_lt_sys_library_path=""</div>

<div># Whether dlopen is supported.<br/>
dlopen_support=unknown</div>

<div># Whether dlopen of programs is supported.<br/>
dlopen_self=unknown</div>

<div># Whether dlopen of statically linked programs is supported.<br/>
dlopen_self_static=unknown</div>

<div># Commands to strip libraries.<br/>
old_striplib="strip --strip-debug"<br/>
striplib="strip --strip-unneeded"</div>

<div><br/>
# The linker used to build libraries.<br/>
LD="/usr/bin/ld -m elf_x86_64"</div>

<div># How to create reloadable object files.<br/>
reload_flag=" -r"<br/>
reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"</div>

<div># Commands used to build an old-style archive.<br/>
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib"</div>

<div># A language specific compiler.<br/>
CC="clang"</div>

<div># Is the compiler the GNU compiler?<br/>
with_gcc=yes</div>

<div># Compiler flag to turn off builtin functions.<br/>
no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"</div>

<div># Additional compiler flags for building library objects.<br/>
pic_flag=" -fPIC -DPIC"</div>

<div># How to pass a linker flag through the compiler.<br/>
wl="-Wl,"</div>

<div># Compiler flag to prevent dynamic linking.<br/>
link_static_flag=""</div>

<div># Does compiler simultaneously support -c and -o options?<br/>
compiler_c_o="yes"</div>

<div># Whether or not to add -lc for building shared libraries.<br/>
build_libtool_need_lc=no</div>

<div># Whether or not to disallow shared libs when runtime libs are static.<br/>
allow_libtool_libs_with_static_runtimes=no</div>

<div># Compiler flag to allow reflexive dlopens.<br/>
export_dynamic_flag_spec="\$wl--export-dynamic"</div>

<div># Compiler flag to generate shared objects directly from archives.<br/>
whole_archive_flag_spec="\$wl--whole-archive\$convenience \$wl--no-whole-archive"</div>

<div># Whether the compiler copes with passing no objects directly.<br/>
compiler_needs_object="no"</div>

<div># Create an old-style archive from a shared archive.<br/>
old_archive_from_new_cmds=""</div>

<div># Create a temporary old-style archive to link instead of a shared archive.<br/>
old_archive_from_expsyms_cmds=""</div>

<div># Commands used to build a shared archive.<br/>
archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname -o \$lib"<br/>
archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~<br/>
            cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~<br/>
            echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~<br/>
            \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname \$wl-version-script \$wl\$output_objdir/\$libname.ver -o \$lib"</div>

<div># Commands used to build a loadable module if different from building<br/>
# a shared archive.<br/>
module_cmds=""<br/>
module_expsym_cmds=""</div>

<div># Whether we are building with GNU ld or not.<br/>
with_gnu_ld="yes"</div>

<div># Flag that allows shared libraries with undefined symbols to be built.<br/>
allow_undefined_flag=""</div>

<div># Flag that enforces no undefined symbols.<br/>
no_undefined_flag=""</div>

<div># Flag to hardcode $libdir into a binary during linking.<br/>
# This must work even if $libdir does not exist<br/>
hardcode_libdir_flag_spec="\$wl-rpath \$wl\$libdir"</div>

<div># Whether we need a single "-rpath" flag with a separated argument.<br/>
hardcode_libdir_separator=""</div>

<div># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br/>
# DIR into the resulting binary.<br/>
hardcode_direct=no</div>

<div># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br/>
# DIR into the resulting binary and the resulting library dependency is<br/>
# "absolute",i.e impossible to change by setting $shlibpath_var if the<br/>
# library is relocated.<br/>
hardcode_direct_absolute=no</div>

<div># Set to "yes" if using the -LDIR flag during linking hardcodes DIR<br/>
# into the resulting binary.<br/>
hardcode_minus_L=no</div>

<div># Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR<br/>
# into the resulting binary.<br/>
hardcode_shlibpath_var=unsupported</div>

<div># Set to "yes" if building a shared library automatically hardcodes DIR<br/>
# into the library and all subsequent libraries and executables linked<br/>
# against it.<br/>
hardcode_automatic=no</div>

<div># Set to yes if linker adds runtime paths of dependent libraries<br/>
# to runtime path list.<br/>
inherit_rpath=no</div>

<div># Whether libtool must link a program against all its dependency libraries.<br/>
link_all_deplibs=unknown</div>

<div># Set to "yes" if exported symbols are required.<br/>
always_export_symbols=no</div>

<div># The commands to list exported symbols.<br/>
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"</div>

<div># Symbols that should not be listed in the preloaded symbols.<br/>
exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"</div>

<div># Symbols that must always be exported.<br/>
include_expsyms=""</div>

<div># Commands necessary for linking programs (against libraries) with templates.<br/>
prelink_cmds=""</div>

<div># Commands necessary for finishing linking programs.<br/>
postlink_cmds=""</div>

<div># Specify filename containing input files.<br/>
file_list_spec=""</div>

<div># How to hardcode a shared library path into an executable.<br/>
hardcode_action=immediate</div>

<div># The directories searched by this compiler when creating a shared library.<br/>
compiler_lib_search_dirs=""</div>

<div># Dependencies to place before and after the objects being linked to<br/>
# create a shared library.<br/>
predep_objects=""<br/>
postdep_objects=""<br/>
predeps=""<br/>
postdeps=""</div>

<div># The library search path used internally by the compiler when linking<br/>
# a shared library.<br/>
compiler_lib_search_path=""</div>

<div># ### BEGIN LIBTOOL TAG CONFIG: FC</div>

<div># The linker used to build libraries.<br/>
LD="/usr/bin/ld -m elf_x86_64"</div>

<div># How to create reloadable object files.<br/>
reload_flag=" -r"<br/>
reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"</div>

<div># Commands used to build an old-style archive.<br/>
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib"</div>

<div># A language specific compiler.<br/>
CC="flang"</div>

<div># Is the compiler the GNU compiler?<br/>
with_gcc=no</div>

<div># Compiler flag to turn off builtin functions.<br/>
no_builtin_flag=""</div>

<div># Additional compiler flags for building library objects.<br/>
pic_flag=""</div>

<div># How to pass a linker flag through the compiler.<br/>
wl=""</div>

<div># Compiler flag to prevent dynamic linking.<br/>
link_static_flag=""</div>

<div># Does compiler simultaneously support -c and -o options?<br/>
compiler_c_o="yes"</div>

<div># Whether or not to add -lc for building shared libraries.<br/>
build_libtool_need_lc=no</div>

<div># Whether or not to disallow shared libs when runtime libs are static.<br/>
allow_libtool_libs_with_static_runtimes=no</div>

<div># Compiler flag to allow reflexive dlopens.<br/>
export_dynamic_flag_spec="\$wl--export-dynamic"</div>

<div># Compiler flag to generate shared objects directly from archives.<br/>
whole_archive_flag_spec="\$wl--whole-archive\$convenience \$wl--no-whole-archive"</div>

<div># Whether the compiler copes with passing no objects directly.<br/>
compiler_needs_object="no"</div>

<div># Create an old-style archive from a shared archive.<br/>
old_archive_from_new_cmds=""</div>

<div># Create a temporary old-style archive to link instead of a shared archive.<br/>
old_archive_from_expsyms_cmds=""</div>

<div># Commands used to build a shared archive.<br/>
archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname -o \$lib"<br/>
archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~<br/>
            cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~<br/>
            echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~<br/>
            \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \$wl-soname \$wl\$soname \$wl-version-script \$wl\$output_objdir/\$libname.ver -o \$lib"</div>

<div># Commands used to build a loadable module if different from building<br/>
# a shared archive.<br/>
module_cmds=""<br/>
module_expsym_cmds=""</div>

<div># Whether we are building with GNU ld or not.<br/>
with_gnu_ld="yes"</div>

<div># Flag that allows shared libraries with undefined symbols to be built.<br/>
allow_undefined_flag=""</div>

<div># Flag that enforces no undefined symbols.<br/>
no_undefined_flag=""</div>

<div># Flag to hardcode $libdir into a binary during linking.<br/>
# This must work even if $libdir does not exist<br/>
hardcode_libdir_flag_spec="\$wl-rpath \$wl\$libdir"</div>

<div># Whether we need a single "-rpath" flag with a separated argument.<br/>
hardcode_libdir_separator=""</div>

<div># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br/>
# DIR into the resulting binary.<br/>
hardcode_direct=no</div>

<div># Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes<br/>
# DIR into the resulting binary and the resulting library dependency is<br/>
# "absolute",i.e impossible to change by setting $shlibpath_var if the<br/>
# library is relocated.<br/>
hardcode_direct_absolute=no</div>

<div># Set to "yes" if using the -LDIR flag during linking hardcodes DIR<br/>
# into the resulting binary.<br/>
hardcode_minus_L=no</div>

<div># Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR<br/>
# into the resulting binary.<br/>
hardcode_shlibpath_var=unsupported</div>

<div># Set to "yes" if building a shared library automatically hardcodes DIR<br/>
# into the library and all subsequent libraries and executables linked<br/>
# against it.<br/>
hardcode_automatic=no</div>

<div># Set to yes if linker adds runtime paths of dependent libraries<br/>
# to runtime path list.<br/>
inherit_rpath=no</div>

<div># Whether libtool must link a program against all its dependency libraries.<br/>
link_all_deplibs=unknown</div>

<div># Set to "yes" if exported symbols are required.<br/>
always_export_symbols=no</div>

<div># The commands to list exported symbols.<br/>
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"</div>

<div># Symbols that should not be listed in the preloaded symbols.<br/>
exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"</div>

<div># Symbols that must always be exported.<br/>
include_expsyms=""</div>

<div># Commands necessary for linking programs (against libraries) with templates.<br/>
prelink_cmds=""</div>

<div># Commands necessary for finishing linking programs.<br/>
postlink_cmds=""</div>

<div># Specify filename containing input files.<br/>
file_list_spec=""</div>

<div># How to hardcode a shared library path into an executable.<br/>
hardcode_action=immediate</div>

<div># The directories searched by this compiler when creating a shared library.<br/>
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># Dependencies to place before and after the objects being linked to<br/>
# create a shared library.<br/>
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/>
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/>
predeps=""<br/>
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># The library search path used internally by the compiler when linking<br/>
# a shared library.<br/>
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># ### END LIBTOOL TAG CONFIG: FC<br/>
 </div>

<div> </div>
</div>

<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Sent:</b> Friday, November 08, 2019 at 12:02 PM<br/>
<b>From:</b> "Thomas Jahns via discuss" <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a>><br/>
<b>To:</b> <a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a><br/>
<b>Cc:</b> "Thomas Jahns" <<a href="mailto:jahns@dkrz.de" onclick="parent.window.location.href='mailto:jahns@dkrz.de'; return false;" target="_blank">jahns@dkrz.de</a>><br/>
<b>Subject:</b> Re: [mpich-discuss] Compilation with AOCC - clang-8 errors unsupported options '-soname', etc.</div>

<div>On 11/7/19 6:37 PM, Zhou, Hui via discuss wrote:<br/>
> The attached log does not show libtool options. Is it possible to<br/>
> reproduce and obtain the output of `./libtool —config`?<br/>
<br/>
I think<br/>
<br/>
./libtool --tag=FC --config<br/>
<br/>
might be more interesting?<br/>
<br/>
Thomas<br/>
<br/>
<br/>
<br/>
><br/>
> —<br/>
> Hui Zhou<br/>
><br/>
><br/>
><br/>
><br/>
><br/>
><br/>
><br/>
><br/>
><br/>
>> On Nov 7, 2019, at 11:22 AM, Je Iaa <<a href="mailto:jeiaa@gmx.com" onclick="parent.window.location.href='mailto:jeiaa@gmx.com'; return false;" target="_blank">jeiaa@gmx.com</a><br/>
>> <<a href="mailto:jeiaa@gmx.com" onclick="parent.window.location.href='mailto:jeiaa@gmx.com'; return false;" target="_blank">mailto:jeiaa@gmx.com</a>>> wrote:<br/>
>><br/>
>> Hi Hui,<br/>
>> Thank you for looking into this.<br/>
>> You will find the log attached.<br/>
>> Regards,<br/>
>> J<br/>
>> *Sent:* Thursday, November 07, 2019 at 5:03 PM<br/>
>> *From:* "Zhou, Hui" <<a href="mailto:zhouh@anl.gov" onclick="parent.window.location.href='mailto:zhouh@anl.gov'; return false;" target="_blank">zhouh@anl.gov</a> <<a href="mailto:zhouh@anl.gov" onclick="parent.window.location.href='mailto:zhouh@anl.gov'; return false;" target="_blank">mailto:zhouh@anl.gov</a>>><br/>
>> *To:* "<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a> <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">mailto:discuss@mpich.org</a>>"<br/>
>> <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a> <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">mailto:discuss@mpich.org</a>>><br/>
>> *Cc:* "Je Iaa" <<a href="mailto:jeiaa@gmx.com" onclick="parent.window.location.href='mailto:jeiaa@gmx.com'; return false;" target="_blank">jeiaa@gmx.com</a> <<a href="mailto:jeiaa@gmx.com" onclick="parent.window.location.href='mailto:jeiaa@gmx.com'; return false;" target="_blank">mailto:jeiaa@gmx.com</a>>><br/>
>> *Subject:* Re: [mpich-discuss] Compilation with AOCC - clang-8 errors<br/>
>> unsupported options '-soname', etc.<br/>
>> Those options are libtool options that supposed to be passed down to<br/>
>> linker. It looks like the libtool is misconfigured. Could you do `make<br/>
>> V=1` and attach a more verbose log?<br/>
>> —<br/>
>> Hui Zhou<br/>
>><br/>
>> On Nov 7, 2019, at 9:53 AM, Je Iaa via discuss <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a><br/>
>> <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">mailto:discuss@mpich.org</a>>> wrote:<br/>
>> Hi,<br/>
>> I am trying without success to install mpich3.3.1 on virtual<br/>
>> machine with AMD EPYC Processors and the AOCC2.0.0 compiler.<br/>
>> This is what I did and the error I get:<br/>
>> export PREFIX=/opt/modules/packages<br/>
>> export MPICH_HOME=$PREFIX/mpich/3.3.1-aocc2.0.0<br/>
>> export CC=clang<br/>
>> export CXX=clang++<br/>
>> export FC=flang<br/>
>> export F77=flang<br/>
>><br/>
>> mkdir -p $MPICH_HOME<br/>
>> tar xvf mpich-3.3.1.tar.gz<br/>
>> cd mpich-3.3.1<br/>
>> ./configure --prefix=$MPICH_HOME<br/>
>><br/>
>> make<br/>
>> Failed:<br/>
>> clang-8: error: unsupported option '--whole-archive'<br/>
>> clang-8: error: unsupported option '--no-whole-archive'<br/>
>> clang-8: error: unknown argument: '-soname'<br/>
>> clang-8: error: no such file or directory: 'libmpi.so.12'<br/>
>> make[2]: *** [lib/<a href="http://libmpi.la" target="_blank">libmpi.la</a> <<a href="http://libmpi.la/" target="_blank">http://libmpi.la/</a>>] Error 1<br/>
>> make[2]: Leaving directory `/opt/modules/src/mpich-3.3.1'<br/>
>> make[1]: *** [all-recursive] Error 1<br/>
>> make[1]: Leaving directory `/opt/modules/src/mpich-3.3.1'<br/>
>> make: *** [all] Error 2<br/>
>> Any idea how to sort this out?<br/>
>> Regards,<br/>
>> J<br/>
>> _______________________________________________<br/>
>> discuss mailing list <a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a> <<a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">mailto:discuss@mpich.org</a>><br/>
>> To manage subscription options or unsubscribe:<br/>
>> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank"> https://lists.mpich.org/mailman/listinfo/discuss</a><br/>
>><br/>
>> <m.txt><br/>
><br/>
><br/>
> _______________________________________________<br/>
> discuss mailing list <a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a><br/>
> To manage subscription options or unsubscribe:<br/>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank"> https://lists.mpich.org/mailman/listinfo/discuss</a><br/>
><br/>
<br/>
<br/>
--<br/>
Thomas Jahns<br/>
HPC-Gruppe<br/>
Abteilung Anwendungssoftware<br/>
<br/>
Deutsches Klimarechenzentrum GmbH<br/>
Bundesstraße 45a • D-20146 Hamburg • Germany<br/>
<br/>
Phone: +49 40 460094-151<br/>
Fax: +49 40 460094-270<br/>
Email: Thomas Jahns <<a href="mailto:jahns@dkrz.de" onclick="parent.window.location.href='mailto:jahns@dkrz.de'; return false;" target="_blank">jahns@dkrz.de</a>><br/>
URL: <a href="http://www.dkrz.de/" target="_blank">www.dkrz.de</a><br/>
<br/>
Geschäftsführer: Prof. Dr. Thomas Ludwig<br/>
Sitz der Gesellschaft: Hamburg<br/>
Amtsgericht Hamburg HRB 39784<br/>
<br/>
_______________________________________________<br/>
discuss mailing list <a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a><br/>
To manage subscription options or unsubscribe:<br/>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br/>
discuss mailing list     <a href="mailto:discuss@mpich.org" onclick="parent.window.location.href='mailto:discuss@mpich.org'; return false;" target="_blank">discuss@mpich.org</a><br/>
To manage subscription options or unsubscribe:<br/>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>