[LLVMbugs] [Bug 8199] New: llvm-lit seems to prepend llvm-gcc install dir ahead of the build artifacts dir in PATH
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 21 21:38:09 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8199
Summary: llvm-lit seems to prepend llvm-gcc install dir ahead
of the build artifacts dir in PATH
Product: Test Suite
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: lit
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jasonwkim at google.com
CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org
To make a long story short, in some cases, llvm-gcc installation directory gets
prepended to the PATH when llvm-lit executes the test.
The result is that if llvm-gcc is available in PATH during an llvm
configure/build cycle, llvmconfigure places the llvm-gcc path, and llvm-lit
then seems to use that directory instead of the build dir, which means some
strange executable called "llc" from a possibly left over install; directory
can be executed instead of the freshly compiled version.
The offending line seems to be around line 61 of test/lit.cfg
when I comment out the line "config.environment['PATH'] = path", some tests
fail as expected.
I suppose the fix can be as simple as removing that line, but I have no idea
what impact that has on the rest of the test infrastructure.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list