[flang-commits] [flang] [flang] Updating drivers to create data layout before semantics (PR #73301)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri Nov 24 02:41:24 PST 2023


kiranchandramohan wrote:

CI seems to be failing while building the compiler.
```
/var/lib/buildkite-agent/builds/linux-56-59b8f5d88-h5ngp-1/llvm-project/github-pull-requests/flang/lib/Frontend/CompilerInvocation.cpp:1505:10: error: 'tm' does not refer to a value
--
  | assert(tm && "Failed to create TargetMachine");
  | ^
  | /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: declared here
  | struct tm
```

```

Building CXX object tools\flang\lib\Frontend\CMakeFiles\obj.flangFrontend.dir\CompilerInvocation.cpp.obj
--
  | FAILED: tools/flang/lib/Frontend/CMakeFiles/obj.flangFrontend.dir/CompilerInvocation.cpp.obj
  | sccache C:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe  /nologo /TP -DBUILD_EXAMPLES -DFLANG_INCLUDE_TESTS=1 -DFLANG_LITTLE_ENDIAN=1 -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\flang\lib\Frontend -IC:\ws\src\flang\lib\Frontend -IC:\ws\src\flang\include -Itools\flang\include -Iinclude -IC:\ws\src\llvm\include -IC:\ws\src\llvm\..\mlir\include -Itools\mlir\include -Itools\clang\include -IC:\ws\src\llvm\..\clang\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /O2 /Ob2  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Fotools\flang\lib\Frontend\CMakeFiles\obj.flangFrontend.dir\CompilerInvocation.cpp.obj /Fdtools\flang\lib\Frontend\CMakeFiles\obj.flangFrontend.dir\ /FS -c C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp
  | C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp(1505): error C2143: syntax error: missing ')' before 'string'
  | C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp(1505): error C2678: binary '!': no operator found which takes a left-hand operand of type 'tm' (or there is no acceptable conversion)
  | C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp(1505): note: could be 'built-in C++ operator!(bool)'
  | C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp(1505): note: while trying to match the argument list '(tm)'
  | C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp(1505): error C2088: '!': illegal for struct
  | C:\ws\src\flang\lib\Frontend\CompilerInvocation.cpp(1505): error C2059: syntax error: ')'
```



https://github.com/llvm/llvm-project/pull/73301


More information about the flang-commits mailing list