[llvm-dev] Polly tests broken

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 7 12:11:22 PST 2020


Your configuration tries to use Polly as as a loadable module. This is
not supported on Windows and so Polly never worked in this
configuration. See [1].

Before the change LLVM_POLLY_LINK_INTO_TOOLS was ON by default before
D61446, but is OFF now. This explains why it is failing for you now.
Passing -DLLVM_POLLY_LINK_INTO_TOOLS=ON to cmake should make it work
again.

Generally, I think LLVM_<PLUGIN>_LINK_INTO_TOOLS=OFF is a sensible
default to avoid unintentional binary growths for plugins that are not
used, at the cost of some inconvenience for those using the plugin.

I intend to make the Polly buildbot work again, but unfortunately do
not have enough time this month.

[1] https://groups.google.com/d/msg/polly-dev/vxumPMhrSEs/E50kboqlAQAJ

Michael



Am Di., 7. Jan. 2020 um 12:47 Uhr schrieb Alexandre Ganea via llvm-dev
<llvm-dev at lists.llvm.org>:

>
> The polly bot is down for a while and it seems *all* polly tests are broken (tested on Windows with both MSVC & Clang 9), looks like LLVMPolly.dll doesn’t build anymore?
>
> Anybody else seeing this?
>
> Using the following cmake command:
>
>
>
> cmake -GNinja %ROOT%/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_OPTIMIZED_TABLEGEN=true -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_LIBXML2=OFF -DCMAKE_C_COMPILER="%VS2017%/bin/HostX64/x64/cl.EXE" -DCMAKE_CXX_COMPILER="%VS2017%/bin/HostX64/x64/cl.EXE" -DCMAKE_LINKER="%VS2017%/bin/HostX64/x64/link.EXE" -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_PROJECTS="llvm;clang;lld;clang-tools-extra;compiler-rt;mlir;polly"
>
>
>
> The output I’m seeing with ninja check-all:
>
>
>
> FAIL: Polly :: Simplify/scalability1.ll (56278 of 59460)
>
> ******************** TEST 'Polly :: Simplify/scalability1.ll' FAILED ********************
>
> Script:
>
> --
>
> : 'RUN: at line 1';   opt -load D:/llvm-project/buildninjaRelMSVC/lib/LLVMPolly.dll -load-pass-plugin D:/llvm-project/buildninjaRelMSVC/lib/LLVMPolly.dll -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names  -polly-import-jscop-dir=D:\llvm-project\polly\test\Simplify  -polly-codegen-verify  -polly-ignore-inbounds -polly-simplify -analyze < D:\llvm-project\polly\test\Simplify\scalability1.ll | FileCheck D:\llvm-project\polly\test\Simplify\scalability1.ll -match-full-lines
>
> --
>
> Exit Code: 2
>
>
>
> Command Output (stdout):
>
> --
>
> $ ":" "RUN: at line 1"
>
> $ "opt" "-load" "D:/llvm-project/buildninjaRelMSVC/lib/LLVMPolly.dll" "-load-pass-plugin" "D:/llvm-project/buildninjaRelMSVC/lib/LLVMPolly.dll" "-polly-process-unprofitable" "-polly-remarks-minimal" "-polly-use-llvm-names" "-polly-import-jscop-dir=D:\llvm-project\polly\test\Simplify" "-polly-codegen-verify" "-polly-ignore-inbounds" "-polly-simplify" "-analyze"
>
> # command stderr:
>
> Error opening 'D:/llvm-project/buildninjaRelMSVC/lib/LLVMPolly.dll': D:/llvm-project/buildninjaRelMSVC/lib/LLVMPolly.dll: Can't open: The specified module could not be found.  (0x7E)
>
>   -load request ignored.
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-process-unprofitable'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
> opt.exe: for the -p option: may only occur zero or one times!
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-remarks-minimal'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
> opt.exe: for the -p option: may only occur zero or one times!
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-use-llvm-names'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
> opt.exe: for the -p option: may only occur zero or one times!
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-import-jscop-dir=D:\llvm-project\polly\test\Simplify'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
> opt.exe: for the -p option: may only occur zero or one times!
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-codegen-verify'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
> opt.exe: for the -p option: may only occur zero or one times!
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-ignore-inbounds'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
> opt.exe: for the -p option: may only occur zero or one times!
>
> opt.exe: for the -o option: may not occur within a group!
>
> opt.exe: Unknown command line argument '-polly-simplify'.  Try: 'opt.exe --help'
>
> opt.exe: Did you mean '-o'?
>
>
>
> error: command failed with exit status: 1
>
> $ "FileCheck" "D:\llvm-project\polly\test\Simplify\scalability1.ll" "-match-full-lines"
>
> # command stderr:
>
> FileCheck error: '-' is empty.
>
> FileCheck command line:  filecheck.exe D:\llvm-project\polly\test\Simplify\scalability1.ll -match-full-lines
>
>
>
> error: command failed with exit status: 2
>
>
>
> --
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list