Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29253 - boost/boost-libs need to be recompiled with gcc-4.7.0

Attached to Project: Arch Linux
Opened by Dror Levin (spatz) - Tuesday, 03 April 2012, 13:33 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 04 April 2012, 17:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After upgrading to gcc-4.7.0 which went into core earlier, I got the following errors while statically linking a private C++ project with boost-1.49.0:

`.text._ZN5boost16exception_detail19error_info_injectorINS_17bad_function_callEED2Ev' referenced in section `.text._ZN5boost16exception_detail19error_info_injectorINS_17bad_function_callEED1Ev[_ZN5boost16exception_detail19error_info_injectorINS_17bad_function_callEED1Ev]' of /usr/lib/libboost_signals.a(named_slot_map.o): defined in discarded section `.text._ZN5boost16exception_detail19error_info_injectorINS_17bad_function_callEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_17bad_function_callEED5Ev]' of /usr/lib/libboost_signals.a(named_slot_map.o)
`.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED2Ev' referenced in section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED1Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED1Ev]' of /usr/lib/libboost_signals.a(named_slot_map.o): defined in discarded section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED2Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED5Ev]' of /usr/lib/libboost_signals.a(named_slot_map.o)
`.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED2Ev' referenced in section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED1Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED1Ev]' of /usr/lib/libboost_signals.a(named_slot_map.o): defined in discarded section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED2Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEED5Ev]' of /usr/lib/libboost_signals.a(named_slot_map.o)

I suspected that the problem was that boost needs to be recompiled, so using abs I recompiled and installed it and not it works. Seems like a new recompiled revision of boost is needed.
If any more information is needed I'll be happy to supply it.

Additional info:
* package version(s)
* config and/or log files etc.
gcc-4.7.0-3
binutils-2.22-5
boost-1.49.0-1

Steps to reproduce:
1. Update pacman
2. Compile and statically link with boost using new gcc-4.7.0
3. Get mentioned errors
This task depends upon

Closed by  Ionut Biru (wonder)
Wednesday, 04 April 2012, 17:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  boost 1.49.0-1.1
Comment by Cotizo Sima (cotizo) - Wednesday, 04 April 2012, 13:20 GMT
I am also experiencing g++ + boost problems:


`.text._ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED2Ev' referenced in section `.text._ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED1Ev[_ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED1Ev]' of /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../libboost_graph.a(read_graphviz_new.o): defined in discarded section `.text._ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED5Ev]' of /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../libboost_graph.a(read_graphviz_new.o)
`.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEED2Ev' referenced in section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEED1Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEED1Ev]' of /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../libboost_graph.a(read_graphviz_new.o): defined in discarded section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEED2Ev[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEED5Ev]' of /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../libboost_graph.a(read_graphviz_new.o)

PS: could somebody tell me how to revert to gcc 4.6 ?
Comment by Allan McRae (Allan) - Wednesday, 04 April 2012, 13:39 GMT
@Ionut: I know that this is already rebuilt for the icu rebuild but is that going to enter the repos soon enough?
Comment by Ionut Biru (wonder) - Wednesday, 04 April 2012, 13:43 GMT
not soon enough. I'll rebuild again for extra and push a pkgrel=1.1 package.

Loading...