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

Bug#739891: marked as done (libstdc++: -static-libstdc++ broken)



Your message dated Mon, 18 Apr 2016 18:43:10 +0000
with message-id <[🔎] E1asE8c-0005cB-9r@franck.debian.org>
and subject line Bug#821336: Removed package(s) from unstable
has caused the Debian Bug report #739891,
regarding libstdc++: -static-libstdc++ broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
739891: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739891
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libstdc++-4.8-dev
Version: 4.8.2-15
Severity: important
File: libstdc++
Tags: upstream

Dear Maintainer,

-static-libstdc++ does not seem to be working anymore.
Consider this following test application:

---------------------
#include <iostream>
#include <string>

int main()
{
  std::string s;
  if (s.empty()) { std::cout << "String is empty!" << std::endl; }
  return(0);
}
---------------------
g++ -Wall -o test test.cpp -static-libgcc -static-libstdc++

"test" here should not contain any references to libstdc++ symbols as it is being linked statically, however, "objdump -T test" contains the following:
00000000006915c0 u    DO .bss   0000000000000020  Base        _ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE
0000000000691600 u    DO .bss   0000000000000020  Base        _ZNSs4_Rep20_S_empty_rep_storageE

These are both symbols from libstdc++ that should have been staticaly linked, yet they are now undefined, and indeed, this binary will not run on a system without a sufficiently up to date libstdc++ installed.

The same problem occurs with:
clang++ -Wall -o test test.cpp -static-libgcc -static-libstdc++

So the problem seems to be more of an interaction with libstdc++ and the linker than the compiler in question.

An older Debian setup I have back when GCC 4.6 was current does not exhibit the problem here.


-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (900, 'stable'), (800, 'testing'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11.6-x86_64-linode35 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libstdc++-4.8-dev:amd64 depends on:
ii  gcc-4.8-base    4.8.2-15
ii  libc6-dev       2.17-97
ii  libgcc-4.8-dev  4.8.2-15
ii  libstdc++6      4.8.2-15

libstdc++-4.8-dev:amd64 recommends no packages.

Versions of packages libstdc++-4.8-dev:amd64 suggests:
pn  libstdc++-4.8-doc  <none>

-- debconf-show failed

--- End Message ---
--- Begin Message ---
Version: 4.8.5-4+rm

Dear submitter,

as the package gcc-4.8 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/821336

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: