Arch Linux

Please read this before reporting a bug:

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!

FS#7286 - boost library include broken with gcc 4.2

Attached to Project: Arch Linux
Opened by tardo (tardo) - Sunday, 27 May 2007, 20:24 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 30 May 2007, 12:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.05 Duke
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When trying to build rb_libtorrent (from AUR) this is the error message I get:

In file included from /usr/include/boost/detail/atomic_count.hpp:97,
from ../include/libtorrent/peer_connection.hpp:55,
from allocate_resources.cpp:53:
/usr/include/boost/detail/atomic_count_gcc.hpp:20:28: error: bits/atomicity.h: No such file or directory
make[1]: *** [allocate_resources.lo] Error 1
make[1]: Leaving directory `/var/tmp/aurbuild/build/rb_libtorrent.27863/rb_libtorrent/src/libtorrent-0.12/src'
make: *** [all-recursive] Error 1

After poking around, atomicity.h has been moved from bits/atomicity.h to ext/atomicity.h (this file belongs to gcc 4.2)

The affected file that needs to be changed is /usr/include/boost/detail/atomic_count_gcc.hpp on line 20. Changing to ext/atomicity.h fixed the compile problem.
This task depends upon

This task blocks these from closing
 FS#7295 - gcc 4.2/glibc 2.6 migration bugs 
Closed by  Jan de Groot (JGC)
Wednesday, 30 May 2007, 12:22 GMT
Reason for closing:  Fixed