LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 23188 - compile error "invalid native target: 'x86'"
Summary: compile error "invalid native target: 'x86'"
Status: NEW
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: 3.5
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 04:30 PDT by ThePsyjo
Modified: 2015-04-10 04:31 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
fix for parser.read() in llvmbuild.componentinfo (451 bytes, patch)
2015-04-10 04:30 PDT, ThePsyjo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ThePsyjo 2015-04-10 04:30:11 PDT
Created attachment 14182 [details]
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

https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.read

A patch is attached.