Building boost without memory-mapped IO

Dmitry Grigoryev

I'm trying to build boost 1.71 for a platform which doesn't have mmap/munmap (Nintendo Switch with devkitPro toolchain). The build fails because there is no <sys/mman.h> file.

How do I configure boost to disable memory-mapped IO? I have checked boost/config/user.hpp but there seems to be no relevant options in there.

sehe

For Header-Only Use:

Make sure

  • BOOST_CONTEXT_USE_MAP_STACK is not defined

  • avoid including context/posix/protected_fixedsize_stack.hpp. (header guard BOOST_CONTEXT_PROTECTED_FIXEDSIZE_H)

  • avoid including coroutine/posix/protected_stack_allocator.hpp. (header guard BOOST_COROUTINES_PROTECTED_STACK_ALLOCATOR_H)

  • BOOST_SPIRIT_FILEITERATOR_POSIX is not defined if you use Spirit Classic

  • Don't use Boost Interprocess shared memory/mapped files. interprocess/anonymous_shared_memory.hpp, interprocess/shared_memory_object.hpp, interprocess/mapped_region.hpp)

    There seems to potentially be a way to (de)configure some of the for BOost Interprocess but I don't know what sets defined(BOOST_INTERPROCESS_POSIX_SHARED_MEMORY_OBJECTS) and it looks like it doesn't cover all uses anyways

For Library Compilation

The list is going to include all the above and anything that transitively depends on them.

This could be a lot, but I haven't traced them. So maybe you are in luck for the libraries you are after

The following direct dependencies can be tweaked though:

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Linking boost memory mapped files

Estimating size required for memory mapped boost rtree

Is boost memory mapped file zeroed on Linux

c++ boost write memory mapped file

Why do we need memory mapped IO?

Building boost without-icu

What exactly is memory mapped io and port based io

Boost Memory Mapped File : Read-Write Access

Read till end of a boost memory mapped file in VC++

How to seek stream pointer of a memory mapped file(using boost)?

Growing Boost.Interprocess memory mapped file with single writer

What is the benefit of calling ioread functions when using memory mapped IO

What is the difference between DMA and memory-mapped IO?

How to do memory mapped IO on custom data types?

How to flush memory-mapped files using Boost's `mapped_file_sink` class?

How to properly access mapped memory without undefined behavior in C++

Resize a memory mapped file on windows without invalidating pointers

Memory mapped IO - how does IO device know value has changed?

Does it take longer to read memory-mapped IO than regular memory on a microcontroller?

Are there cross-platform ways to promote prefetching for reading a large Boost memory mapped_file?

I am trying to create a C++ map with a vector value inside a boost memory mapped file

Why does Java memory mapped buffer cause massive unexpected disk IO?

Setting up a dummy memory mapped IO in Embedded Unit-Tests with a template-based API

Ensure memory mapped page is in memory

Memory mapped equivalent for FirefoxOS

Memory Mapped File location

Linux memory mapped files

What are memory mapped files?

Truncate memory mapped file

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive