FS#36564 - [glibc] 2.18-1 after update cannot compile boost atomic library

Attached to Project: Arch Linux
Opened by Roman Matsybora (matsic) - Friday, 16 August 2013, 13:50 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Sunday, 18 August 2013, 16:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

After update glibc from 2.17-5 to 2.18-1 boost atomic library cannot be compiled with gcc or clang compilers.

/***** LOG ********************
compile.c++.without-pth ../bin.v2/libs/atomic/build/clang-linux-3.3/release/threading-multi/lockpool.o
In file included from ../libs/atomic/src/lockpool.cpp:1:
In file included from ../boost/atomic.hpp:12:
../boost/atomic/atomic.hpp:166:16: error: unknown type name 'uintptr_t'; did you mean 'intptr_t'?
typedef atomic<uintptr_t> atomic_uintptr_t;
^~~~~~~~~
intptr_t
/usr/include/unistd.h:267:20: note: 'intptr_t' declared here
typedef __intptr_t intptr_t;
^
1 error generated.
/**************************

May be it's not glibc but on of pakages:
warning: downgrading package glibc (2.18-1 => 2.17-5)
warning: downgrading package valgrind (3.8.1-3 => 3.8.1-2)
warning: downgrading package binutils (2.23.2-3 => 2.23.2-2)

Downgrading glibc, valgrind and binutils can fix the problem.

Steps to reproduce:
Build boost from source
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Sunday, 18 August 2013, 16:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  boost 1.54.0-3
Comment by Allan McRae (Allan) - Friday, 16 August 2013, 21:42 GMT
  • Field changed: Category (Packages → Packages: Extra)
  • Field changed: Architecture (x86_64 → All)
  • Task reassigned to Ionut Biru (wonder)
Looks like boost needs to include the right header before it uses data types.

Loading...