Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johnhawkinson/f2ba63eaf19f7b9f921943a83ebea1af to your computer and use it in GitHub Desktop.
Save johnhawkinson/f2ba63eaf19f7b9f921943a83ebea1af to your computer and use it in GitHub Desktop.
libtool .lai error: No such file or directory
$ cat foo.c
int foo() { return 0; }
$ libtool --mode=compile gcc -c foo.c
libtool: compile: gcc -c foo.c -fPIC -DPIC -o .libs/foo.o
libtool: compile: gcc -c foo.c -o foo.o >/dev/null 2>&1
$ libtool --mode=link gcc -o libfoo.la foo.lo
libtool: link: ar cru .libs/libfoo.a .libs/foo.o
libtool: link: ranlib .libs/libfoo.a
libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" )
$ mkdir -p /tmp/lt/prefix
$ libtool --mode=install install -c libfoo.la /tmp/lt/prefix
libtool: install: install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la
install: cannot stat '.libs/libfoo.lai': No such file or directory
$ libtool --debug --mode=link gcc -o libfoo.la foo.lo
libtool: enabling shell trace mode
+ test 5 -gt 0
+ opt=--mode=link
+ shift
+ case $opt in
+ func_split_long_opt --mode=link
+ func_split_long_opt_name=--mode
+ func_split_long_opt_arg=link
+ set dummy --mode link gcc -o libfoo.la foo.lo
+ shift
+ test 6 -gt 0
+ opt=--mode
+ shift
+ case $opt in
+ test 5 = 0
+ optarg=link
+ opt_mode=link
+ case $optarg in
+ shift
+ test 4 -gt 0
+ opt=gcc
+ shift
+ case $opt in
+ set dummy gcc -o libfoo.la foo.lo
+ shift
+ break
+ test 4 -gt 0
+ nonopt=gcc
+ shift
+ test 'set -x' = :
+ preserve_args+=' --debug'
+ case $host in
+ opt_duplicate_compiler_generated_deps=false
+ false
+ func_check_version_match
+ test 1.3337 '!=' 1.3337
+ test yes '!=' yes
+ eval 'std_shrext=".so"'
++ std_shrext=.so
+ test -n ''
+ generic_help='Try `libtool --help'\'' for more information.'
+ help='Try `libtool --help --mode=link'\'' for more information.'
+ : 1
+ to_host_path_cmd=
+ false
+ test link = compile
+ false
+ test link = execute
+ test link = finish
+ test link = install
+ test link = link
+ func_mode_link -o libfoo.la foo.lo
+ set -x
+ case $host in
+ allow_undefined=yes
+ libtool_args=gcc
+ base_compile='gcc -o libfoo.la foo.lo'
+ compile_command=gcc
+ finalize_command=gcc
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
++ pwd
+ lib_search_path=/tmp/lt
+ inst_prefix_dir=
+ new_inherited_linker_flags=
+ avoid_version=no
+ bindir=
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ weak_libs=
+ single_module=-Wl,-single_module
+ func_infer_tag gcc -o libfoo.la foo.lo
+ set -x
+ test -n 'CXX F77 FC GO GCJ RC BINCC BINCXX'
+ test -z ''
+ CC_quoted=
+ for arg in '$CC'
+ func_append_quoted CC_quoted gcc
+ func_quote_for_eval gcc
+ case $1 in
+ func_quote_for_eval_unquoted_result=gcc
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=gcc
+ eval 'CC_quoted+=\ $func_quote_for_eval_result'
++ CC_quoted+=' gcc'
++ func_echo_all gcc
++ printf '%s\n' gcc
+ CC_expanded=gcc
++ func_echo_all gcc
++ printf '%s\n' gcc
+ CC_quoted_expanded=gcc
+ case $@ in
+ for arg in '"$@"'
+ case $arg in
+ for arg in '"$@"'
+ case $arg in
+ for arg in '"$@"'
+ case $arg in
+ test -n ''
+ test 3 -gt 0
+ arg=-o
+ shift
+ func_quote_for_eval -o
+ case $1 in
+ func_quote_for_eval_unquoted_result=-o
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=-o
+ qarg=-o
+ libtool_args+=' -o'
+ test -n ''
+ prevarg=-o
+ case $arg in
+ prev=output
+ test -n -o
+ compile_command+=' -o'
+ finalize_command+=' -o'
+ test 2 -gt 0
+ arg=libfoo.la
+ shift
+ func_quote_for_eval libfoo.la
+ case $1 in
+ func_quote_for_eval_unquoted_result=libfoo.la
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=libfoo.la
+ qarg=libfoo.la
+ libtool_args+=' libfoo.la'
+ test -n output
+ case $prev in
+ compile_command+=' @OUTPUT@'
+ finalize_command+=' @OUTPUT@'
+ case $prev in
+ eval 'output="$arg"'
++ output=libfoo.la
+ prev=
+ continue
+ test 1 -gt 0
+ arg=foo.lo
+ shift
+ func_quote_for_eval foo.lo
+ case $1 in
+ func_quote_for_eval_unquoted_result=foo.lo
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=foo.lo
+ qarg=foo.lo
+ libtool_args+=' foo.lo'
+ test -n ''
+ prevarg=foo.lo
+ case $arg in
+ func_lalib_unsafe_p foo.lo
+ lalib_p=no
+ test -f foo.lo
+ test -r foo.lo
+ exec
+ for lalib_p_l in 1 2 3 4
+ read lalib_p_line
+ case "$lalib_p_line" in
+ for lalib_p_l in 1 2 3 4
+ read lalib_p_line
+ case "$lalib_p_line" in
+ lalib_p=yes
+ break
+ exec
+ test yes = yes
+ pic_object=
+ non_pic_object=
+ func_source foo.lo
+ set -x
+ case $1 in
+ . ./foo.lo
++ pic_object=.libs/foo.o
++ non_pic_object=foo.o
+ test -z .libs/foo.o
+ test -z foo.o
+ test .libs/foo.o = none
+ func_dirname foo.lo / ''
+ case ${1} in
+ func_dirname_result=
+ xdir=
+ test .libs/foo.o '!=' none
+ pic_object=.libs/foo.o
+ test '' = dlfiles
+ test '' = dlprefiles
+ libobjs+=' .libs/foo.o'
+ arg=.libs/foo.o
+ test foo.o '!=' none
+ non_pic_object=foo.o
+ non_pic_objects+=' foo.o'
+ test -z .libs/foo.o
+ test .libs/foo.o = none
+ test -n .libs/foo.o
+ compile_command+=' .libs/foo.o'
+ finalize_command+=' .libs/foo.o'
+ test 0 -gt 0
+ test -n ''
+ test no = yes
+ oldlibs=
+ func_basename libfoo.la
+ func_basename_result=libfoo.la
+ outputname=libfoo.la
+ libobjs_save=' .libs/foo.o'
+ test -n LD_LIBRARY_PATH
+ eval 'shlib_search_path=`$ECHO' '"${LD_LIBRARY_PATH}"' '|' '$SED' ''\''s/:/' '/g'\''`'
+++ printf '%s\n' ''
+++ /bin/sed 's/:/ /g'
++ shlib_search_path=
+ eval 'sys_lib_search_path="/lib/' /usr/lib/ /usr/X11R6/lib/ '/usr/local/lib/"'
++ sys_lib_search_path='/lib/ /usr/lib/ /usr/X11R6/lib/ /usr/local/lib/'
+ eval 'sys_lib_dlsearch_path="/lib' /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu '"'
++ sys_lib_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu '
+ func_dirname libfoo.la / ''
+ case ${1} in
+ func_dirname_result=
+ output_objdir=.libs
+ func_to_tool_file .libs/
+ set -x
+ case ,$2, in
+ func_convert_file_noop .libs/
+ func_to_host_file_result=.libs/
+ func_to_tool_file_result=.libs/
+ tool_output_objdir=.libs/
+ func_mkdir_p .libs
+ my_directory_path=.libs
+ my_dir_list=
+ test -n .libs
+ test false '!=' :
+ case $my_directory_path in
+ test '!' -d .libs
++ printf '%s\n' ''
++ /bin/sed 's,:*$,,'
+ my_dir_list=
+ save_mkdir_p_IFS='
'
+ IFS=:
+ IFS='
'
+ test -d .libs
+ case $output in
+ linkmode=lib
+ specialdeplibs=
+ libs=
+ test lib = lib
+ libs=' '
+ pre_post_deps=
+ false
+ pre_post_deps=
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no
+ notinst_deplibs=
+ notinst_path=
+ case $linkmode in
+ passes='conv dlpreopen link'
+ for pass in '$passes'
+ test lib,conv = lib,link
+ test lib,conv = lib,link
+ test lib,conv = prog,scan
+ test lib = prog
+ test lib,conv = lib,dlpreopen
+ test conv = dlopen
+ test conv = link
+ dependency_libs=
+ test conv = dlpreopen
+ test conv '!=' dlopen
+ test conv '!=' conv
+ test lib,conv '!=' prog,link
+ vars=deplibs
+ for var in '$vars' dependency_libs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'deplibs=""'
++ deplibs=
+ for var in '$vars' dependency_libs
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ for pass in '$passes'
+ test lib,dlpreopen = lib,link
+ test lib,dlpreopen = lib,link
+ test lib,dlpreopen = prog,scan
+ test lib = prog
+ test lib,dlpreopen = lib,dlpreopen
+ libs=
+ test dlpreopen = dlopen
+ test dlpreopen = link
+ dependency_libs=
+ test dlpreopen = dlpreopen
+ test dlpreopen '!=' dlopen
+ test dlpreopen '!=' conv
+ lib_search_path=
+ newlib_search_path=
+ test lib,dlpreopen '!=' prog,link
+ vars=deplibs
+ for var in '$vars' dependency_libs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'deplibs=""'
++ deplibs=
+ for var in '$vars' dependency_libs
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ for pass in '$passes'
+ test lib,link = lib,link
+ tmp_deplibs=
+ deplibs=
+ test lib,link = lib,link
+ libs=
+ deplibs=
+ test lib = prog
+ test lib,link = lib,dlpreopen
+ test link = dlopen
+ test link = link
+ test lib = prog
++ printf '%s\n' ' '
++ /bin/sed 's% \([^ $]*\).ltframework% -framework \1%g'
+ compiler_flags=' '
+ dependency_libs=
+ test link = dlpreopen
+ test link '!=' dlopen
+ test link '!=' conv
+ lib_search_path=
+ newlib_search_path=
+ test lib,link '!=' prog,link
+ vars=deplibs
+ for var in '$vars' dependency_libs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'deplibs=""'
++ deplibs=
+ for var in '$vars' dependency_libs
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test lib = prog
+ test lib = prog
+ test lib = lib
+ dlprefiles=
+ case $linkmode in
+ case $outputname in
+ func_stripname lib .la libfoo.la
+ func_stripname_result=libfoo.la
+ func_stripname_result=foo.la
+ func_stripname_result=foo
+ name=foo
+ eval 'shared_ext=".so"'
++ shared_ext=.so
+ eval 'libname="lib$name"'
++ libname=libfoo
+ test -n ''
+ test no '!=' no
+ set dummy
+ shift
+ test 0 -gt 1
+ install_libdir=
+ oldlibs=
+ test -z ''
+ test yes = yes
+ oldlibs='.libs/libfoo.a '
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ test -n ''
+ test -n ''
+ func_generate_dlsyms libfoo libfoo yes
+ set -x
+ my_outputname=libfoo
+ my_originator=libfoo
+ my_pic_p=yes
++ printf '%s\n' libfoo
++ sed 's%[^a-zA-Z0-9]%_%g'
+ my_prefix=libfoo
+ my_dlsyms=
+ test -n ''
+ test no '!=' no
+ test -n ''
++ printf '%s\n' 'gcc -o @OUTPUT@ .libs/foo.o'
++ /bin/sed 's% @SYMFILE@%%'
+ compile_command='gcc -o @OUTPUT@ .libs/foo.o'
++ printf '%s\n' 'gcc -o @OUTPUT@ .libs/foo.o'
++ /bin/sed 's% @SYMFILE@%%'
+ finalize_command='gcc -o @OUTPUT@ .libs/foo.o'
+ libobjs+=' '
+ test 'X .libs/foo.o ' = 'X '
+ test link '!=' relink
+ removelist=
++ printf '%s\n' '.libs/*'
+ tempremovelist='.libs/*'
+ for p in '$tempremovelist'
+ case $p in
+ for p in '$tempremovelist'
+ case $p in
+ test X '!=' X
+ removelist+=' .libs/libfoo.a'
+ for p in '$tempremovelist'
+ case $p in
+ test X '!=' X
+ removelist+=' .libs/libfoo.la'
+ test -n ' .libs/libfoo.a .libs/libfoo.la'
+ func_show_eval 'rm -fr $removelist'
+ my_cmd='rm -fr $removelist'
+ my_fail_exp=:
+ false
+ func_quote_for_expand 'rm -fr $removelist'
+ case $1 in
+ my_arg='rm -fr $removelist'
+ case $my_arg in
+ my_arg='"rm -fr $removelist"'
+ func_quote_for_expand_result='"rm -fr $removelist"'
+ eval 'func_echo "rm -fr $removelist"'
++ func_echo 'rm -fr .libs/libfoo.a .libs/libfoo.la'
++ printf '%s\n' 'libtool: link: rm -fr .libs/libfoo.a .libs/libfoo.la'
libtool: link: rm -fr .libs/libfoo.a .libs/libfoo.la
+ false
+ eval 'rm -fr $removelist'
++ rm -fr .libs/libfoo.a .libs/libfoo.la
+ my_status=0
+ test 0 -eq 0
+ :
+ test yes = yes
+ test convenience '!=' convenience
+ test -n ''
+ old_dlfiles=
+ dlfiles=
+ old_dlprefiles=
+ dlprefiles=
+ test convenience = yes
+ case $host in
+ new_libs=
+ deplibs=
+ library_names=
+ old_library=
+ dlname=
+ test convenience = yes
+ for oldlib in '$oldlibs'
+ test convenience = convenience
+ oldobjs=' .libs/foo.o '
+ addlibs=
+ build_libtool_libs=no
+ test -n ''
+ test -n ''
+ test -n ''
+ for obj in '$oldobjs'
+ sort
+ func_basename .libs/foo.o
+ func_basename_result=foo.o
+ printf '%s\n' foo.o
+ sort -uc
+ :
+ func_to_tool_file .libs/libfoo.a func_convert_file_msys_to_w32
+ set -x
+ case ,$2, in
+ func_convert_file_noop .libs/libfoo.a
+ func_to_host_file_result=.libs/libfoo.a
+ func_to_tool_file_result=.libs/libfoo.a
+ tool_oldlib=.libs/libfoo.a
+ eval 'cmds="$AR' '$AR_FLAGS' '$oldlib$oldobjs~$RANLIB' '$tool_oldlib"'
++ cmds='ar cru .libs/libfoo.a .libs/foo.o ~ranlib .libs/libfoo.a'
+ func_len ' ar cru .libs/libfoo.a .libs/foo.o ~ranlib .libs/libfoo.a'
+ func_len_result=57
+ len=57
+ test 57 -lt 3458764513820540925
+ cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $tool_oldlib'
+ func_execute_cmds '$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $tool_oldlib' 'exit $?'
+ set -x
+ save_ifs='
'
+ IFS='~'
+ for cmd in '$1'
+ IFS='
'
+ eval 'cmd="$AR' '$AR_FLAGS' '$oldlib$oldobjs"'
++ cmd='ar cru .libs/libfoo.a .libs/foo.o '
+ func_show_eval 'ar cru .libs/libfoo.a .libs/foo.o ' 'exit $?'
+ my_cmd='ar cru .libs/libfoo.a .libs/foo.o '
+ my_fail_exp='exit $?'
+ false
+ func_quote_for_expand 'ar cru .libs/libfoo.a .libs/foo.o '
+ case $1 in
+ my_arg='ar cru .libs/libfoo.a .libs/foo.o '
+ case $my_arg in
+ my_arg='"ar cru .libs/libfoo.a .libs/foo.o "'
+ func_quote_for_expand_result='"ar cru .libs/libfoo.a .libs/foo.o "'
+ eval 'func_echo "ar cru .libs/libfoo.a .libs/foo.o "'
++ func_echo 'ar cru .libs/libfoo.a .libs/foo.o '
++ printf '%s\n' 'libtool: link: ar cru .libs/libfoo.a .libs/foo.o '
libtool: link: ar cru .libs/libfoo.a .libs/foo.o
+ false
+ eval 'ar cru .libs/libfoo.a .libs/foo.o '
++ ar cru .libs/libfoo.a .libs/foo.o
+ my_status=0
+ test 0 -eq 0
+ :
+ for cmd in '$1'
+ IFS='
'
+ eval 'cmd="$RANLIB' '$tool_oldlib"'
++ cmd='ranlib .libs/libfoo.a'
+ func_show_eval 'ranlib .libs/libfoo.a' 'exit $?'
+ my_cmd='ranlib .libs/libfoo.a'
+ my_fail_exp='exit $?'
+ false
+ func_quote_for_expand 'ranlib .libs/libfoo.a'
+ case $1 in
+ my_arg='ranlib .libs/libfoo.a'
+ case $my_arg in
+ my_arg='"ranlib .libs/libfoo.a"'
+ func_quote_for_expand_result='"ranlib .libs/libfoo.a"'
+ eval 'func_echo "ranlib .libs/libfoo.a"'
++ func_echo 'ranlib .libs/libfoo.a'
++ printf '%s\n' 'libtool: link: ranlib .libs/libfoo.a'
libtool: link: ranlib .libs/libfoo.a
+ false
+ eval 'ranlib .libs/libfoo.a'
++ ranlib .libs/libfoo.a
+ my_status=0
+ test 0 -eq 0
+ :
+ IFS='
'
+ test -n ''
+ case $output in
+ old_library=
+ test yes = yes
+ old_library=libfoo.a
+ func_verbose 'creating libfoo.la'
+ false
+ :
+ for var in '$variables_saved_for_relink'
+ eval test -z '"${PATH+set}"'
++ test -z set
+ eval 'var_value=$PATH'
++ var_value=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh
+ test -z /mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh
+ func_quote_for_eval /mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh
+ case $1 in
+ func_quote_for_eval_unquoted_result=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh
+ relink_command='PATH=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh; export PATH; '
+ for var in '$variables_saved_for_relink'
+ eval test -z '"${LD_LIBRARY_PATH+set}"'
++ test -z ''
+ relink_command='{ test -z "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh; export PATH; '
+ for var in '$variables_saved_for_relink'
+ eval test -z '"${LD_RUN_PATH+set}"'
++ test -z ''
+ relink_command='{ test -z "${LD_RUN_PATH+set}" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh; export PATH; '
+ for var in '$variables_saved_for_relink'
+ eval test -z '"${GCC_EXEC_PREFIX+set}"'
++ test -z ''
+ relink_command='{ test -z "${GCC_EXEC_PREFIX+set}" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z "${LD_RUN_PATH+set}" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh; export PATH; '
+ for var in '$variables_saved_for_relink'
+ eval test -z '"${COMPILER_PATH+set}"'
++ test -z ''
+ relink_command='{ test -z "${COMPILER_PATH+set}" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z "${GCC_EXEC_PREFIX+set}" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z "${LD_RUN_PATH+set}" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh; export PATH; '
+ for var in '$variables_saved_for_relink'
+ eval test -z '"${LIBRARY_PATH+set}"'
++ test -z ''
+ relink_command='{ test -z "${LIBRARY_PATH+set}" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z "${COMPILER_PATH+set}" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z "${GCC_EXEC_PREFIX+set}" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z "${LD_RUN_PATH+set}" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/mit/jhawk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh; export PATH; '
++ pwd
+ relink_command='(cd /tmp/lt; /bin/bash /usr/bin/libtool --debug --mode=relink gcc -o libfoo.la foo.lo @inst_prefix_dir@)'
++ printf '%s\n' '(cd /tmp/lt; /bin/bash /usr/bin/libtool --debug --mode=relink gcc -o libfoo.la foo.lo @inst_prefix_dir@)'
++ /bin/sed 's/\([`"$\\]\)/\\\1/g'
+ relink_command='(cd /tmp/lt; /bin/bash /usr/bin/libtool --debug --mode=relink gcc -o libfoo.la foo.lo @inst_prefix_dir@)'
+ test no = yes
+ false
+ for installed in no yes
+ test no = yes
+ newdlfiles=
+ dlfiles=
+ newdlprefiles=
+ dlprefiles=
+ rm -f libfoo.la
+ tdlname=
+ case $host,$output,$installed,$module,$dlname in
+ printf '%s\n' '# libfoo.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='\'''\''
# Names of this library.
library_names='\'''\''
# The name of the static archive.
old_library='\''libfoo.a'\''
# Linker flags that can not go in dependency_libs.
inherited_linker_flags='\'''\''
# Libraries that this one depends upon.
dependency_libs='\'''\''
# Names of additional weak libraries provided by this library
weak_library_names='\'''\''
# Version information for libfoo.
current=
age=
revision=
# Is this an already installed library?
installed=no
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen='\'''\''
dlpreopen='\'''\''
# Directory that this library needs to be installed in:
libdir='\'''\'''
+ test no = no
+ test no = yes
+ for installed in no yes
+ test yes = yes
+ test -z ''
+ break
+ func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+ my_cmd='( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )'
+ my_fail_exp='exit $?'
+ false
+ func_quote_for_expand '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )'
+ case $1 in
++ printf '%s\n' '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )'
++ /bin/sed -e 's/\(["`\\]\)/\\\1/g' -e ' s/\\\\\\\\/&\
/g
s/^\\\\\$/\\&/
s/\([^\\]\)\\\\\$/\1\\\\\\\$/g
s/\n//g'
+ my_arg='( cd \"$output_objdir\" && $RM \"$outputname\" && $LN_S \"../$outputname\" \"$outputname\" )'
+ case $my_arg in
+ my_arg='"( cd \"$output_objdir\" && $RM \"$outputname\" && $LN_S \"../$outputname\" \"$outputname\" )"'
+ func_quote_for_expand_result='"( cd \"$output_objdir\" && $RM \"$outputname\" && $LN_S \"../$outputname\" \"$outputname\" )"'
+ eval 'func_echo "( cd \"$output_objdir\" && $RM \"$outputname\" && $LN_S \"../$outputname\" \"$outputname\" )"'
++ func_echo '( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" )'
++ printf '%s\n' 'libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" )'
libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" )
+ false
+ eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )'
++ cd .libs
++ rm -f libfoo.la
++ ln -s ../libfoo.la libfoo.la
+ my_status=0
+ test 0 -eq 0
+ :
+ exit 0
$ libtool --debug --mode=install install -c libfoo.la /tmp/lt/prefix
libtool: enabling shell trace mode
+ test 5 -gt 0
+ opt=--mode=install
+ shift
+ case $opt in
+ func_split_long_opt --mode=install
+ func_split_long_opt_name=--mode
+ func_split_long_opt_arg=install
+ set dummy --mode install install -c libfoo.la /tmp/lt/prefix
+ shift
+ test 6 -gt 0
+ opt=--mode
+ shift
+ case $opt in
+ test 5 = 0
+ optarg=install
+ opt_mode=install
+ case $optarg in
+ shift
+ test 4 -gt 0
+ opt=install
+ shift
+ case $opt in
+ set dummy install -c libfoo.la /tmp/lt/prefix
+ shift
+ break
+ test 4 -gt 0
+ nonopt=install
+ shift
+ test 'set -x' = :
+ preserve_args+=' --debug'
+ case $host in
+ opt_duplicate_compiler_generated_deps=false
+ false
+ func_check_version_match
+ test 1.3337 '!=' 1.3337
+ test yes '!=' yes
+ eval 'std_shrext=".so"'
++ std_shrext=.so
+ test -n ''
+ generic_help='Try `libtool --help'\'' for more information.'
+ help='Try `libtool --help --mode=install'\'' for more information.'
+ : 1
+ to_host_path_cmd=
+ false
+ test install = compile
+ false
+ test install = execute
+ test install = finish
+ test install = install
+ func_mode_install -c libfoo.la /tmp/lt/prefix
+ set -x
+ test install = /bin/bash
+ test install = /bin/sh
+ case $nonopt in
+ false
+ install_prog=
+ arg=install
+ func_quote_for_eval install
+ case $1 in
+ func_quote_for_eval_unquoted_result=install
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=install
+ install_prog+=install
+ install_shared_prog=install
+ case " $install_prog " in
+ install_cp=false
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ no_mode=:
+ for arg in '"$@"'
+ arg2=
+ test -n ''
+ case $arg in
+ func_quote_for_eval -c
+ case $1 in
+ func_quote_for_eval_unquoted_result=-c
+ case $func_quote_for_eval_unquoted_result in
+ func_quote_for_eval_result=-c
+ install_prog+=' -c'
+ test -n ''
+ install_shared_prog+=' -c'
+ for arg in '"$@"'
+ arg2=
+ test -n ''
+ case $arg in
+ test -n ''
+ dest=libfoo.la
+ continue
+ for arg in '"$@"'
+ arg2=
+ test -n libfoo.la
+ files+=' libfoo.la'
+ dest=/tmp/lt/prefix
+ continue
+ test -z 'install -c'
+ test -n ''
+ test -n ''
+ test -z ' libfoo.la'
+ func_stripname '' / /tmp/lt/prefix
+ func_stripname_result=/tmp/lt/prefix
+ func_stripname_result=/tmp/lt/prefix
+ func_stripname_result=/tmp/lt/prefix
+ dest=/tmp/lt/prefix
+ test -d /tmp/lt/prefix
+ isdir=yes
+ test yes = yes
+ destdir=/tmp/lt/prefix
+ destname=
+ case $destdir in
+ libtool_install_magic='%%%MAGIC variable%%%'
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in '$files'
+ case $file in
+ func_resolve_sysroot libfoo.la
+ func_resolve_sysroot_result=libfoo.la
+ case $func_resolve_sysroot_result in
+ file=libfoo.la
+ func_lalib_unsafe_p libfoo.la
+ lalib_p=no
+ test -f libfoo.la
+ test -r libfoo.la
+ exec
+ for lalib_p_l in 1 2 3 4
+ read lalib_p_line
+ case "$lalib_p_line" in
+ for lalib_p_l in 1 2 3 4
+ read lalib_p_line
+ case "$lalib_p_line" in
+ lalib_p=yes
+ break
+ exec
+ test yes = yes
+ library_names=
+ old_library=
+ relink_command=
+ func_source libfoo.la
+ set -x
+ case $1 in
+ . ./libfoo.la
++ dlname=
++ library_names=
++ old_library=libfoo.a
++ inherited_linker_flags=
++ dependency_libs=
++ weak_library_names=
++ current=
++ age=
++ revision=
++ installed=no
++ shouldnotlink=no
++ dlopen=
++ dlpreopen=
++ libdir=
+ test X/tmp/lt/prefix = X
+ case "$future_libdirs " in
+ future_libdirs+=' '
+ func_dirname libfoo.la / ''
+ case ${1} in
+ func_dirname_result=
+ dir=
+ dir+=.libs
+ test -n ''
+ set dummy
+ shift
+ test -n ''
+ func_basename libfoo.la
+ func_basename_result=libfoo.la
+ name=libfoo.la
+ instname=.libs/libfoo.lai
+ func_show_eval 'install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la' 'exit $?'
+ my_cmd='install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la'
+ my_fail_exp='exit $?'
+ false
+ func_quote_for_expand 'install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la'
+ case $1 in
+ my_arg='install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la'
+ case $my_arg in
+ my_arg='"install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la"'
+ func_quote_for_expand_result='"install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la"'
+ eval 'func_echo "install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la"'
++ func_echo 'install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la'
++ printf '%s\n' 'libtool: install: install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la'
libtool: install: install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la
+ false
+ eval 'install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la'
++ install -c .libs/libfoo.lai /tmp/lt/prefix/libfoo.la
install: cannot stat '.libs/libfoo.lai': No such file or directory
+ my_status=1
+ test 1 -eq 0
+ eval '(exit 1); exit $?'
++ exit 1
++ exit 1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment