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

win + pure clang (not clang-cl) build error #46

Closed
egorpugin opened this issue Feb 7, 2020 · 4 comments
Closed

win + pure clang (not clang-cl) build error #46

egorpugin opened this issue Feb 7, 2020 · 4 comments

Comments

@egorpugin
Copy link

Error:

d:\dev\cppan2\client2\.sw\rsp>8169297309854606892.bat -w
[sw.client.manager-0.4.0]/src/sw/manager/source.cpp
In file included from D:/dev/cppan2/client2/src/sw/manager/source.cpp:12:
In file included from D:/dev/cppan2/client2/.s/pkg/07/63/651e/src/sdir/src/date_time/include\primitives/date_time.h:9:
In file included from D:/dev/cppan2/client2/.s/pkg/d5/f9/3578/src/sdir/include\boost/date_time/posix_time/posix_time.hpp:24:
In file included from D:/dev/cppan2/client2/.s/pkg/d5/f9/3578/src/sdir/include\boost/date_time/posix_time/time_formatters.hpp:12:
In file included from D:/dev/cppan2/client2/.s/pkg/d5/f9/3578/src/sdir/include\boost/date_time/gregorian/gregorian.hpp:31:
In file included from D:/dev/cppan2/client2/.s/pkg/d5/f9/3578/src/sdir/include\boost/date_time/gregorian/gregorian_io.hpp:16:
In file included from D:/dev/cppan2/client2/.s/pkg/d5/f9/3578/src/sdir/include\boost/date_time/date_facet.hpp:17:
In file included from D:/dev/cppan2/client2/.s/pkg/f7/7f/7cb2/src/sdir/include\boost/algorithm/string/replace.hpp:16:
In file included from D:/dev/cppan2/client2/.s/pkg/7d/f2/028d/src/sdir/include\boost/range/iterator_range_core.hpp:27:
In file included from D:/dev/cppan2/client2/.s/pkg/c0/af/5f1e/src/sdir/include\boost/iterator/iterator_facade.hpp:11:
In file included from D:/dev/cppan2/client2/.s/pkg/c0/af/5f1e/src/sdir/include\boost/iterator/interoperable.hpp:11:
In file included from D:/dev/cppan2/client2/.s/pkg/3d/f2/f30f/src/sdir/include\boost/mpl/or.hpp:43:
D:/dev/cppan2/client2/.s/pkg/3d/f2/f30f/src/sdir/include\boost/mpl/aux_/include_preprocessed.hpp:37:13: fatal error: 'boost/mpl/aux_/preprocessed/plain/||.hpp' file not found
#   include BOOST_PP_STRINGIZE(boost/mpl/aux_/preprocessed/AUX778076_PREPROCESSED_HEADER)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/dev/cppan2/client2/.s/pkg/ba/e0/f079/src/sdir/include\boost/preprocessor/stringize.hpp:28:38: note: expanded from macro 'BOOST_PP_STRINGIZE'
#    define BOOST_PP_STRINGIZE(text) BOOST_PP_STRINGIZE_I(text)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
D:/dev/cppan2/client2/.s/pkg/ba/e0/f079/src/sdir/include\boost/preprocessor/stringize.hpp:32:36: note: expanded from macro 'BOOST_PP_STRINGIZE_I'
# define BOOST_PP_STRINGIZE_I(...) #__VA_ARGS__
                                   ^~~~~~~~~~~~
<scratch space>:104:1: note: expanded from here
"boost/mpl/aux_/preprocessed/plain/||.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

This is caused by following line in files: and.hpp, bitand.hpp, or.hpp, bitor.hpp:

#if defined(_MSC_VER) && !defined(__clang__)

This is not true anymore today. Commenting out the second conditions helps.
Pure clang defines _MSC_VER plus __clang__ on windows.

@Milerius
Copy link

This need to be solved urgently

@Kojoley
Copy link
Contributor

Kojoley commented Apr 3, 2020

@Milerius MPL has no dedicated maintainer and the issue is not a regression, you best bet is to develop a fix and file it via pull request

matbech added a commit to matbech/mpl that referenced this issue May 9, 2020
@eldiener
Copy link
Contributor

This is for clang on Windows targeting vc++. I have clang on Windows targeting vc++ and am able to test this using a the clang-win.jam file, but I need a simple example to test this issue. If just run the mpl tests with clang-win and the latest clang-10.0 on Windows targeting vc++ I see no failures in the tests. Please give a command line and some code where this bug is manifest. Whatever is the code you give in your initial post above I have no idea what is being compiled and what trhe clang command line is.

@egorpugin
Copy link
Author

Seems this was fixed with newer boost.
The fix is in this commit matbech@d5fc194

jeking3 pushed a commit to matbech/mpl that referenced this issue May 1, 2022
jeking3 pushed a commit that referenced this issue May 1, 2022
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

4 participants