Andrey Semashev wrote:
If you're building Boost from git, you should run `./b2 headers` before building Boost.
The output you posted is missing the actual compilation errors for these files. Check the earlier compiler messages for these files. Or run `./b2 -j8 --with-filesystem` to build specifically Boost.Filesystem and see the output.
Ok, I added `./b2 headers` before `./b2 -j8 install` which didn't change
anything that I could see. `./b2 -j8 --with-filesystem` then gave me this:
...patience...
...found 3209 targets...
...updating 46 targets...
boost-install.generate-cmake-config-
bin.v2/libs/headers/build/stage/boost_headers-config.cmake
boost-install.generate-cmake-config-
bin.v2/libs/filesystem/build/stage/boost_filesystem-config.cmake
boost-install.generate-cmake-config-version-
bin.v2/libs/headers/build/stage/boost_headers-config-version.cmake
common.copy /home/ted/git/boost/stage/lib/libboost_atomic.so.1.85.0
ln-UNIX /home/ted/git/boost/stage/lib/libboost_atomic.so
boost-install.generate-cmake-config-
bin.v2/libs/atomic/build/stage/boost_atomic-config.cmake
boost-install.generate-cmake-config-version-
bin.v2/libs/atomic/build/stage/boost_atomic-config-version.cmake
common.copy /home/ted/git/boost/stage/lib/libboost_atomic.a
common.copy
/home/ted/git/boost/stage/lib/cmake/BoostDetectToolset-1.85.0.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_filesystem-1.85.0/boost_filesystem-config.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/Boost-1.85.0/BoostConfig.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/Boost-1.85.0/BoostConfigVersion.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_headers-1.85.0/boost_headers-config.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_headers-1.85.0/boost_headers-config-version.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_atomic-1.85.0/boost_atomic-config-version.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_atomic-1.85.0/libboost_atomic-variant-shared.cmake
boost-install.generate-cmake-config-version-
bin.v2/libs/filesystem/build/stage/boost_filesystem-config-version.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_atomic-1.85.0/boost_atomic-config.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_atomic-1.85.0/libboost_atomic-variant-static.cmake
common.copy
/home/ted/git/boost/stage/lib/cmake/boost_filesystem-1.85.0/boost_filesystem-config-version.cmake
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/unique_path.o
libs/filesystem/src/unique_path.cpp:57:10: fatal error:
boost/scope/unique_fd.hpp: No such file or directory
57 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
"g++" -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3
-finline-functions -Wno-inline -Wall -fvisibility=hidden
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1
-DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_FILESYSTEM_HAS_DIRENT_D_TYPE -DBOOST_FILESYSTEM_HAS_FALLOCATE
-DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW
-DBOOST_FILESYSTEM_HAS_INIT_PRIORITY
-DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS -DBOOST_FILESYSTEM_HAS_STATX
-DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE
-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_FILESYSTEM_SOURCE
-DNDEBUG -I"." -I"libs/filesystem/src" -c -o
"bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/unique_path.o"
"libs/filesystem/src/unique_path.cpp"
...failed gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/unique_path.o...
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/unique_path.o
libs/filesystem/src/unique_path.cpp:57:10: fatal error:
boost/scope/unique_fd.hpp: No such file or directory
57 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
"g++" -fvisibility-inlines-hidden -m64 -pthread -O3
-finline-functions -Wno-inline -Wall -fvisibility=hidden
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1
-DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_HAS_DIRENT_D_TYPE
-DBOOST_FILESYSTEM_HAS_FALLOCATE
-DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW
-DBOOST_FILESYSTEM_HAS_INIT_PRIORITY
-DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS -DBOOST_FILESYSTEM_HAS_STATX
-DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE
-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_FILESYSTEM_SOURCE
-DBOOST_FILESYSTEM_STATIC_LINK=1 -DNDEBUG -I"."
-I"libs/filesystem/src" -c -o
"bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/unique_path.o"
"libs/filesystem/src/unique_path.cpp"
...failed gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/unique_path.o...
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/directory.o
libs/filesystem/src/directory.cpp:42:10: fatal error:
boost/scope/unique_fd.hpp: No such file or directory
42 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
"g++" -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3
-finline-functions -Wno-inline -Wall -fvisibility=hidden
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1
-DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_FILESYSTEM_HAS_DIRENT_D_TYPE -DBOOST_FILESYSTEM_HAS_FALLOCATE
-DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW
-DBOOST_FILESYSTEM_HAS_INIT_PRIORITY
-DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS -DBOOST_FILESYSTEM_HAS_STATX
-DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE
-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_FILESYSTEM_SOURCE
-DNDEBUG -I"." -I"libs/filesystem/src" -c -o
"bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/directory.o"
"libs/filesystem/src/directory.cpp"
...failed gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/directory.o...
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/directory.o
libs/filesystem/src/directory.cpp:42:10: fatal error:
boost/scope/unique_fd.hpp: No such file or directory
42 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
"g++" -fvisibility-inlines-hidden -m64 -pthread -O3
-finline-functions -Wno-inline -Wall -fvisibility=hidden
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1
-DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_HAS_DIRENT_D_TYPE
-DBOOST_FILESYSTEM_HAS_FALLOCATE
-DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW
-DBOOST_FILESYSTEM_HAS_INIT_PRIORITY
-DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS -DBOOST_FILESYSTEM_HAS_STATX
-DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE
-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_FILESYSTEM_SOURCE
-DBOOST_FILESYSTEM_STATIC_LINK=1 -DNDEBUG -I"."
-I"libs/filesystem/src" -c -o
"bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/directory.o"
"libs/filesystem/src/directory.cpp"
...failed gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/directory.o...
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/operations.o
libs/filesystem/src/operations.cpp:120:10: fatal error:
boost/scope/unique_fd.hpp: No such file or directory
120 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
"g++" -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3
-finline-functions -Wno-inline -Wall -fvisibility=hidden
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1
-DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_FILESYSTEM_HAS_DIRENT_D_TYPE -DBOOST_FILESYSTEM_HAS_FALLOCATE
-DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW
-DBOOST_FILESYSTEM_HAS_INIT_PRIORITY
-DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS -DBOOST_FILESYSTEM_HAS_STATX
-DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE
-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_FILESYSTEM_SOURCE
-DNDEBUG -I"." -I"libs/filesystem/src" -c -o
"bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/operations.o"
"libs/filesystem/src/operations.cpp"
...failed gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/operations.o...
...skipped
libboost_filesystem.so.1.85.0
for lack of
directory.o...
...skipped libboost_filesystem.so.1.85.0
for lack of
libboost_filesystem.so.1.85.0...
...skipped libboost_filesystem.so for
lack of
libboost_filesystem.so.1.85.0...
...skipped
libboost_filesystem-variant-shared.cmake
for lack of
libboost_filesystem.so.1.85.0...
...skipped
libboost_filesystem-variant-shared.cmake
for lack of
libboost_filesystem-variant-shared.cmake...
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/operations.o
libs/filesystem/src/operations.cpp:120:10: fatal error:
boost/scope/unique_fd.hpp: No such file or directory
120 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
"g++" -fvisibility-inlines-hidden -m64 -pthread -O3
-finline-functions -Wno-inline -Wall -fvisibility=hidden
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1
-DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_HAS_DIRENT_D_TYPE
-DBOOST_FILESYSTEM_HAS_FALLOCATE
-DBOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW
-DBOOST_FILESYSTEM_HAS_INIT_PRIORITY
-DBOOST_FILESYSTEM_HAS_POSIX_AT_APIS -DBOOST_FILESYSTEM_HAS_STATX
-DBOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE
-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF -DBOOST_FILESYSTEM_SOURCE
-DBOOST_FILESYSTEM_STATIC_LINK=1 -DNDEBUG -I"."
-I"libs/filesystem/src" -c -o
"bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/operations.o"
"libs/filesystem/src/operations.cpp"
...failed gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/operations.o...
...skipped
libboost_filesystem.a(clean)
for lack of
directory.o...
...skipped
libboost_filesystem.a
for lack of
directory.o...
...skipped libboost_filesystem.a for
lack of
libboost_filesystem.a...
...skipped
libboost_filesystem-variant-static.cmake
for lack of
libboost_filesystem.a...
...skipped
libboost_filesystem-variant-static.cmake
for lack of
libboost_filesystem-variant-static.cmake...
...updated 30 targets...
...skipped 10 targets...
libboost_filesystem-variant-shared.cmake
libboost_filesystem-variant-static.cmake
libboost_filesystem.a
libboost_filesystem.so
libboost_filesystem.so.1.85.0
libboost_filesystem-variant-static.cmake
libboost_filesystem.a
libboost_filesystem.a(clean)
libboost_filesystem-variant-shared.cmake
libboost_filesystem.so.1.85.0
...failed updating 6 targets...
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/directory.o
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/operations.o
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/link-static/threading-multi/visibility-hidden/unique_path.o
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/directory.o
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/operations.o
gcc.compile.c++
bin.v2/libs/filesystem/build/gcc-14/release/threading-multi/visibility-hidden/unique_path.o