[build2] Using build2 with clang 6 (trunk) on windows

Username I Wanted Was Already Taken usernameiwantedwasalreadytaken at gmail.com
Mon Dec 4 11:41:55 UTC 2017


Hi,

First of all thanks for the great work with Build2. I'm starting using it,
but it seems a great tool.

I am trying to compile a simple hello sample on windows. I have MSVC
Community 2017 and Clang 6 (built from source) installed.

When I compile with msvc, everything works fine. But when I try to use
Clang, I get this:

C:\Tests\Build2\hello\clang-6>b
../hello/build\root.build:3:7: error: cc and bin module target mismatch
  info: cc.target is x86_64-windows-msvc
  info: bin.target is x86_64-windows-msvc

Am I doing anything wrong?

P.S.: Sending the compressed project in the attachment, as well as my
configurations.

Regards,
Jack




P.P.S: For more info:

C:\Tests\Build2\hello\clang-6>b -V
clang++ -v
clang++ -dumpmachine
clang++ -print-search-dirs
clang++ -x c++ -v -E -
cxx hello at C:\Tests\Build2\hello\clang-6\
  cxx        clang++ at C:\LLVM\build\bin\clang++.exe
  id         clang
  version    6.0.0 (https://llvm.org/git/clang.git
cc7a941bdff8c4f38c2bdaa94b6136b1a8f97afa) (https://llvm.org/git/llvm.git
ff7724479284555eb1d624c9e19e285408f1f45a)
  major      6
  minor      0
  patch      0
  build      (https://llvm.org/git/clang.git
cc7a941bdff8c4f38c2bdaa94b6136b1a8f97afa) (https://llvm.org/git/llvm.git
ff7724479284555eb1d624c9e19e285408f1f45a)
  signature  clang version 6.0.0 (https://llvm.org/git/clang.git
cc7a941bdff8c4f38c2bdaa94b6136b1a8f97afa) (https://llvm.org/git/llvm.git
ff7724479284555eb1d624c9e19e285408f1f45a)
  checksum
 1e14baef11417d52df424fd3528c580500e7d020e7ca841bbf6660cd6cc2da5e
  target     x86_64-windows-msvc (x86_64-pc-windows-msvc)
  inc dirs
    C:\LLVM\build\lib\clang\6.0.0\include\
    C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\
    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\
    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\
    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt\
  lib dirs
    C:\LLVM\build\lib\clang\6.0.0\
bin hello at C:\Tests\Build2\hello\clang-6\
  target     x86_64-windows-msvc
../hello/build\root.build:1:7: error: cc and bin module target mismatch
  info: cc.target is x86_64-windows-msvc
  info: bin.target is x86_64-windows-msvc
info: scheduler statistics:

  thread_max_active      8
  thread_max_total       64
  thread_helpers         0
  thread_max_waiting     0

  task_queue_depth       32
  task_queue_full        0

  wait_queue_slots       31
  wait_queue_collisions  0


C:\Tests\Build2\hello\msvc-17>b
c++ ../hello/cxx{hello}
ld exe{hello}

C:\Tests\Build2\hello\msvc-17>hello
Hello

C:\Tests\Build2\hello\msvc-17>b --version
build2 0.7.0-a.0.9c2d5db91cf075b8
libbutl 0.7.0-a.0.d3a648d5b746cecb
host i386-microsoft-win32-msvc14.1
Copyright (c) 2014-2017 Code Synthesis Ltd
This is free software released under the MIT license.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20171204/683e314c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.tar.gz
Type: application/x-gzip
Size: 680 bytes
Desc: not available
URL: <https://lists.build2.org/archives/users/attachments/20171204/683e314c/attachment.bin>


More information about the users mailing list