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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to