<html>
    <head>
      <base href="https://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 --- - compile error "invalid native target: 'x86'""
   href="https://llvm.org/bugs/show_bug.cgi?id=23188">23188</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compile error "invalid native target: 'x86'"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.5
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ThePsyjo@googlemail.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>Created <span class=""><a href="attachment.cgi?id=14182" name="attach_14182" title="fix for parser.read() in llvmbuild.componentinfo">attachment 14182</a> <a href="attachment.cgi?id=14182&action=edit" title="fix for parser.read() in llvmbuild.componentinfo">[details]</a></span>
fix for parser.read() in llvmbuild.componentinfo

Hi,

while building llvm i got the message

llvm-build: error: invalid native target: 'x86'

all the time. In the end, LibraryDependencies.inc was missing and the build
failed.

My environment:
  Gentoo default/linux/amd64/13.0
  python-2.7 (default)
  all packages are more or less not older than 2 months

I tracked it down to the RawConfigParser which is not used properly:
    parser.read(path)  <-  expects a list of file_names not a string

<a href="https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.read">https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.read</a>

A patch is attached.</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>