libtool
[Top][All Lists]
Advanced

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

Want to configure libtool to support ICC compiler


From: Himanshu_Khurana
Subject: Want to configure libtool to support ICC compiler
Date: Mon, 24 Mar 2003 20:05:18 +0530

Hi all,
I am really stressed out at this one now.
I have downloaded CVS libtool which has a patch to support ICC compiler.

I have been trying to install it but all efforts in vain. Please help me out if 
u can.

Could you give me the steps and the appropriate environment variables to set 
for configuring and installing libtool

The error I get is due to the foolowing ---i am pretty sure about it . There is 
no wl variable getting set. Thats why options like -soname and etc are not 
getting recognised . 

when i say /home/my/libtool --config >>>> this is what I get  
# How to pass a linker flag through the compiler.
wl=""

#######################################################################################################

I will repeat here what all exactly i am doing
1:Downloaded libtool.tgz file from the place(CVS repository) mentioned by Robert
2:Downloaded autoconf2.7.tar.gz and automake1.7.tar.gz from ftp.gnu.org


STEP 1
In my home directory I created a directory called usr
/home/himanshu/usr

STEP 2.

>>tar xvzf autoconf-2.7.tar.gz 

cd TO AUTOCONF DIRECTORY

>>./configure --prefix=/home/himanshu/usr
>>make
>>make install
>>PATH=/home/himanshu/usr/bin:$PATH

>>tar xvzf automake-1.7.tar.gz

cd TO AUTOMAKE DIRECTORY

>>./configure  --prefix=/home/himanshu/usr
>>make
>>make install

ALL THESE THINGS PROCEEDED SMOOTHLY WITHOUT ANY ERROR.ON ASKING FOR VERSIONS i 
GOT THE CORRECT VERSIONS---THE PATH BEING SET

>>mkdir /home/himanshu/usr/local
>>tar xvzf libtool.tgz -C /home/himanshu/usr/local

cd TO THE LIBTOOL DIRECTORY
the contesnts are as 

>>ls
AUTHORS      commit        depdemo        ltdl.m4      mkstamp       tagdemo
bootstrap    config.guess  doc            ltmain.c     NEWS          tests
cdemo        config.sub    f77demo        ltmain.in    pdemo         THANKS
ChangeLog    configure.ac  libltdl        mail         PORTING       TODO
ChangeLog.0  CVS           libtoolize.in  Makefile.am  README
ChangeLog.1  demo          libtool.m4     mdemo        README-alpha

NOW I RUM ./bootstrap
 WHICH PROCEEDS SUCCESSFULLY

then I set environment variables as follows

PATH=/home/himanshu/usr/bin:/usr/lib:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/himanshu/bin
CC=/opt/intel/compiler70/ia32/bin/icc
CXX=/opt/intel/compiler70/ia32/bin/icc
LD=/opt/intel/compiler70/ia32/bin/xild
LDFLAGS=/usr/lib:/opt/intel/compiler70/ia32/lib:/data/zion/intersect/local_linux_icc/lib
LD_LIBRARY_PATH=/usr/lib:/opt/intel/compiler70/ia32/lib:/data/zion/intersect/local_linux_icc/lib

./configure --prefix=/home/himanshu/usr

NO PROBLEMS UPTILL NOW

I get the following output

## ----------------------------------------------------- ##
## Configuring libtool 1.4e (1.1205 2003/03/17 00:52:47) ##
## ----------------------------------------------------- ##

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /opt/intel/compiler70/ia32/bin/icc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/intel/compiler70/ia32/bin/icc accepts -g... yes
checking for /opt/intel/compiler70/ia32/bin/icc option to accept ANSI C... none 
needed
checking for style of include used by make... GNU
checking dependency style of /opt/intel/compiler70/ia32/bin/icc... none
checking for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for non-GNU ld... /opt/intel/compiler70/ia32/bin/xild
checking if the linker (/opt/intel/compiler70/ia32/bin/xild) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking whether we are using the GNU C++ compiler... no
checking whether /opt/intel/compiler70/ia32/bin/icc accepts -g... yes
checking dependency style of /opt/intel/compiler70/ia32/bin/icc... none
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking for gcj... no
checking for windres... no
checking for /opt/intel/compiler70/ia32/bin/xild option to reload object 
files... -r
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /opt/intel/compiler70/ia32/bin/icc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... /opt/intel/compiler70/ia32/bin/icc 
-E
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from 
/opt/intel/compiler70/ia32/bin/icc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if /opt/intel/compiler70/ia32/bin/icc static flag  works... yes
checking for /opt/intel/compiler70/ia32/bin/icc option to produce PIC... 
checking if /opt/intel/compiler70/ia32/bin/icc supports -c -o file.o... yes
checking whether the /opt/intel/compiler70/ia32/bin/icc linker 
(/opt/intel/compiler70/ia32/bin/xild) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: executing depfiles commands
configure: configuring in libltdl
configure: running /bin/sh './configure' --prefix=/home/himanshu/usr/  
'--prefix=/home/himanshu/usr/' 'CC=/opt/intel/compiler70/ia32/bin/icc' 
'CXX=/opt/intel/compiler70/ia32/bin/icc' --enable-ltdl-install 
--cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /opt/intel/compiler70/ia32/bin/icc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/intel/compiler70/ia32/bin/icc accepts -g... yes
checking for /opt/intel/compiler70/ia32/bin/icc option to accept ANSI C... none 
needed
checking for style of include used by make... GNU
checking dependency style of /opt/intel/compiler70/ia32/bin/icc... none
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for non-GNU ld... /opt/intel/compiler70/ia32/bin/xild
checking if the linker (/opt/intel/compiler70/ia32/bin/xild) is GNU ld... yes
checking for /opt/intel/compiler70/ia32/bin/xild option to reload object 
files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /opt/intel/compiler70/ia32/bin/icc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... no
checking whether /opt/intel/compiler70/ia32/bin/icc accepts -g... yes
checking dependency style of /opt/intel/compiler70/ia32/bin/icc... none
checking how to run the C++ preprocessor... /opt/intel/compiler70/ia32/bin/icc 
-E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from 
/opt/intel/compiler70/ia32/bin/icc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if /opt/intel/compiler70/ia32/bin/icc static flag  works... yes
checking for /opt/intel/compiler70/ia32/bin/icc option to produce PIC... 
checking if /opt/intel/compiler70/ia32/bin/icc supports -c -o file.o... yes
checking whether the /opt/intel/compiler70/ia32/bin/icc linker 
(/opt/intel/compiler70/ia32/bin/xild) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking which extension is used for shared libraries... 
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib
checking for objdir... .libs
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen in -ldl... yes
checking for dlerror... yes
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking for error_t... yes
checking for argz_append... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking sys/dl.h usability... no
checking sys/dl.h presence... no
checking for sys/dl.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking for string.h... (cached) yes
checking for strchr... yes
checking for strrchr... yes
checking for memcpy... yes
checking for memmove... yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands




I finally say make I get the following output

/bin/sh ./libtool --mode=compile /opt/intel/compiler70/ia32/bin/icc 
-DHAVE_CONFIG_H -I. -I. -I.     -g -c -o ltdl.lo `test -f 'ltdl.c' || echo 
'./'`ltdl.c
mkdir .libs
 /opt/intel/compiler70/ia32/bin/icc -DHAVE_CONFIG_H -I. -I. -I. -g -c ltdl.c  
-DPIC -o .libs/ltdl.o
 /opt/intel/compiler70/ia32/bin/icc -DHAVE_CONFIG_H -I. -I. -I. -g -c ltdl.c -o 
ltdl.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link /opt/intel/compiler70/ia32/bin/icc  -g   -o 
libltdl.la -rpath /home/himanshu/usr//lib -no-undefined -version-info 4:0:1 
ltdl.lo -ldl 
/opt/intel/compiler70/ia32/bin/icc -shared  .libs/ltdl.o  -ldl -lc  -soname 
libltdl.so.3 -o .libs/libltdl.so.3.1.0
make[2]: Leaving directory `/home/himanshu/usr/local/libtool/libltdl'
make[1]: Leaving directory `/home/himanshu/usr/local/libtool/libltdl'


icc: Command line warning: ignoring unknown option '-soname'
ld: cannot open libltdl.so.3: No such file or directory
make[2]: *** [libltdl.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1


make install also gives same errors

when I say 
libtool --config 

I get the follwing output


# Libtool was configured on host blrkecxxx:

# Shell to use when invoking shell scripts.
SHELL="/bin/sh"

# Whether or not to build shared libraries.
build_libtool_libs=yes

# Whether or not to build static libraries.
build_old_libs=yes

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=yes

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=no

# Whether or not to optimize for fast installation.
fast_install=yes

# The host system.
host_alias=
host=i686-pc-linux-gnu

# An echo program that does not interpret backslashes.
echo="echo"

# The archiver.
AR="ar"
AR_FLAGS="cru"

# A C compiler.
LTCC="/opt/intel/compiler70/ia32/bin/icc"

# A language-specific compiler.
CC="/opt/intel/compiler70/ia32/bin/icc"

# Is the compiler the GNU C compiler?
with_gcc=

# An ERE matcher.
EGREP="grep -E"

# The linker used to build libraries.
LD="/opt/intel/compiler70/ia32/bin/xild"

# Whether we need hard or soft links.
LN_S="ln -s"

# A BSD-compatible nm program.
NM="/usr/bin/nm -B"

# A symbol stripping program
STRIP=strip

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=file

# Used on cygwin: DLL creation program.
DLLTOOL="dlltool"

# Used on cygwin: object dumper.
OBJDUMP="objdump"

# Used on cygwin: assembler.
AS="as"

# The name of the directory that contains temporary libtool files.
objdir=.libs

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

# How to pass a linker flag through the compiler.
wl=""

# Object file suffix (normally "o").
objext="o"

# Old archive suffix (normally "a").
libext="a"

# Shared library suffix (normally ".so").
shrext='.so'

# Executable file suffix (normally "").
exeext=""

# Additional compiler flags for building library objects.
pic_flag=" -DPIC"
pic_mode=default

# What is the maximum length of a command?
max_cmd_len=32768

# Does compiler simultaneously support -c and -o options?
compiler_c_o="yes"

# Must we lock files when doing compilation ?
need_locks="no"

# Do we need the lib prefix for modules?
need_lib_prefix=no

# Do we need a version for libraries?
need_version=no

# Whether dlopen is supported.
dlopen_support=yes

# Whether dlopen of programs is supported.
dlopen_self=no

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=unknown

# Compiler flag to prevent dynamic linking.
link_static_flag=""

# Compiler flag to turn off builtin functions.
no_builtin_flag=""

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec="\${wl}--export-dynamic"

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec="\${wl}--whole-archive\$convenience 
\${wl}--no-whole-archive"

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=""

# Library versioning type.
version_type=linux

# Format of library name prefix.
libname_spec="lib\$name"

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

# The coded name of the library, if different from the real name.
soname_spec="\${libname}\${release}\${shared_ext}\$major"

# Commands used to build and install an old-style archive.
RANLIB="ranlib"
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB 
\$oldlib"
old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
old_postuninstall_cmds=""

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=""

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=""

# Commands used to build and install a shared archive.
archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname 
\$wl\$soname -o \$lib"
archive_expsym_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags 
\${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o 
\$lib"
postinstall_cmds=""
postuninstall_cmds=""

# Commands to strip libraries.
old_striplib="strip --strip-debug"
striplib="strip --strip-unneeded"

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=""

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=""

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=""

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=""

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=""

# Method to check whether dependent libraries are shared objects.
deplibs_check_method="pass_all"

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd="\$MAGIC_CMD"

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=""

# Flag that forces no undefined symbols.
no_undefined_flag=""

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

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=""

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe="sed -n -e 's/^.*[   ]\\([ABCDGISTW][ABCDGISTW]*\\)[         
][      ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'"

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", 
(lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", 
(lt_ptr) \\&\\2},/p'"

# This is the shared library runtime path variable.
runpath_var=LD_RUN_PATH

# This is the shared library path variable.
shlibpath_var=LD_LIBRARY_PATH

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=no

# How to hardcode a shared library path into an executable.
hardcode_action=immediate

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=yes

# Flag to hardcode $libdir into a binary during linking.
# This must work even if $libdir does not exist.
hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"

# If ld is used when linking, flag to hardcode $libdir into
# a binary during linking. This must work even if $libdir does
# not exist.
hardcode_libdir_flag_spec_ld=""

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=""

# Set to yes if using DIR/libNAME during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=no

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=no

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=unsupported

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="PATH  LD_RUN_PATH"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=unknown

# Compile-time system search path for libraries
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec="/lib /usr/lib"

# Fix the shell variable $srcfile for the compiler.
fix_srcfile_path=""

# Set to yes if exported symbols are required.
always_export_symbols=no

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

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=""

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"

# Symbols that must always be exported.
include_expsyms=""





PLEASE  see through this and try to help me out of this fix!!
ANy else output u want mail me back!!

Anxiously waiting for a breather
:-)
Himanshu Khurana





reply via email to

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