Subject: [Boost-bugs] [Boost C++ Libraries] #10822: Boost.Thread fails to compile on Android
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-27 17:15:30
#10822: Boost.Thread fails to compile on Android
--------------------------+-------------------------
Reporter: ned14 | Owner: ned14
Type: Bugs | Status: new
Milestone: Boost 1.58.0 | Component: thread
Version: Boost 1.58.0 | Severity: Showstopper
Keywords: |
--------------------------+-------------------------
Unfortunately the fix for ticket #7716 of manually including asm/page.h
has broken Boost.Thread on Android for the Android 5.0 NDK:
In file included from ./boost/thread/thread_only.hpp:17:0,
from libs/thread/src/pthread/thread.cpp:11:
./boost/thread/pthread/thread_data.hpp:28:81: fatal error: asm/page.h: No
such file or directory
#include <asm/page.h> //
http://code.google.com/p/android/issues/detail?id=39983
^
compilation terminated.
This is because asm/page.h has gone away, and Android seems to dislike
defining PAGE_SIZE anywhere when getpagesize() works perfectly well.
Vicente, if it's okay with you can I hard code PAGE_SIZE to 4096 on
Android if it is not already defined by a system header? Then the problem
goes away, forever.
Niall
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10822> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC