FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 05-15-2012, 10:47 AM
Flynn Marquardt
 
Default 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





--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FB23429.2040205@flynnux.de">http://lists.debian.org/4FB23429.2040205@flynnux.de
 
Old 10-06-2012, 12:24 PM
Matthias Klose
 
Default Bug#672996: libstdc++6-4.6-dev: Static linking of C++ runtime fails due to relocation problems, recompiling with -fPIC needed.

tags 672996 + moreinfo
thanks

On 15.05.2012 12:47, Flynn Marquardt wrote:
> 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.

the bug report is missing information how the objects are built and linked.


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 507022F4.7050602@debian.org">http://lists.debian.org/507022F4.7050602@debian.org
 

Thread Tools




All times are GMT. The time now is 08:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org