faithfracture / Apple-Boost-BuildScript

Script for building Boost for Apple platforms (iOS, iOS Simulator, tvOS, tvOS Simulator, OS X)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

May be my configuration error!

KeeganRen opened this issue · comments

./boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found

-osx

Need more information than this. Which version of boost? Is -osx the only parameter you passed? What libraries are you building?

I seriously doubt this is a problem with this script. It looks like a configuration problem with your system. cstddef is part of the C++ standard library. Can you compile a hello world program including cstddef?

OS X EI Captian Version 10.11.6
Boost is boost_1_61_0.tar.bz2
use XCode compile helloworld is OK
and use you shell, compile iOS is OK, --------> ./boost.sh -ios
but -osx is error. -------> ./boost.sh -osx

Performing configuration checks

- 32-bit                   : no
- 64-bit                   : yes
- arm                      : no
- mips1                    : no
- power                    : no
- sparc                    : no
- x86                      : yes
- symlinks supported       : yes
- lockfree boost::atomic_flag : no

Component configuration:

- atomic                   : building
- chrono                   : building
- container                : not building
- context                  : not building
- coroutine                : not building
- coroutine2               : not building
- date_time                : building
- exception                : building
- filesystem               : building
- graph                    : not building
- graph_parallel           : not building
- iostreams                : not building
- locale                   : not building
- log                      : not building
- math                     : not building
- metaparse                : not building
- mpi                      : not building
- program_options          : building
- python                   : not building
- random                   : building
- regex                    : not building
- serialization            : not building
- signals                  : building
- system                   : building
- test                     : building
- thread                   : building
- timer                    : not building
- type_erasure             : not building
- wave                     : not building

clang-darwin.compile.c++ osx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi/error_code.o
In file included from libs/system/src/error_code.cpp:16:
In file included from ./boost/system/error_code.hpp:14:
In file included from ./boost/system/config.hpp:13:
In file included from ./boost/config.hpp:44:
./boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
include cstddef
^
1 error generated.

"clang++" -x c++ -std=c++11 -stdlib=libc++  -arch x86_64 -O3 -O3 -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "osx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi/error_code.o" "libs/system/src/error_code.cpp"

...failed clang-darwin.compile.c++ osx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi/error_code.o...
...skipped <posx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi>libboost_system.a(clean) for lack of <posx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi>error_code.o...
...skipped <posx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi>libboost_system.a for lack of <posx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi>error_code.o...
...skipped <posx-build/stage/lib>libboost_system.a for lack of <posx-build/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi>libboost_system.a...
clang-darwin.compile.c++ osx-build/boost/bin.v2/libs/atomic/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi/lockpool.o
libs/atomic/src/lockpool.cpp:15:10: fatal error: 'cstddef' file not found
include cstddef
^
1 error generated.

"clang++" -x c++ -std=c++11 -stdlib=libc++  -arch x86_64 -O3 -O3 -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_SOURCE -DBOOST_ATOMIC_STATIC_LINK=1 -DNDEBUG -I"." -c -o "osx-build/boost/bin.v2/libs/atomic/build/clang-darwin-4.2.1/release/link-static/macosx-version-10.11/threading-multi/lockpool.o" "libs/atomic/src/lockpool.cpp"

Were you able determine whether or not this was a system configuration error or a bug with the script?