Package: libtool
Version: 1.5.26-4
Severity: normal

Build of shared libraries fails with icc 10.1 20080312 because libtool
tries -KPIC instead of -fPIC:

brocoli:~/software/mpfr-2.3.1> CC=icc ./configure --prefix=$HOME/icc64 
--enable-shared --enable-thread-safe
[...]
checking for icc option to produce PIC... -KPIC
checking if icc PIC flag -KPIC works... no
[...]
brocoli:~/software/mpfr-2.3.1> =make
[...]
ld: .libs/exceptions.o: relocation R_X86_64_TPOFF32 against `__gmpfr_emax' can 
not be used when making a shared object; recompile with -fPIC
.libs/exceptions.o: could not read symbols: Bad value
make[1]: *** [libmpfr.la] Error 1
make[1]: Leaving directory `/home/vlefevre/software/mpfr-2.3.1'
make: *** [all-recursive] Error 1
zsh: exit 2     =make

and recompiling with -fPIC in $CFLAGS works.

Note: the icc man page says:

[...]
       -f[no-]pic, -f[no-]PIC
              see Data
[...]
       -f[no-]pic, -f[no-]PIC
              i32 and i64em: This option generates position independent  code.
              By default this option is OFF.

              i64: This option generates code allowing full symbol preemption.
              By default this option is OFF.
[...]
DEPRECATED AND REMOVED OPTIONS
[...]
   Removed Options
       The following options are removed in this release of the compiler:
[...]
       -Kpic, -KPIC
              Suggested replacement -fpic.

       -Knopic, -KNOPIC
              Suggested replacement -fpic.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.4-20080521 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages libtool depends on:
ii  autotools-dev                 20080123.1 Update infrastructure for config.{
ii  cpp                           4:4.3.0-8  The GNU C preprocessor (cpp)
ii  file                          4.24-2     Determines file type using "magic"
ii  gcc [c-compiler]              4:4.3.0-8  The GNU C compiler
ii  gcc-3.3 [c-compiler]          1:3.3.6-15 The GNU C compiler
ii  gcc-3.4 [c-compiler]          3.4.6-7    The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-22   The GNU C compiler
ii  gcc-4.2 [c-compiler]          4.2.4-2    The GNU C compiler
ii  gcc-4.3 [c-compiler]          4.3.1-1    The GNU C compiler
ii  libc6-dev [libc-dev]          2.7-12     GNU C Library: Development Librari

Versions of packages libtool recommends:
ii  libltdl3-dev                  1.5.26-4   A system independent dlopen wrappe

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to