http://llvm.org/bugs/show_bug.cgi?id=13746

             Bug #: 13746
           Summary: wrong value for the AT_comp_dir (dwarf info) with make
                    -C
           Product: clang
           Version: 3.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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

/Users/dima/Development/C++/test/gmake_dash_c_problem

which is wrong

it should be

/Users/dima/Development/C++/test/gmake_dash_c_problem/nested_folder

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

thanks

-- 
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