[LLVMbugs] [Bug 13746] New: wrong value for the AT_comp_dir (dwarf info) with make -C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 31 14:08:46 PDT 2012


             Bug #: 13746
           Summary: wrong value for the AT_comp_dir (dwarf info) with make
           Product: clang
           Version: 3.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dmarkman at mac.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9141
  --> http://llvm.org/bugs/attachment.cgi?id=9141
folder with nested folder that contains Makefile and main.cpp

I attached folder with relevant files
to reproduce
cd gmake_dash_c_problem
make -C nested_folder -f Makefile clean
make -C nested_folder -f Makefile
dwarfdump nested_folder/main.o | more

you'll see that AT_comp_dir has a value


which is wrong

it should be


Makefile has another target xcode

on slower computers (old Mac Pro Mac OS X 10.7.4)

target xcrun that uses xcrun clang produces right result
target xcode that uses clang directly produces wrong result

on fast computers both targets produce wrong results

so I guess it somehow related to time latency

in our work network environment where building is happening on net booted
volumes we always have wrong debug info in our binaries that prevent us from
normal lldb debugging

it looks like that clang from Xcode 4.1 worked fine


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