libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"$to_tool_file_cmd" is empty


From: Bruce Korb
Subject: "$to_tool_file_cmd" is empty
Date: Tue, 23 Oct 2012 10:44:32 -0700

>lt-func_mode_compile> func_to_tool_file alloc.c func_convert_file_msys_to_w32
>lt-func_to_tool_file> set -x
>lt-func_to_tool_file> case ,$2, in
>lt-func_to_tool_file> alloc.c
./libtool: line 2088: ./alloc.c: Permission denied

$ libtool --version|head -1
libtool (GNU libtool) 2.4.2

#! /bin/sh

# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (gc) 7.3alpha3
# Libtool was configured on host reml1006:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
[.....]
# func_to_tool_file ARG LAZY
# converts the file name ARG from $build format to toolchain format. Return
# result in func_to_tool_file_result.  If the conversion in use is listed
# in (the comma separated) LAZY, no conversion takes place.
func_to_tool_file ()
{
  $opt_debug
  case ,$2, in
    *,"$to_tool_file_cmd",*)
      func_to_tool_file_result=$1
      ;;
    *)

      $to_tool_file_cmd "$1"  <<<<<===== "$to_tool_file_cmd" is empty
==============>>>>   neither ltmain.sh nor "libtool" contain an
assignment to it.

      func_to_tool_file_result=$func_to_host_file_result
      ;;
  esac
}
# end func_to_tool_file


====================================================

To make forward progress, I replaced $to_tool_file_cmd to
${to_tool_file_cmd:-noop_tool_file_cmd},
but my build still did not finish:

$ make
/bin/sh ./libtool --tag=CC   --mode=link gcc -fexceptions -Wall
-Wextra -arch x86_64 -fno-strict-aliasing -Wl,-single_module
-version-info 1:3:0 -no-undefined  -o libgc.la -rpath /usr/local/lib
allchblk.lo alloc.lo blacklst.lo checksums.lo dbg_mlc.lo dyn_load.lo
finalize.lo gc_dlopen.lo gcj_mlc.lo headers.lo mach_dep.lo malloc.lo
mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo obj_map.lo
os_dep.lo pcr_interface.lo ptr_chck.lo real_malloc.lo reclaim.lo
specific.lo stubborn.lo thread_local_alloc.lo typd_mlc.lo
pthread_start.lo pthread_support.lo darwin_stop_world.lo   fnlz_mlc.lo
 -lpthread  -L/usr/local/lib -latomic_ops
libtool: link: `allchblk.lo' is not a valid libtool object
make[1]: *** [libgc.la] Error 1
make: *** [all-recursive] Error 1


I give.  Too hard.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]