[git] boost/config/user.hpp not found when building
There seem to be a problem with copying of submodule headers when building boost from git on Windows. I get a _lot_ of "error C1083: Cannot open include file: 'boost/config/user.hpp': No such file or directory" when attempting to build Boost with VS2012. Manual copying of user.hpp (as well as other "missing" headers) does solve the problem, but this should not be necessary. Steps to reproduce: 1: Create a clean Boost git working-copy with all submodules. 2: bootstrap.bat 3: b2 link=shared runtime-link=shared variant=debug toolset=msvc-11.0 Any ideas for how to avoid this problem? Thanks in advance, Fredrik Orderud
Hi Fredrik, On Sunday, 15. December 2013 16:06:04 Fredrik Orderud wrote:
There seem to be a problem with copying of submodule headers when building boost from git on Windows. I get a _lot_ of "error C1083: Cannot open include file: 'boost/config/user.hpp': No such file or directory" when attempting to build Boost with VS2012. Manual copying of user.hpp (as well as other "missing" headers) does solve the problem, but this should not be necessary.
Right. This is handled by b2, though not automagically right now.
Steps to reproduce: 1: Create a clean Boost git working-copy with all submodules. 2: bootstrap.bat
You are missing 2a: b2 headers
3: b2 link=shared runtime-link=shared variant=debug toolset=msvc-11.0
Any ideas for how to avoid this problem?
See the documentation at https://svn.boost.org/trac/boost/wiki/TryModBoost for furhter details. Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold@gmx.eu ! Germany
On Sun, Dec 15, 2013 at 4:22 PM, Jürgen Hunold
On Sunday, 15. December 2013 16:06:04 Fredrik Orderud wrote:
There seem to be a problem with copying of submodule headers when building boost from git on Windows. I get a _lot_ of "error C1083: Cannot open include file: 'boost/config/user.hpp': No such file or directory" when attempting to build Boost with VS2012. Manual copying of user.hpp (as well as other "missing" headers) does solve the problem, but this should not be necessary.
Right. This is handled by b2, though not automagically right now.
Steps to reproduce: 1: Create a clean Boost git working-copy with all submodules. 2: bootstrap.bat
You are missing
2a: b2 headers
3: b2 link=shared runtime-link=shared variant=debug toolset=msvc-11.0
Any ideas for how to avoid this problem?
See the documentation at
https://svn.boost.org/trac/boost/wiki/TryModBoost
for furhter details.
Thanks a lot Jürgen. It would be great if b2 could be improved to do this automatically. Fredrik
AMDG On 12/15/2013 07:58 AM, Fredrik Orderud wrote:
On Sun, Dec 15, 2013 at 4:22 PM, Jürgen Hunold
wrote: On Sunday, 15. December 2013 16:06:04 Fredrik Orderud wrote:
There seem to be a problem with copying of submodule headers when building boost from git on Windows. I get a _lot_ of "error C1083: Cannot open include file: 'boost/config/user.hpp': No such file or directory" when attempting to build Boost with VS2012. Manual copying of user.hpp (as well as other "missing" headers) does solve the problem, but this should not be necessary.
Right. This is handled by b2, though not automagically right now.
<snip> Thanks a lot Jürgen.
It would be great if b2 could be improved to do this automatically.
The reason boost/config/user.hpp is a problem is that the #include scanner isn't finding it, because it's #included through a macro. In Christ, Steven Watanabe
Steven Watanabe wrote:
The reason boost/config/user.hpp is a problem is that the #include scanner isn't finding it, because it's #included through a macro.
Perhaps if we change the logic from:
// if we don't have a user config, then use the default location:
#if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG)
# define BOOST_USER_CONFIG
AMDG On 12/16/2013 09:08 AM, Peter Dimov wrote:
Steven Watanabe wrote:
The reason boost/config/user.hpp is a problem is that the #include scanner isn't finding it, because it's #included through a macro.
Perhaps if we change the logic from:
<snip>
to:
// if we don't have a user config, then use the default location: #if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG) # include
#elif defined(BOOST_USER_CONFIG) # include BOOST_USER_CONFIG #endif that would help?
It should.
What other cases are there of the scanner missing an include? The rest of config.hpp seems to be OK, at first glance.
Anything that uses BOOST_PP_ITERATE may be an issue. Actually, bcp had this same problem, so we can probably look at its list. In Christ, Steven Watanabe
participants (5)
-
Fredrik Orderud
-
John Maddock
-
Jürgen Hunold
-
Peter Dimov
-
Steven Watanabe