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

Bug#672996: libstdc++6-4.6-dev: Static linking of C++ runtime fails due to relocation problems, recompiling with -fPIC needed.



Package: libstdc++6-4.6-dev
Version: 4.6.3-1
Severity: normal

Dear Maintainer,

trying to link the C++-runtime statically with the option -static-libstdc++
fails for me with following error:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a(ctype.o):
relocation R_X86_64_32S against `vtable for std::ctype<wchar_t>' can not
be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a: could not read symbols:
Bad value

Please consider building /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a
with the Option -fPIC,
maybe other version of gcc from version 4.5 (introducing the option
-static-libstdc++) too.

Flynn


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.6-06865-gd51a918-dirty (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libstdc++6-4.6-dev depends on:
ii  g++-4.6       4.6.3-1
ii  gcc-4.6-base  4.6.3-1
ii  libc6-dev     2.13-32
ii  libstdc++6    4.7.0-7

libstdc++6-4.6-dev recommends no packages.

Versions of packages libstdc++6-4.6-dev suggests:
pn  libstdc++6-4.6-doc  <none>

-- no debconf information





Reply to: