[Bug 1328838] Re: Can't x-build ubuntu-system-settings with 1.0.4ubuntu1: /usr/lib/arm-linux-gnueabihf/libapt-pkg.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'

Michael Vogt michael.vogt at canonical.com
Thu Jun 12 09:18:06 UTC 2014


** This bug is no longer a duplicate of bug 1329089
   g++-4.9 binary incompatibilties with libraries built with g++-4.8

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1328838

Title:
  Can't x-build ubuntu-system-settings with 1.0.4ubuntu1: /usr/lib/arm-
  linux-gnueabihf/libapt-pkg.so: undefined reference to
  `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'

Status in “apt” package in Ubuntu:
  New
Status in “gcc-4.9” package in Ubuntu:
  New

Bug description:
  I just tried a cross-build of ubuntu-system-settings (a reverse
  dependency of libapt-pkg) on Utopic, and got apt 1.0.4ubuntu1 as part
  of this.

  The build failed (full log attached) with this output

    /usr/bin/arm-linux-gnueabihf-g++   -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -std=c++0x -fno-permissive -pedantic -Wall -Wextra   -Wl,-Bsymbolic-functions -Wl,-z,relro CMakeFiles/tst-update.dir/tst_update.cpp.o CMakeFiles/tst-update.dir/__/__/__/plugins/system-update/update.cpp.o CMakeFiles/tst-update.dir/tst-update_automoc.cpp.o  -o tst-update -rdynamic /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5DBus.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Xml.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Network.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Test.so.5.2.1 -lapt-pkg /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Network.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5.2.1 /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5.2.1
    /usr/lib/arm-linux-gnueabihf/libapt-pkg.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
    collect2: error: ld returned 1 exit status

  if I then enter the environment and downgrade apt only to the versions
  in utopic release (1.0.2ubuntu2) then it builds again.

  You should be able to reproduce it by creating a cross-building chroot

  $ mk-sbuild --target armhf utopic

  and then trying to build current ubuntu-system-settings inside that.

  $ sbuild --host=armhf -A -d utopic <blah.dsc>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1328838/+subscriptions



More information about the foundations-bugs mailing list