Code Monkey home page Code Monkey logo

Comments (37)

fcharlie avatar fcharlie commented on September 21, 2024

This report say build failed clangbuilderui, Please Retry install Visual Studio 2017, maybe not install c++ tools and sdk

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

but the downloading speed is so slow ,i use downloader to have try and its download successfully and put it into msvc folderthe, but the process still running andignore the file, so what to do to make it can be recognized?

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

btw the new vs is 2017.5 or later(witch is recommend to build clang ) but the download one is 2017.4 version

so is it too old?can i use the vs 2017 (installed on system )instead? why you still use 2017.4 versions?

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

Your can use Visual Studio 2017 15.6 15.7, no problem. Clangbuilder does not limit its version

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

New Error:

Use Visual Studio  x64
不能对 Null 值表达式调用方法。
所在位置 C:\clangbuilder-master\modules\VisualStudio\VisualStudio.psm1:344 字符: 9
+     if ($vsinstance.instanceId.StartsWith("VisualStudio")) {
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [],RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

使用“1”个参数调用“Parse”时发生异常:“版本字符串部分太短或太长。”
所在位置 C:\clangbuilder-master\modules\VisualStudio\VisualStudio.psm1:364 字符: 5
+     $ver = [System.Version]::Parse($vsinstance.installationVersion)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

不能对 Null 值表达式调用方法。
所在位置 C:\clangbuilder-master\modules\VisualStudio\VisualStudio.psm1:365 字符: 5
+     $vercmp = $ver.CompareTo($FixedVer)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [],RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Update $env:VS150COMNTOOLS to: \Common7\Tools\
\VC\Auxiliary\Build\vcvarsall.bat not found
Not found valid installed visual studio.
PS C:\clangbuilder-master\bin>

error 2

BTW:what pacage in VS 2017 shall i need to install in order to run your clangbuilder? please list here thx !!

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

Please use clang-5.0 branch and
9

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

still ERROR:

Use Visual Studio  x64
不能对 Null 值表达式调用方法。
所在位置 C:\clangbuilder-clangbuilder-5.0\modules\VisualStudio\VisualStudio.psm1:347 字符: 9
+     if ($vsinstance.instanceId.StartsWith("VisualStudio")) {
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [],RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

使用“1”个参数调用“Parse”时发生异常:“版本字符串部分太短或太长。”
所在位置 C:\clangbuilder-clangbuilder-5.0\modules\VisualStudio\VisualStudio.psm1:367 字符: 5
+     $ver = [System.Version]::Parse($vsinstance.installationVersion)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

不能对 Null 值表达式调用方法。
所在位置 C:\clangbuilder-clangbuilder-5.0\modules\VisualStudio\VisualStudio.psm1:368 字符: 5
+     $vercmp = $ver.CompareTo($FixedVer)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [],RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Update $env:VS150COMNTOOLS to: \Common7\Tools\
\VC\Auxiliary\Build\vcvarsall.bat not found
Not found valid installed visual studio.
PS C:\clangbuilder-clangbuilder-5.0\bin>

error

pacage
Is Some package i missed???

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

open cmd ,go to pkgs/vswhere type:

vswhere -products * -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Component.Windows10SDK  -format json

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

it's Empty how to slove the issue????

C:\Users\Anti Chen>cd C:\clangbuilder-clangbuilder-5.0\pkgs\vswhere

C:\clangbuilder-clangbuilder-5.0\pkgs\vswhere>vswhere -products * -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Component.Windows10SDK  -format json
[]

C:\clangbuilder-clangbuilder-5.0\pkgs\vswhere>

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

Not Found Visual C++ Component installed.

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

how to slove it????I already installed the pacage as you list but why no Visual C++ Component installed??
shall I need to install the component that Marked in image below?
38160343-be8c172c-34ee-11e8-8009-2a6b3b8544b0

Or maybe not configure the Path ? Shall I need to Configure the Find Path in System Configure myself mannually?

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

C++桌面开发,Visual C++ 核心组件,不然就重新安装。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

C:\clangbuilder-clangbuilder-5.0\pkgs\vswhere>vswhere -products * -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Component.Windows10SDK -format json
[
{
"instanceId": "94872f75",
"installDate": "2018-03-31T09:02:21Z",
"installationName": "VisualStudio/15.6.4+27428.2015",
"installationPath": "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community",
"installationVersion": "15.6.27428.2015",
"productId": "Microsoft.VisualStudio.Product.Community",
"productPath": "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe",
"isPrerelease": false,
"displayName": "Visual Studio Community 2017",
"description": "适用于学生、开放源代码和个体开发人员的免费、全功能型 IDE",
"channelId": "VisualStudio.15.Release",
"channelPath": "C:\Users\Anti Chen\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\4CB340F5\catalog.json",
"channelUri": "https://aka.ms/vs/15/release/channel",
"enginePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service",
"releaseNotes": "https://go.microsoft.com/fwlink/?LinkId=660692#15.6.4",
"thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660708",
"catalog": {
"buildBranch": "d15.6",
"buildVersion": "15.6.27428.2015",
"id": "VisualStudio/15.6.4+27428.2015",
"localBuild": "build-lab",
"manifestName": "VisualStudio",
"manifestType": "installer",
"productDisplayVersion": "15.6.4",
"productLine": "Dev15",
"productLineVersion": "2017",
"productMilestone": "RTW",
"productMilestoneIsPreRelease": "False",
"productName": "Visual Studio",
"productPatchVersion": "4",
"productPreReleaseMilestoneSuffix": "1.0",
"productRelease": "RTW",
"productSemanticVersion": "15.6.4+27428.2015",
"requiredEngineVersion": "1.15.3227.4915"
},
"properties": {
"campaignId": "181557475.1522401013",
"channelManifestId": "VisualStudio.15.Release/15.6.4+27428.2015",
"nickname": "",
"setupEngineFilePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe"
}
}
]
报错如下(Error as Below):

C:\clangbuilder-clangbuilder-5.0\pkgs\vswhere>
Use Visual Studio 15.6.27428.2015 x64
Update $env:VS150COMNTOOLS to: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
Not found valid installed visual studio.
PS C:\clangbuilder-clangbuilder-5.0\bin>

1
2
3
这些能装的都装了还是不行(all these had installed but but still can't build)

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

是不是2017把路径改了所以找不到文件 或者是我用的Community 版本的事,怎么解决?
(Maybe 2017 have new Path?Or it's community version lead to the problem?and the solution is?)

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

建议重装。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

对于vcvarsall.bat的探测,vs2017以前的版本,可以通过VSXXXCOMNTOOLS环境变量来发现,例如:VS140COMNTOOLS对应 vs2015。。但是vs2017之后就没这个环境变量了,因此更加通用可靠的探测方式,是从注册表中查找,例如,vs2017的注册表项:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7;15.0)\VC\Auxiliary\Build

vs2017之前版本路径如下:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7;14.0)\VC

64bits版本,Microsoft之前再加个Wow6432Node。。

这说明vs2017之后就没这个环境变量了,所以是不是软件需要升级(改clangbuilder源代码以解决此问题)

VS2017 has reworked its directory structure and filenames. The file is no longer titled "VsVars32.bat", you should look for the file 'vcvars.bat', which can be located in ..\Program Files (x86)\Microsoft Visual Studio\2017\EDITION\Common7\Tools\vsdevcmd\ext\vcvars.bat (using Adam's syntax, replace EDITION with the version of Visual Studio you use).

For simplicity, you can use %VSAPPIDDIR% in your call to point to the IDE folder where devenv.exe is located, and go back one folder to define your path to the batch file. For example:

call "%VSAPPIDDIR%..\Tools\vsdevcmd\ext\vcvars.bat"

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

当年安装多个 Visual Studio 版本时,实际上这个注册表是无法完全体现的,cmake 也都不在使用 VS150COMNTOOLS 去搜索 Visual Studio 2017 的安装(但是一旦选择了 Visual Studio 2017 的版本, 还是会设置此环境变量。)你所说的环境变量在 Visual Studio 2017 的设置过程可能会发生覆盖,使用这个完全可能找到一个 Preview 版本的 VS2017。

你可以等以下在使用 主线版本,这里有一个比较大的更新。

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

你可以尝试下主线版本。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

主线版本需要在bin目录下新建pkgs文件夹,否则无法下载(bug:漏了个文件夹)

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

Use Visual Studio 14.0 x64
Clangbuilder Utilities Environment
为什么不是15.64
并且出了2个错误:


Use Visual Studio 14.0 x64
Clangbuilder Utilities Environment
Copyright © 2018. Force Charlie. All Rights Reserved.

Select LLVM Mainline, sources dir: C:\clangbuilder-master\out\mainline
clone https://github.com/llvm-mirror/llvm.git
Cloning into 'C:\clangbuilder-master\out\mainline'...
remote: Counting objects: 30943, done.
remote: Compressing objects: 100% (30390/30390), done.
remote: Total 30943 (delta 328), reused 28410 (delta 179), pack-reused 0
Receiving objects: 100% (30943/30943), 44.72 MiB | 343.00 KiB/s, done.
Resolving deltas: 100% (328/328), done.
Checking out files: 100% (29995/29995), done.
clone https://github.com/llvm-mirror/clang.git
Cloning into 'clang'...
remote: Counting objects: 15353, done.
remote: Compressing objects: 100% (13289/13289), done.
remote: Total 15353 (delta 1261), reused 7484 (delta 857), pack-reused 0
Receiving objects: 100% (15353/15353), 18.24 MiB | 315.00 KiB/s, done.
Resolving deltas: 100% (1261/1261), done.
Checking out files: 100% (15418/15418), done.
clone https://github.com/llvm-mirror/lld.git
Cloning into 'lld'...
remote: Counting objects: 2314, done.
remote: Compressing objects: 100% (2075/2075), done.
remote: Total 2314 (delta 409), reused 833 (delta 128), pack-reused 0
Receiving objects: 100% (2314/2314), 1.54 MiB | 189.00 KiB/s, done.
Resolving deltas: 100% (409/409), done.
Checking out files: 100% (2266/2266), done.
clone https://github.com/llvm-mirror/clang-tools-extra.git
Cloning into 'extra'...
remote: Counting objects: 1695, done.
remote: Compressing objects: 100% (1529/1529), done.
Rremote: Total 1695 (delta 279), reused 605 (delta 101), pack-reused 0
Receiving objects: 100% (1695/1695), 1.46 MiB | 210.00 KiB/s, done.
Resolving deltas: 100% (279/279), done.
clone https://github.com/llvm-mirror/compiler-rt.git
Cloning into 'compiler-rt'...
remote: Counting objects: 3025, done.
remote: Compressing objects: 100% (2738/2738), done.
remote: Total 3025 (delta 728), reused 840 (delta 242), pack-reused 0
Receiving objects: 100% (3025/3025), 3.47 MiB | 197.00 KiB/s, done.
Resolving deltas: 100% (728/728), done.
Checking out files: 100% (2915/2915), done.
clone https://github.com/llvm-mirror/libcxx.git
Cloning into 'libcxx'...
remote: Counting objects: 7402, done.
remote: Compressing objects: 100% (5321/5321), done.
remote: Total 7402 (delta 3442), reused 3268 (delta 1800), pack-reused 0
Receiving objects: 100% (7402/7402), 3.35 MiB | 270.00 KiB/s, done.
Resolving deltas: 100% (3442/3442), done.
Checking out files: 100% (6237/6237), done.
使用“2”个参数调用“Substring”时发生异常:“索引和长度必须引用该字符串内的位置。
参数名: length”
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:104 字符: 1
+ $Installation = $InstallationVersion.Substring(0, 2)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

Use llvm build engine: MSBuild
cmake -G"Visual Studio  Win64" -Thost=x64 "C:\clangbuilder-master\out\mainline" -DCMAKE_BUILD_TYPE=Release   -DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_INSTALL_UCRT_LIBRARIES=ON  -DLLVM_APPEND_VC_REV=ON C:\clangbuilder-master\out\msbuild
CMake Error: Could not create named generator Visual Studio  Win64

Generators
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 8 2005 [arch]  = Deprecated.  Generates Visual Studio 2005
                                 project files.  Optional [arch] can be
                                 "Win64".
  Borland Makefiles            = Generates Borland makefiles.
  NMake Makefiles              = Generates NMake makefiles.
  NMake Makefiles JOM          = Generates JOM makefiles.
  Green Hills MULTI            = Generates Green Hills MULTI files
                                 (experimental, work-in-progress).
  MSYS Makefiles               = Generates MSYS makefiles.
  MinGW Makefiles              = Generates a make file for use with
                                 mingw32-make.
  Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles JOM
                               = Generates CodeBlocks project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - MinGW Makefiles   = Generates CodeLite project files.
  CodeLite - NMake Makefiles   = Generates CodeLite project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - MinGW Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - NMake Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - MinGW Makefiles       = Generates Kate project files.
  Kate - NMake Makefiles       = Generates Kate project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - NMake Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - MinGW Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

Invoke-MSBuild : CMake exit: 1
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:300 字符: 21
+         $MyResult = Invoke-MSBuild
+                     ~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-MSBuild

Engine: MSBuild, Result: 1
PS C:\clangbuilder-master\out\msbuild>

错误1:

使用“2”个参数调用“Substring”时发生异常:“索引和长度必须引用该字符串内的位置。
参数名: length”
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:104 字符: 1
+ $Installation = $InstallationVersion.Substring(0, 2)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

错误2:

Invoke-MSBuild : CMake exit: 1
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:300 字符: 21
+         $MyResult = Invoke-MSBuild
+                     ~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-MSBuild

Engine: MSBuild, Result: 1
PS C:\clangbuilder-master\out\msbuild>

Error3:(不知是否这个也是个bug?)查找不到devlock.json但源文件是devlocks.json如果是BUG还望修复下

devlock

its there

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

在重装vs并重启后报错如下:

Use Visual Studio 15.6.27428.2015 x64
Update $env:VS150COMNTOOLS to: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.6.4
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Clangbuilder Utilities Environment
Copyright © 2018. Force Charlie. All Rights Reserved.

Select LLVM Mainline, sources dir: C:\clangbuilder-master\out\mainline
Update C:\clangbuilder-master\out\mainline
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 4), reused 5 (delta 4), pack-reused 0
Unpacking objects: 100% (5/5), done.
From https://github.com/llvm-mirror/llvm
 * branch              master     -> FETCH_HEAD
   c941c473..6906b1fc  master     -> origin/master
Updating c941c473..6906b1fc
Fast-forward
 tools/llvm-rtdyld/llvm-rtdyld.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Update clang
From https://github.com/llvm-mirror/clang
 * branch            master     -> FETCH_HEAD
Already up to date.
Update lld
From https://github.com/llvm-mirror/lld
 * branch            master     -> FETCH_HEAD
Already up to date.
Update extra
From https://github.com/llvm-mirror/clang-tools-extra
 * branch            master     -> FETCH_HEAD
Already up to date.
Update compiler-rt
From https://github.com/llvm-mirror/compiler-rt
 * branch            master     -> FETCH_HEAD
Already up to date.
Update libcxx
From https://github.com/llvm-mirror/libcxx
 * branch            master     -> FETCH_HEAD
Already up to date.
使用“2”个参数调用“Substring”时发生异常:“索引和长度必须引用该字符串内的位置。
参数名: length”
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:104 字符: 1
+ $Installation = $InstallationVersion.Substring(0, 2)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

Use llvm build engine: MSBuild
cmake -G"Visual Studio  Win64" -Thost=x64 "C:\clangbuilder-master\out\mainline" -DCMAKE_BUILD_TYPE=Release   -DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_INSTALL_UCRT_LIBRARIES=ON  -DLLVM_APPEND_VC_REV=ON C:\clangbuilder-master\out\msbuild
CMake Error: Could not create named generator Visual Studio  Win64

Generators
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 8 2005 [arch]  = Deprecated.  Generates Visual Studio 2005
                                 project files.  Optional [arch] can be
                                 "Win64".
  Borland Makefiles            = Generates Borland makefiles.
  NMake Makefiles              = Generates NMake makefiles.
  NMake Makefiles JOM          = Generates JOM makefiles.
  Green Hills MULTI            = Generates Green Hills MULTI files
                                 (experimental, work-in-progress).
  MSYS Makefiles               = Generates MSYS makefiles.
  MinGW Makefiles              = Generates a make file for use with
                                 mingw32-make.
  Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles JOM
                               = Generates CodeBlocks project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - MinGW Makefiles   = Generates CodeLite project files.
  CodeLite - NMake Makefiles   = Generates CodeLite project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - MinGW Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - NMake Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - MinGW Makefiles       = Generates Kate project files.
  Kate - NMake Makefiles       = Generates Kate project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - NMake Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - MinGW Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

Invoke-MSBuild : CMake exit: 1
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:300 字符: 21
+         $MyResult = Invoke-MSBuild
+                     ~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-MSBuild

Engine: MSBuild, Result: 1
PS C:\clangbuilder-master\out\msbuild>

错误1:

使用“2”个参数调用“Substring”时发生异常:“索引和长度必须引用该字符串内的位置。
参数名: length”
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:104 字符: 1
+ $Installation = $InstallationVersion.Substring(0, 2)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

错误2:

Invoke-MSBuild : CMake exit: 1
所在位置 C:\clangbuilder-master\bin\ClangbuilderTarget.ps1:300 字符: 21
+         $MyResult = Invoke-MSBuild
+                     ~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-MSBuild

Engine: MSBuild, Result: 1

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

devlocks.json 这个 bug 已经修复了,另一个错误是你的 InstallationVersion 不是合法的。也就是缺少 InstallationVersion 的时候,另外在使用 Ninja 工具构建的时候,这个问题是不存在的。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

devinstall: Use upgrade --default, will install devinstall.json#core.
devdownload: https://sourceforge.net/projects/sevenzip/files/7-Zip/18.03/7z1803-x64.msi/download ...
download failed: 未能找到路径“C:\clangbuilder-master\bin\pkgs\7z.msi”的一部分。
devdownload: https://cmake.org/files/v3.11/cmake-3.11.0-win64-x64.zip ...
download failed: 未能找到路径“C:\clangbuilder-master\bin\pkgs\cmake.zip”的一部分。
https://github.com/git-for-windows/git/releases/download/v2.16.3.windows.1/MinGit-2.16.3-busybox-64-bit.zip response time: 195.7617 ms
https://npm.taobao.org/mirrors/git-for-windows/v2.16.3.windows.1/MinGit-2.16.3-busybox-64-bit.zip response time: 33.4413 ms
devdownload: https://npm.taobao.org/mirrors/git-for-windows/v2.16.3.windows.1/MinGit-2.16.3-busybox-64-bit.zip ...
download failed: 未能找到路径“C:\clangbuilder-master\bin\pkgs\git.zip”的一部分。
devdownload: https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip ...
download failed: 未能找到路径“C:\clangbuilder-master\bin\pkgs\ninja.zip”的一部分。
devdownload: https://sourceforge.net/projects/nsis/files/NSIS%203/3.03/nsis-3.03.zip/download ...
download failed: 未能找到路径“C:\clangbuilder-master\bin\pkgs\nsis.zip”的一部分。
devdownload: https://dist.nuget.org/win-x86-commandline/v4.6.1/nuget.exe ...
bin目录下缺少pkgs文件夹希望修复下,只有新建pkgs文件夹,安装才能继续

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

devlocks.json已经在主线中修复了?
为啥还是存在?这个会导致后面的编译失败吗?
devlock
另外 InstallationVersion 不合法怎么处理(这个导致了之前的两个错误?)解决办法是重装VS2017?

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

已修复。

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

这个 Use Clean Environment 是一个干净的环境变量机制,通常说来 PATH 会被其他第三方程序修改,各种环境变量可能会互相干扰,因此提供了这么一个选项。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

Already up to date.
Update lldb

这是不是也是一个bug(会不会导致lldb安装失败?)
error: pathspec '.' did not match any file(s) known to git.

From https://github.com/llvm-mirror/llvm
 * branch              master     -> FETCH_HEAD

还有下方如此之多的Failed,会不会导致编译失败?(包括某些选项比如LLDB和exe安装包)

我的设置:
settings

Use Visual Studio 15.6.27428.2015 x64
Update $env:VS150COMNTOOLS to: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.6.4
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Clangbuilder Utilities Environment
Copyright © 2018. Force Charlie. All Rights Reserved.

Select LLVM Mainline, sources dir: C:\clangbuilder-master\out\mainline
Update C:\clangbuilder-master\out\mainline
From https://github.com/llvm-mirror/llvm
 * branch              master     -> FETCH_HEAD
Already up to date.
Update clang
From https://github.com/llvm-mirror/clang
 * branch            master     -> FETCH_HEAD
Already up to date.
Update lld
From https://github.com/llvm-mirror/lld
 * branch            master     -> FETCH_HEAD
Already up to date.
Update lldb
error: pathspec '.' did not match any file(s) known to git.
From https://github.com/llvm-mirror/llvm
 * branch              master     -> FETCH_HEAD
Already up to date.
Update extra
From https://github.com/llvm-mirror/clang-tools-extra
 * branch            master     -> FETCH_HEAD
Already up to date.
Update compiler-rt
From https://github.com/llvm-mirror/compiler-rt
 * branch            master     -> FETCH_HEAD
Already up to date.
Update libcxx
From https://github.com/llvm-mirror/libcxx
 * branch            master     -> FETCH_HEAD
Already up to date.
Use llvm build engine: Ninja
cmake.exe -GNinja "C:\clangbuilder-master\out\mainline" -DLLDB_RELOCATABLE_PYTHON=1 -DLLDB_DISABLE_PYTHON=1 -DCMAKE_BUILD_TYPE=Release   -DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_INSTALL_UCRT_LIBRARIES=ON  -DLLVM_APPEND_VC_REV=ON C:\clangbuilder-master\out\ninja
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
  The OLD behavior for policy CMP0051 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is MSVC 19.13.26129.0
-- The CXX compiler identification is MSVC 19.13.26129.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for dirent.h
-- Looking for dirent.h - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - not found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for sys/ndir.h
-- Looking for sys/ndir.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - not found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for histedit.h
-- Looking for histedit.h - not found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for compress2 in z
-- Looking for compress2 in z - not found
-- Looking for compress2 in zlib_static
-- Looking for compress2 in zlib_static - not found
-- Looking for compress2 in zlib
-- Looking for compress2 in zlib - not found
-- Looking for xar_open in xar
-- Looking for xar_open in xar - not found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - not found
-- Looking for getpagesize
-- Looking for getpagesize - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for getrusage
-- Looking for getrusage - not found
-- Looking for setrlimit
-- Looking for setrlimit - not found
-- Looking for isatty
-- Looking for isatty - not found
-- Looking for futimens
-- Looking for futimens - not found
-- Looking for futimes
-- Looking for futimes - not found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - not found
-- Looking for sigaltstack
-- Looking for sigaltstack - not found
-- Looking for lseek64
-- Looking for lseek64 - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for mkdtemp
-- Looking for mkdtemp - not found
-- Looking for mkstemp
-- Looking for mkstemp - not found
-- Looking for mktemp
-- Looking for mktemp - not found
-- Looking for getcwd
-- Looking for getcwd - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - not found
-- Looking for getrlimit
-- Looking for getrlimit - not found
-- Looking for posix_spawn
-- Looking for posix_spawn - not found
-- Looking for pread
-- Looking for pread - not found
-- Looking for realpath
-- Looking for realpath - not found
-- Looking for sbrk
-- Looking for sbrk - not found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for setenv
-- Looking for setenv - not found
-- Looking for _chsize_s
-- Looking for _chsize_s - found
-- Looking for _alloca
-- Looking for _alloca - not found
-- Looking for __alloca
-- Looking for __alloca - not found
-- Looking for __chkstk
-- Looking for __chkstk - found
-- Looking for __chkstk_ms
-- Looking for __chkstk_ms - not found
-- Looking for ___chkstk
-- Looking for ___chkstk - not found
-- Looking for ___chkstk_ms
-- Looking for ___chkstk_ms - not found
-- Looking for __ashldi3
-- Looking for __ashldi3 - not found
-- Looking for __ashrdi3
-- Looking for __ashrdi3 - not found
-- Looking for __divdi3
-- Looking for __divdi3 - not found
-- Looking for __fixdfdi
-- Looking for __fixdfdi - not found
-- Looking for __fixsfdi
-- Looking for __fixsfdi - not found
-- Looking for __floatdidf
-- Looking for __floatdidf - not found
-- Looking for __lshrdi3
-- Looking for __lshrdi3 - not found
-- Looking for __moddi3
-- Looking for __moddi3 - not found
-- Looking for __udivdi3
-- Looking for __udivdi3 - not found
-- Looking for __umoddi3
-- Looking for __umoddi3 - not found
-- Looking for __main
-- Looking for __main - not found
-- Looking for __cmpdi2
-- Looking for __cmpdi2 - not found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Looking for sched_getaffinity
-- Looking for sched_getaffinity - not found
-- Looking for CPU_COUNT
-- Looking for CPU_COUNT - not found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Failed
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Failed
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: x86_64-pc-win32
-- LLVM default target triple: x86_64-pc-win32
-- Using Release VC++ CRT: MD
-- Found PythonInterp: C:/clangbuilder-master/bin/pkgs/python2/python.exe (found version "2.7.14")
-- Constructing LLVMBuild project information
-- LLVMHello ignored -- Loadable modules not supported on this platform.
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting X86
-- Targeting XCore
-- Looking for unwind.h
-- Looking for unwind.h - not found
-- Looking for fopen in c
-- Looking for fopen in c - not found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - not found
-- Performing Test COMPILER_RT_HAS_NODEFAULTLIBS_FLAG
-- Performing Test COMPILER_RT_HAS_NODEFAULTLIBS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_STD_CXX11_FLAG
-- Performing Test COMPILER_RT_HAS_STD_CXX11_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC - Failed
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MSSE3_FLAG
-- Performing Test COMPILER_RT_HAS_MSSE3_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GR_FLAG
-- Performing Test COMPILER_RT_HAS_GR_FLAG - Success
-- Performing Test COMPILER_RT_HAS_GS_FLAG
-- Performing Test COMPILER_RT_HAS_GS_FLAG - Success
-- Performing Test COMPILER_RT_HAS_MT_FLAG
-- Performing Test COMPILER_RT_HAS_MT_FLAG - Success
-- Performing Test COMPILER_RT_HAS_Oy_FLAG
-- Performing Test COMPILER_RT_HAS_Oy_FLAG - Success
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_G_FLAG
-- Performing Test COMPILER_RT_HAS_G_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_Zi_FLAG
-- Performing Test COMPILER_RT_HAS_Zi_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WALL_FLAG
-- Performing Test COMPILER_RT_HAS_WALL_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG
-- Performing Test COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_W4_FLAG
-- Performing Test COMPILER_RT_HAS_W4_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WX_FLAG
-- Performing Test COMPILER_RT_HAS_WX_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG - Success
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG - Success
-- Looking for __func__
-- Looking for __func__ - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Looking for pow in m
-- Looking for pow in m - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Looking for __cxa_throw in stdc++
-- Looking for __cxa_throw in stdc++ - not found
-- Compiler-RT supported architectures: x86_64
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - not found
-- Looking for tirpc/rpc/xdr.h
-- Looking for tirpc/rpc/xdr.h - not found
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FREESTANDING_FLAG
-- Performing Test COMPILER_RT_HAS_FREESTANDING_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD - Failed
-- Builtin supported architectures: x86_64
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS - Success
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK - Failed
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Failed
-- Builtin supported architectures: x86_64
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Clang version: 7.0.0
-- SampleAnalyzerPlugin ignored -- Loadable modules not supported on this platform.
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
-- AnnotateFunctions ignored -- Loadable modules not supported on this platform.
-- LLD version: 7.0.0
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    LLDB_DISABLE_PYTHON
    LLDB_RELOCATABLE_PYTHON


from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

这种情况是正常的,另外 LLDB 的 script 集成在 Windows 可能无法稳定运行,所以这里已经禁用 lldb python 集成。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

也就是没必要勾选LLDB?

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

那都是可选项,你想选择就选择的。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

这种情况是正常的,另外 LLDB 的 script 集成在 Windows 可能无法稳定运行,所以这里已经禁用 lldb python 集成

这个说的是依赖安装?
既error: pathspec '.' did not match any file(s) known to git.
这个报错是因为禁用了lldb的集成?
那build时候为什么有又提供了lldb的选项?勾选这个选项就不是集成了?

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

error: pathspec '.' did not match any file(s) known to git.

这个是对应目录的 .git 被删除了。你把 lldb 目录删除就行。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

这种情况是正常的,另外 LLDB 的 script 集成在 Windows 可能无法稳定运行,所以这里已经禁用 lldb python 集成

那build时候为什么有又提供了lldb的选项?勾选这个选项=集成,不勾选=不集成,所以一般情况下不需要勾选?

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

@243750496
勾选是构建 lldb,而警告中 lldb disable python 则表示不构建 lldb 的 python 集成。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

Q1:如果执意要构建lldb则需要安装Python3?
Q2:error: pathspec '.' did not match any file(s) known to git.
这个错误是由于默认需要禁用lldb所以下载依赖的时候不需要下载?那为什么还设计这个功能?以后版本更新会修复这个报错吗?
Q3:lldb只是禁用了不编译但是还是下载了这个依赖了是吧所以如果我要构建LLDB的时候就会从本地启用是吧

主要是出现了3 个LLDB,一个是编译时未下载的1个,2本地是否有lldb集成尽管已经禁用掉了,3勾选lldb的时候是从哪里启用编译的相应代码,网上下载的还是已经存储在本地,还是集成在clang的代码里了,尽管默认是禁用的

谢了!

from clangbuilder.

fcharlie avatar fcharlie commented on September 21, 2024

1: 不下载 Python 3 就可以构建 lldb.
2: 第二个原因是你存在一次 lldb 目录的 clone 但第二次时又失败了,应该是遗留了 .git 但 lldb git 存储库时无效的,你直接删除就可以了。
3: lldb 不构建就不会下载源码,其他 llvm 构建的依赖工具还是会下载。config/devinstall.json 是默认的依赖。而 swigwin python3 都只是 lldb 支持脚本的时候需要的,这里已经禁用脚本了,当你需要构建 lldb 时,直接勾选即可,并不需要再去额外下载依赖,Clangbuilder 也没有去下载。

from clangbuilder.

243750496 avatar 243750496 commented on September 21, 2024

谢谢了!

from clangbuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.