Boost logo

Boost :

Subject: Re: [boost] Clang on Windows
From: John Maddock (jz.maddock_at_[hidden])
Date: 2018-03-09 20:02:27


> The clang-win toolset is known to be broken. I don't
> know if it ever worked. I believe that clang-linux
> (using regular clang, not clang-cl) works for most
> platforms other than OSX. (Yes, I know, cleaning up
> this mess is on my todo list.)

Using:

using clang : : "C:/Program Files/LLVM/bin/clang-cl.exe" :
<compatibility>vc14.1 ;

Results in:

$ ../../../b2 config_info clang
C:\cygwin64\home\John\user-config.jam:47: Unescaped special character in
argument <cxxflags>-std:c++latest
..\..\..\libs\log\build\Jamfile.v2:45: Unescaped special character in
argument <define>$(flag)=1
M:/data/boost/boost/tools/build/src/build\configure.jam:288: in
try-find-build
*** argument error
* rule log-check-result ( result )
* called with: (  )
* missing argument result
M:/data/boost/boost/tools/build/src/build\configure.jam:86:see
definition of rule 'log-check-result' being called
M:/data/boost/boost/tools/build/src/build\configure.jam:391: in
find-builds-raw
M:/data/boost/boost/tools/build/src/build\configure.jam:450: in
configure.find-builds
M:/data/boost/boost\boostcpp.jam:734: in boostcpp.deduce-address-model
M:/data/boost/boost/tools/build/src/kernel\modules.jam:107: in
modules.call-in
M:/data/boost/boost/tools/build/src/util\indirect.jam:105: in indirect.call
M:/data/boost/boost/tools/build/src/build\property.jam:144: in
property.evaluate-conditionals-in-context
M:/data/boost/boost/tools/build/src/build\targets.jam:1087: in
evaluate-requirements
M:/data/boost/boost/tools/build/src/build\targets.jam:1121: in
common-properties2
M:/data/boost/boost/tools/build/src/build\targets.jam:1017: in
targets.common-properties
M:/data/boost/boost/tools/build/src/build\targets.jam:1313: in
class_at_basic-target.generate
M:/data/boost/boost/tools/build/src/build\targets.jam:812: in
generate-really
M:/data/boost/boost/tools/build/src/build\targets.jam:784: in
class_at_main-target.generate
M:/data/boost/boost/tools/build/src\build-system.jam:797: in load
M:\data\boost\boost\tools\build\src/kernel\modules.jam:295: in import
M:\data\boost\boost\tools\build\src/kernel/bootstrap.jam:139: in boost-build
M:\data\boost\boost\boost-build.jam:17: in module scope

Using:

using clang : : "C:/Program Files/LLVM/bin/clang.exe" ;

Does indeed seem to work OK, and as far as I can tell it's clang on top
of msvc-14.1.

> They're harmless for now, but will break
> at some unspecified time in the future, when
> I switch to the new lexer.

It would help a lot if the message said which characters were special
and need escaping.

Thanks, John.

---
This email has been checked for viruses by AVG.
http://www.avg.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk