Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile with boost super project develop branch #18

Closed
mborland opened this issue Jan 18, 2024 · 2 comments
Closed

Fails to compile with boost super project develop branch #18

mborland opened this issue Jan 18, 2024 · 2 comments

Comments

@mborland
Copy link
Member

This no longer compiles due to the use of deprecated and now removed APIs.

[1] gcc-9
[2] gcc-9/release/link-static/visibility-hidden
...patience...
...found 3016 targets...
...updating 47 targets...
gcc.compile.c++ ../../../bin.v2/tools/inspect/build/gcc-9/release/link-static/ascii_check.o
In file included from ../../../tools/inspect/ascii_check.hpp:12,
                 from ../../../tools/inspect/ascii_check.cpp:11:
../../../tools/inspect/inspector.hpp: In function 'std::string boost::inspect::relative_to(const boost::filesystem::path&, const boost::filesystem::path&)':
../../../tools/inspect/inspector.hpp:95:12: error: 'class boost::filesystem::path' has no member named 'normalize'
   95 |       base.normalize();
      |            ^~~~~~~~~
../../../tools/inspect/inspector.hpp:98:11: error: 'class boost::filesystem::path' has no member named 'normalize'
   98 |       src.normalize();
      |           ^~~~~~~~~

    "g++"   -m64 -O3 -finline-functions -Wno-inline -Wall -std=gnu++14 -DBOOST_ALL_NO_LIB=1 -DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_HAS_ICU=1 -DNDEBUG   -I"../../.." -I"/usr/include"  -c -o "../../../bin.v2/tools/inspect/build/gcc-9/release/link-static/ascii_check.o" "../../../tools/inspect/ascii_check.cpp"

...failed gcc.compile.c++ ../../../bin.v2/tools/inspect/build/gcc-9/release/link-static/ascii_check.o...

The support for normalize was removed here:

boostorg/filesystem@5df060e

mborland referenced this issue in boostorg/filesystem Jan 18, 2024
Removed APIs that were marked as deprecated a long time ago. Disabled
by default support for path construction, assignment and appending from
container types. Users can still enable this functionality by defining
BOOST_FILESYSTEM_DEPRECATED.

Updated docs, tests and examples accordingly.
@pdimov
Copy link
Member

pdimov commented Jan 18, 2024

Should be fixed by 60696d3.

@mborland
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants