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

CI failure on swift-main-windows-toolchain #78873

Closed
hjyamauchi opened this issue Jan 23, 2025 · 6 comments
Closed

CI failure on swift-main-windows-toolchain #78873

hjyamauchi opened this issue Jan 23, 2025 · 6 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@hjyamauchi
Copy link
Contributor

Description

https://ci-external.swift.org/job/swift-main-windows-toolchain/985/consoleText

2025-01-23 23:39:41] Building 'C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift-driver' to 'T:\15' for arch 'x86_64'...
-- The C compiler identification is Clang 19.1.5 with MSVC-like command-line
-- The CXX compiler identification is Clang 19.1.5 with MSVC-like command-line
-- The Swift compiler identification is Apple 6.2
<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\build\5\bin\swift-driver-new.exe'
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: T:/5/bin/clang-cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: T:/5/bin/clang-cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working Swift compiler: T:/5/bin/swiftc.exe
-- Check for working Swift compiler: T:/5/bin/swiftc.exe - works
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) 
CMake Error at T:/5/lib/cmake/llvm/LLVMExports.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: LLVMDemangle

  Targets not yet defined: LLVMSupport, LLVMTableGen, LLVMTableGenBasic,
  LLVMTableGenCommon, llvm-tblgen, LLVMCore, LLVMFuzzerCLI, LLVMFuzzMutate,
  LLVMFileCheck, LLVMInterfaceStub, LLVMIRPrinter, LLVMIRReader, LLVMCAS,
  LLVMCodeGen, LLVMSelectionDAG, LLVMAsmPrinter, LLVMMIRParser,
  LLVMGlobalISel, LLVMCodeGenData, LLVMCodeGenTypes, LLVMBinaryFormat,
  LLVMBitReader, LLVMBitWriter, LLVMBitstreamReader, LLVMCASUtil,
  LLVMDWARFLinker, LLVMDWARFLinkerClassic, LLVMDWARFLinkerParallel,
  LLVMExtensions, LLVMFrontendDriver, LLVMFrontendHLSL, LLVMFrontendOpenACC,
  LLVMFrontendOpenMP, LLVMFrontendOffloading, LLVMTransformUtils,
  LLVMInstrumentation, LLVMAggressiveInstCombine, LLVMInstCombine,
  LLVMScalarOpts, LLVMipo, LLVMVectorize, LLVMObjCARCOpts, LLVMCoroutines,
  LLVMCFGuard, LLVMHipStdPar, LLVMLinker, LLVMAnalysis, LLVMLTO, LLVMMC,
  LLVMMCParser, LLVMMCDisassembler, LLVMMCCAS, LLVMMCA, LLVMObjCopy,
  LLVMObject, LLVMObjectYAML, LLVMOption, LLVMRemarks, LLVMRemoteNullService,
  LLVMRemoteCachingService, LLVMDebuginfod, LLVMDebugInfoDWARF,
  LLVMDebugInfoGSYM, LLVMDebugInfoLogicalView, LLVMDebugInfoMSF,
  LLVMDebugInfoCodeView, LLVMDebugInfoPDB, LLVMSymbolize, LLVMDebugInfoBTF,
  LLVMDWP, LLVMExecutionEngine, LLVMInterpreter, LLVMJITLink, LLVMMCJIT,
  LLVMOrcJIT, LLVMOrcDebugging, LLVMOrcShared, LLVMOrcTargetProcess,
  LLVMRuntimeDyld, LLVMTarget, LLVMAArch64CodeGen, LLVMAArch64AsmParser,
  LLVMAArch64Disassembler, LLVMAArch64Desc, LLVMAArch64Info,
  LLVMAArch64Utils, LLVMARMCodeGen, LLVMARMAsmParser, LLVMARMDisassembler,
  LLVMARMDesc, LLVMARMInfo, LLVMARMUtils, LLVMWebAssemblyCodeGen,
  LLVMWebAssemblyAsmParser, LLVMWebAssemblyDisassembler, LLVMWebAssemblyDesc,
  LLVMWebAssemblyInfo, LLVMWebAssemblyUtils, LLVMX86CodeGen,
  LLVMX86AsmParser, LLVMX86Disassembler, LLVMX86TargetMCA, LLVMX86Desc,
  LLVMX86Info, LLVMSandboxIR, LLVMAsmParser, LLVMLineEditor, LLVMProfileData,
  LLVMCoverage, LLVMPasses, LLVMTargetParser, LLVMTextAPI,
  LLVMTextAPIBinaryReader, LLVMDlltoolDriver, LLVMLibDriver, LLVMXRay,
  LLVMWindowsDriver, LLVMWindowsManifest, cache-build-session, LTO, llvm-ar,
  llvm-config, llvm-lto, llvm-profdata, llvm-cas-dump, bugpoint, dsymutil,
  CASPluginTest, llc, lli, llvm-as, llvm-bcanalyzer, llvm-c-test, llvm-cas,
  llvm-cas-object-format, llvm-cat, llvm-cfi-verify, LLVMCFIVerify, llvm-cov,
  llvm-cvtres, llvm-cxxdump, llvm-cxxfilt, llvm-cxxmap,
  llvm-debuginfo-analyzer, llvm-debuginfod, llvm-debuginfod-find, llvm-diff,
  LLVMDiff, llvm-dis, llvm-dwarfdump, llvm-dwarfutil, llvm-dwp,
  LLVMExegesisX86, LLVMExegesisAArch64, LLVMExegesis, llvm-exegesis,
  llvm-extract, llvm-gsymutil, llvm-ifs, llvm-jitlink, llvm-libtool-darwin,
  llvm-link, llvm-lipo, llvm-lto2, llvm-mc, llvm-mca, llvm-ml,
  llvm-modextract, llvm-mt, llvm-nm, llvm-objcopy, llvm-objdump,
  llvm-opt-report, llvm-pdbutil, llvm-profgen, llvm-rc, llvm-readobj,
  llvm-readtapi, llvm-reduce, llvm-remarkutil, llvm-rtdyld, llvm-sim,
  llvm-size, llvm-split, llvm-stress, llvm-strings, llvm-symbolizer,
  llvm-tli-checker, llvm-undname, llvm-xray, LLVMOptDriver, opt,
  reduce-chunk-list, Remarks, sancov, sanstats, verify-uselistorder

Call Stack (most recent call first):
  T:/5/lib/cmake/llvm/LLVMConfig.cmake:277 (include)
  Sources/makeOptions/CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
Error: Error: cmake.exe exited with code 1.
Invocation:
  cmake.exe -B T:\15 -S C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift-driver -G Ninja -D ArgumentParser_DIR=T:/14/cmake/modules -D BUILD_SHARED_LIBS=YES -D Clang_DIR=T:/5/lib/cmake/clang -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=T:/5/bin/clang-cl.exe -D CMAKE_C_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_C_FLAGS=/GS- /Gw /Gy /Oi /Oy /Zc:inline -D CMAKE_CXX_COMPILER=T:/5/bin/clang-cl.exe -D CMAKE_CXX_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_CXX_FLAGS=/GS- /Gw /Gy /Oi /Oy /Zc:inline /Zc:__cplusplus -D CMAKE_INSTALL_PREFIX=T:/Program Files/Swift/Toolchains/6.0.0+Asserts/usr -D CMAKE_Swift_COMPILER=T:/5/bin/swiftc.exe -D CMAKE_Swift_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_Swift_FLAGS=-sdk \"T:/Program Files/Swift/Platforms/Windows.platform/Developer/SDKs/Windows.sdk\" -gnone -Xlinker /INCREMENTAL:NO -Xlinker /OPT:REF -Xlinker /OPT:ICF -D CMAKE_Swift_FLAGS_RELEASE=-O -D CMAKE_Swift_FLAGS_RELWITHDEBINFO=-O -D LLBuild_DIR=T:/13/cmake/modules -D LLVM_DIR=T:/5/lib/cmake/llvm -D SQLite3_INCLUDE_DIR=T:/Library/sqlite-3.46.0/usr/include -D SQLite3_LIBRARY=T:/Library/sqlite-3.46.0/usr/lib/SQLite3.lib -D Swift_DIR=T:/5/tools/swift/lib/cmake/swift -D SWIFT_DRIVER_BUILD_TOOLS=YES -D TSC_DIR=T:/12/cmake/modules
Call stack:
  at Invoke-Program, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 559
  at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 1208
  at Isolate-EnvVars, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 578
  at Build-CMakeProject, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 924
  at Build-Driver, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 2287
  at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 413
  at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 2863

    at Invoke-Program, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 563
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 1208
    at Isolate-EnvVars, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 578
    at Build-CMakeProject, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 924
    at Build-Driver, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 2287
    at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 413
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 2863
  From System.Management.Automation.RuntimeException: Error: cmake.exe exited with code 1.
  Invocation:
    cmake.exe -B T:\15 -S C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift-driver -G Ninja -D ArgumentParser_DIR=T:/14/cmake/modules -D BUILD_SHARED_LIBS=YES -D Clang_DIR=T:/5/lib/cmake/clang -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=T:/5/bin/clang-cl.exe -D CMAKE_C_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_C_FLAGS=/GS- /Gw /Gy /Oi /Oy /Zc:inline -D CMAKE_CXX_COMPILER=T:/5/bin/clang-cl.exe -D CMAKE_CXX_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_CXX_FLAGS=/GS- /Gw /Gy /Oi /Oy /Zc:inline /Zc:__cplusplus -D CMAKE_INSTALL_PREFIX=T:/Program Files/Swift/Toolchains/6.0.0+Asserts/usr -D CMAKE_Swift_COMPILER=T:/5/bin/swiftc.exe -D CMAKE_Swift_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_Swift_FLAGS=-sdk \"T:/Program Files/Swift/Platforms/Windows.platform/Developer/SDKs/Windows.sdk\" -gnone -Xlinker /INCREMENTAL:NO -Xlinker /OPT:REF -Xlinker /OPT:ICF -D CMAKE_Swift_FLAGS_RELEASE=-O -D CMAKE_Swift_FLAGS_RELWITHDEBINFO=-O -D LLBuild_DIR=T:/13/cmake/modules -D LLVM_DIR=T:/5/lib/cmake/llvm -D SQLite3_INCLUDE_DIR=T:/Library/sqlite-3.46.0/usr/include -D SQLite3_LIBRARY=T:/Library/sqlite-3.46.0/usr/lib/SQLite3.lib -D Swift_DIR=T:/5/tools/swift/lib/cmake/swift -D SWIFT_DRIVER_BUILD_TOOLS=YES -D TSC_DIR=T:/12/cmake/modules
  Call stack:
    at Invoke-Program, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 559
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 1208
    at Isolate-EnvVars, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 578
    at Build-CMakeProject, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 924
    at Build-Driver, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 2287
    at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 413
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 2863
  
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE

Reproduction

CI

Expected behavior

Successful build

Environment

CI

Additional information

No response

@hjyamauchi hjyamauchi added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Jan 23, 2025
@hjyamauchi
Copy link
Contributor Author

CC @compnerd @shahmishal

@compnerd
Copy link
Member

CC: @Catfish-Man

@compnerd
Copy link
Member

I think that swiftlang/swift-llbuild@d590693 might be responsible, but I don't have a reason to justify that.

@compnerd
Copy link
Member

@compnerd
Copy link
Member

Trying swiftlang/swift-llbuild#968 as a "better" fix. This is a temporary band aid, a more invasive change will be needed to fix this properly longer term.

@compnerd
Copy link
Member

The PR has been merged, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants