[Bug 1328838] [NEW] 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'

Iain Lane iain at orangesquash.org.uk
Wed Jun 11 09:27:31 UTC 2014


Public bug reported:

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>

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "ubuntu-system-settings_0.1+14.10.20140606-0ubuntu1_armhf-20140611-0910.build.gz"
   https://bugs.launchpad.net/bugs/1328838/+attachment/4129520/+files/ubuntu-system-settings_0.1%2B14.10.20140606-0ubuntu1_armhf-20140611-0910.build.gz

** Description changed:

  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
+   /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>

-- 
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

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