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

Resolve failing Windows 2022 workflow build #1

Open
e3m3 opened this issue Oct 5, 2024 · 2 comments
Open

Resolve failing Windows 2022 workflow build #1

e3m3 opened this issue Oct 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@e3m3
Copy link
Owner

e3m3 commented Oct 5, 2024

Fix missing llvm-config.h header.

@e3m3 e3m3 added the bug Something isn't working label Oct 5, 2024
@e3m3 e3m3 self-assigned this Oct 5, 2024
@e3m3
Copy link
Owner Author

e3m3 commented Nov 4, 2024

Fix missing llvm-config.h header.

Fixed. Followup error with PollyISL library:

Running `C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name llvm_sys --edition=2015 C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\llvm-sys-181.1.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"force-static\"" --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"clang-sys\", \"disable-alltargets-init\", \"force-dynamic\", \"force-static\", \"no-llvm-linking\", \"prefer-dynamic\", \"prefer-static\", \"strict-versioning\", \"tempfile\"))" -C metadata=242f72cc6de42ba2 -C extra-filename=-242f72cc6de42ba2 --out-dir D:\a\calcc-rust\calcc-rust\target\debug\deps -L dependency=D:\a\calcc-rust\calcc-rust\target\debug\deps --extern libc=D:\a\calcc-rust\calcc-rust\target\debug\deps\liblibc-da521549d5d88fa2.rmeta --cap-lints allow -L "native=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\atlmfc\lib\x64" -L native=D:\a\calcc-rust\calcc-rust\target\debug\build\llvm-sys-4e6953495fe45c59\out -L native=D:\a\calcc-rust\calcc-rust\llvm-project\install\lib -l static=targetwrappers -l static=LLVMWindowsManifest -l static=LLVMXRay -l static=LLVMLibDriver -l static=LLVMDlltoolDriver -l static=LLVMTextAPIBinaryReader -l static=LLVMCoverage -l static=LLVMLineEditor -l static=LLVMX86TargetMCA -l static=LLVMX86Disassembler -l static=LLVMX86AsmParser -l static=LLVMX86CodeGen -l static=LLVMX86Desc -l static=LLVMX86Info -l static=LLVMOrcDebugging -l static=LLVMOrcJIT -l static=LLVMWindowsDriver -l static=LLVMMCJIT -l static=LLVMJITLink -l static=LLVMInterpreter -l static=LLVMExecutionEngine -l static=LLVMRuntimeDyld -l static=LLVMOrcTargetProcess -l static=LLVMOrcShared -l static=LLVMDWP -l static=LLVMDebugInfoLogicalView -l static=LLVMDebugInfoGSYM -l static=LLVMOption -l static=LLVMObjectYAML -l static=LLVMObjCopy -l static=LLVMMCA -l static=LLVMMCDisassembler -l static=LLVMLTO -l static=LLVMFrontendOpenACC -l static=LLVMFrontendHLSL -l static=LLVMFrontendDriver -l static=LLVMExtensions -l static=Polly -l static=PollyISL -l static=LLVMPasses -l static=LLVMHipStdPar -l static=LLVMCoroutines -l static=LLVMCFGuard -l static=LLVMipo -l static=LLVMInstrumentation -l static=LLVMVectorize -l static=LLVMLinker -l static=LLVMFrontendOpenMP -l static=LLVMFrontendOffloading -l static=LLVMDWARFLinkerParallel -l static=LLVMDWARFLinkerClassic -l static=LLVMDWARFLinker -l static=LLVMGlobalISel -l static=LLVMMIRParser -l static=LLVMAsmPrinter -l static=LLVMSelectionDAG -l static=LLVMCodeGen -l static=LLVMTarget -l static=LLVMObjCARCOpts -l static=LLVMCodeGenTypes -l static=LLVMIRPrinter -l static=LLVMInterfaceStub -l static=LLVMFileCheck -l static=LLVMFuzzMutate -l static=LLVMScalarOpts -l static=LLVMInstCombine -l static=LLVMAggressiveInstCombine -l static=LLVMTransformUtils -l static=LLVMBitWriter -l static=LLVMAnalysis -l static=LLVMProfileData -l static=LLVMSymbolize -l static=LLVMDebugInfoBTF -l static=LLVMDebugInfoPDB -l static=LLVMDebugInfoMSF -l static=LLVMDebugInfoDWARF -l static=LLVMObject -l static=LLVMTextAPI -l static=LLVMMCParser -l static=LLVMIRReader -l static=LLVMAsmParser -l static=LLVMMC -l static=LLVMDebugInfoCodeView -l static=LLVMBitReader -l static=LLVMFuzzerCLI -l static=LLVMCore -l static=LLVMRemarks -l static=LLVMBitstreamReader -l static=LLVMBinaryFormat -l static=LLVMTargetParser -l static=LLVMTableGen -l static=LLVMSupport -l static=LLVMDemangle -l dylib=psapi -l dylib=shell32 -l dylib=ole32 -l dylib=uuid -l dylib=advapi32 -l dylib=ws2_32`
error: could not find native static library `PollyISL`, perhaps an -L flag is missing?

error: could not compile `llvm-sys` (lib) due to 1 previous error

@e3m3
Copy link
Owner Author

e3m3 commented Nov 5, 2024

Fix missing llvm-config.h header.

Fixed. Followup error with PollyISL library:

Running `C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name llvm_sys --edition=2015 C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\llvm-sys-181.1.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"force-static\"" --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"clang-sys\", \"disable-alltargets-init\", \"force-dynamic\", \"force-static\", \"no-llvm-linking\", \"prefer-dynamic\", \"prefer-static\", \"strict-versioning\", \"tempfile\"))" -C metadata=242f72cc6de42ba2 -C extra-filename=-242f72cc6de42ba2 --out-dir D:\a\calcc-rust\calcc-rust\target\debug\deps -L dependency=D:\a\calcc-rust\calcc-rust\target\debug\deps --extern libc=D:\a\calcc-rust\calcc-rust\target\debug\deps\liblibc-da521549d5d88fa2.rmeta --cap-lints allow -L "native=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\atlmfc\lib\x64" -L native=D:\a\calcc-rust\calcc-rust\target\debug\build\llvm-sys-4e6953495fe45c59\out -L native=D:\a\calcc-rust\calcc-rust\llvm-project\install\lib -l static=targetwrappers -l static=LLVMWindowsManifest -l static=LLVMXRay -l static=LLVMLibDriver -l static=LLVMDlltoolDriver -l static=LLVMTextAPIBinaryReader -l static=LLVMCoverage -l static=LLVMLineEditor -l static=LLVMX86TargetMCA -l static=LLVMX86Disassembler -l static=LLVMX86AsmParser -l static=LLVMX86CodeGen -l static=LLVMX86Desc -l static=LLVMX86Info -l static=LLVMOrcDebugging -l static=LLVMOrcJIT -l static=LLVMWindowsDriver -l static=LLVMMCJIT -l static=LLVMJITLink -l static=LLVMInterpreter -l static=LLVMExecutionEngine -l static=LLVMRuntimeDyld -l static=LLVMOrcTargetProcess -l static=LLVMOrcShared -l static=LLVMDWP -l static=LLVMDebugInfoLogicalView -l static=LLVMDebugInfoGSYM -l static=LLVMOption -l static=LLVMObjectYAML -l static=LLVMObjCopy -l static=LLVMMCA -l static=LLVMMCDisassembler -l static=LLVMLTO -l static=LLVMFrontendOpenACC -l static=LLVMFrontendHLSL -l static=LLVMFrontendDriver -l static=LLVMExtensions -l static=Polly -l static=PollyISL -l static=LLVMPasses -l static=LLVMHipStdPar -l static=LLVMCoroutines -l static=LLVMCFGuard -l static=LLVMipo -l static=LLVMInstrumentation -l static=LLVMVectorize -l static=LLVMLinker -l static=LLVMFrontendOpenMP -l static=LLVMFrontendOffloading -l static=LLVMDWARFLinkerParallel -l static=LLVMDWARFLinkerClassic -l static=LLVMDWARFLinker -l static=LLVMGlobalISel -l static=LLVMMIRParser -l static=LLVMAsmPrinter -l static=LLVMSelectionDAG -l static=LLVMCodeGen -l static=LLVMTarget -l static=LLVMObjCARCOpts -l static=LLVMCodeGenTypes -l static=LLVMIRPrinter -l static=LLVMInterfaceStub -l static=LLVMFileCheck -l static=LLVMFuzzMutate -l static=LLVMScalarOpts -l static=LLVMInstCombine -l static=LLVMAggressiveInstCombine -l static=LLVMTransformUtils -l static=LLVMBitWriter -l static=LLVMAnalysis -l static=LLVMProfileData -l static=LLVMSymbolize -l static=LLVMDebugInfoBTF -l static=LLVMDebugInfoPDB -l static=LLVMDebugInfoMSF -l static=LLVMDebugInfoDWARF -l static=LLVMObject -l static=LLVMTextAPI -l static=LLVMMCParser -l static=LLVMIRReader -l static=LLVMAsmParser -l static=LLVMMC -l static=LLVMDebugInfoCodeView -l static=LLVMBitReader -l static=LLVMFuzzerCLI -l static=LLVMCore -l static=LLVMRemarks -l static=LLVMBitstreamReader -l static=LLVMBinaryFormat -l static=LLVMTargetParser -l static=LLVMTableGen -l static=LLVMSupport -l static=LLVMDemangle -l dylib=psapi -l dylib=shell32 -l dylib=ole32 -l dylib=uuid -l dylib=advapi32 -l dylib=ws2_32`
error: could not find native static library `PollyISL`, perhaps an -L flag is missing?

error: could not compile `llvm-sys` (lib) due to 1 previous error

Fixed. Followup error with lit installation/path:

Lit binary path: D:\a\calcc-rust\calcc-rust\python3-venv\bin\lit
thread 'tests::lit' panicked at tests\lit-tests.rs:140:9:
assertion failed: lit_bin.is_file()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test tests::lit ... FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant