Skip to content

Flang build fails on GitHub Action Windows runners #100202

Closed
@tstellar

Description

@tstellar

I'm trying to do a release build with flang on the GitHub Actin Window runners and it is failing with this error:

FAILED: bin/bbc.exe 
C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=tools\flang\tools\bbc\CMakeFiles\bbc.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo @CMakeFiles\bbc.rsp  /out:bin\bbc.exe /implib:lib\bbc.lib /pdb:bin\bbc.pdb /version:0.0 /machine:x64 /STACK:10000000 /INCREMENTAL:NO /subsystem:console && cd ."
LINK: command "C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo @CMakeFiles\bbc.rsp /out:bin\bbc.exe /implib:lib\bbc.lib /pdb:bin\bbc.pdb /version:0.0 /machine:x64 /STACK:10000000 /INCREMENTAL:NO /subsystem:console /MANIFEST:EMBED,ID=1" failed (exit code 1) with the following output:

lld-link: error: undefined symbol: __udivti3
>>> referenced by FortranDecimal.lib(binary-to-decimal.cpp.obj):(public: __cdecl Fortran::decimal::BigRadixFloatingPointNumber<64, 16>::BigRadixFloatingPointNumber<64, 16>(class Fortran::decimal::BinaryFloatingPointNumber<64>, enum Fortran::decimal::FortranRounding))
>>> referenced by FortranDecimal.lib(binary-to-decimal.cpp.obj):(public: __cdecl Fortran::decimal::BigRadixFloatingPointNumber<113, 16>::BigRadixFloatingPointNumber<113, 16>(class Fortran::decimal::BinaryFloatingPointNumber<113>, enum Fortran::decimal::FortranRounding))

How To Reproduce

cmake -G Ninja -S llvm -B /d/a/llvm-project/llvm-project/build \
         -DLLVM_RELEASE_ENABLE_PGO=OFF -DLLVM_RELEASE_ENABLE_LTO=OFF \
         -C clang/cmake/caches/Release.cmake \
         -DBOOTSTRAP_LLVM_PARALLEL_LINK_JOBS=1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions