[LLVMbugs] [Bug 4109] New: libLTO searches for "gcc" by path instead of sysroot
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Apr 29 18:42:16 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4109
Summary: libLTO searches for "gcc" by path instead of sysroot
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: lto
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: rafael.espindola at gmail.com, llvmbugs at cs.uiuc.edu
I build in a clean environment with no environment variables defined, not even
PATH. This leads to failed LTO builds because libLTO expects to be able to find
the system GCC by searching the current path. Excerpt from
tools/lto/LTOCodeGenerator.cpp:216:
// find compiler driver
const sys::Path gcc = sys::Program::FindProgramByName("gcc");
Perhaps we could add an #ifdef SYSROOT path to this logic to mirror llvm-gcc?
--
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