[LLVMdev] piping into lli broken on darwin

Jack Howarth howarth at bromo.med.uc.edu
Wed Oct 31 08:43:44 PDT 2012


  While testing llvm/polly svn on x86_64-apple-darwin10/11/12, I noticed that three darwin
specific polly-test regressions exist. At least part of these failures appear to be due
to lli on darwin not accepting piped input such that the test...

opt -load /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/lib/LLVMPolly.so 
-basicaa -polly-prepare -polly-region-simplify -O3
/sw/src/fink.build/llvm32-3.2-0/llvm-3.2/tools/polly/test/CodeGen/single_do_loop_int_max_iterations.ll
| lli

produces the error...

LLVM ERROR: Could not resolve external global address: stdout

I am able to break this test up into sections with...

% opt -load /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/lib/LLVMPolly.so 
-basicaa -polly-prepare -polly-region-simplify -O3
/sw/src/fink.build/llvm32-3.2-0/llvm-3.2/tools/polly/test/CodeGen/single_do_loop_int_max_iterations.ll
> tempfile

which produces a file that fails to pipe into lli on darwin...

% cat tempfile | lli 
LLVM ERROR: Could not resolve external global address: stdout

but works fine with lli built on x86_64 Fedora 15...

$ cat tempfile | ~/llvm_build/bin/lli 
Output 2147483646

The tempfile test file is attached to the original PR I opened for the darwin specific polly testsuite failures...

http://llvm.org/bugs/show_bug.cgi?id=14142

Any idea how to fix this issue? Also should I open a unique PR for this issue or just leave it
as part of PR14142? Thanks in advance.
       Jack



More information about the llvm-dev mailing list