<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Test failure when compiling with PowerPC support"
   href="http://llvm.org/bugs/show_bug.cgi?id=21345">21345</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Test failure when compiling with PowerPC support
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gold-plugin
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tmroeder@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If I configure with 

cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_BINUTILS_INCDIR=<path to binutils-2.24/include> <llvm dir>

and run 

ninja && ninja check

I get an error on one of the ld gold tests:

[139/139] Running the LLVM regression tests
FAILED: cd /usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test &&
/usr/bin/python /usr/local/google/home/tmroeder/src/
llvm/llvm-git/utils/lit/lit.py -sv --param
llvm_site_config=/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/lit.si
te.cfg --param
llvm_unit_site_config=/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/Unit/lit.site.cfg
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test
-- Testing: 11766 tests, 32 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: LLVM :: tools/gold/mtriple.ll (10556 of 11766)
******************** TEST 'LLVM :: tools/gold/mtriple.ll' FAILED
********************
Script:
--
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/./bin/llvm-as
/usr/local/google/home/tmroeder/src/llvm/llvm-git/test/tools/gold/mtriple.ll -o
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.tmp.o
ld -plugin
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/./lib/LLVMgold.so -m
elf32ppc     -plugin-opt=mtriple=powerp
c-linux-gnu    
-plugin-opt=obj-path=/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.
tmp3.o     -shared
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.tmp.o
-o
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.tmp2
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/./bin/llvm-readobj
--file-headers /usr/local/google/home/tmroeder/src/l
lvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.tmp2 |
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/./bin/FileC
heck  --check-prefix=DSO
/usr/local/google/home/tmroeder/src/llvm/llvm-git/test/tools/gold/mtriple.ll
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/./bin/llvm-readobj
--file-headers /usr/local/google/home/tmroeder/src/l
lvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.tmp3.o |
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/./bin/Fil
eCheck --check-prefix=REL
/usr/local/google/home/tmroeder/src/llvm/llvm-git/test/tools/gold/mtriple.ll
--
Exit Code: 1

Command Output (stderr):
--
ld: error: unrecognized emulation elf32ppc
ld: error:
/usr/local/google/home/tmroeder/src/llvm/llvm-git-build/test/tools/gold/Output/mtriple.ll.tmp3.o:
not configured to 
support 32-bit big-endian object

--


It looks like this is because PowerPC is set but my ld doesn't have support for
PowerPC. So, it looks like the conditions in the lit config are not sufficient
to detect this case.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>