[LLVMbugs] [Bug 9862] New: clang can't link with -g on darwin if POSIXLY_CORRECT environmental is set
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 6 17:35:51 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9862
Summary: clang can't link with -g on darwin if POSIXLY_CORRECT
environmental is set
Product: clang
Version: 2.9
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6551)
--> (http://llvm.org/bugs/attachment.cgi?id=6551)
testcase demonstrating broken call to dsymutil when POSIXLY_CORRECT env is set
Currently if the POSIXLY_CORRECT environmental is set and -g is used in clang,
the resulting call to dsymutil fails...
frodo:~] howarth% /sw/opt/llvm-2.9/bin/clang -v -o conftest -g -O2 conftest.c
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-apple-darwin10
Thread model: posix
"/sw/opt/llvm-2.9/bin/clang-2.9" -cc1 -triple x86_64-apple-darwin10.0.0
-emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-v -g -resource-dir /sw/opt/llvm-2.9/bin/../lib/clang/2.9 -O2 -ferror-limit 19
-fmessage-length 136 -stack-protector 1 -fblocks -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-JYeXyF.o -x c conftest.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-apple-darwin10
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/sw/opt/llvm-2.9/bin/../lib/clang/2.9/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld" -dynamic -arch x86_64
-macosx_version_min 10.6.0 -o conftest -lcrt1.10.6.o /tmp/cc-JYeXyF.o -lSystem
"/usr/bin/dsymutil" conftest -o conftest.dSYM
error: unable to open executable '-o'
clang-2: error: dsymutil command failed with exit code 1 (use -v to see
invocation)
whereas without setting POSIXLY_CORRECT, the same test case links fine...
[frodo:~] howarth% /sw/opt/llvm-2.9/bin/clang -v -o conftest -g -O2 conftest.c
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-apple-darwin10
Thread model: posix
"/sw/opt/llvm-2.9/bin/clang-2.9" -cc1 -triple x86_64-apple-darwin10.0.0
-emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-v -g -resource-dir /sw/opt/llvm-2.9/bin/../lib/clang/2.9 -O2 -ferror-limit 19
-fmessage-length 136 -stack-protector 1 -fblocks -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-7gdqNX.o -x c conftest.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-apple-darwin10
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/sw/opt/llvm-2.9/bin/../lib/clang/2.9/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld" -dynamic -arch x86_64
-macosx_version_min 10.6.0 -o conftest -lcrt1.10.6.o /tmp/cc-7gdqNX.o -lSystem
"/usr/bin/dsymutil" conftest -o conftest.dSYM
--
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