ld supports dwarf 2 only under FreeBSD 9.2
Eduardo Morras
emorrasg at yahoo.es
Wed Aug 20 10:55:59 UTC 2014
Hi,
I'm switching from default FreeBSD 9.2 clang/llvm (3.3) to newer clang/llvm 3.4. At linking stage I get
/usr/local/bin/clang++34 -o ./Debug/Project @"Project.txt" -L.
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.
My makefile doesn't call ld, it's clang++34 who calls it.
I know I must upgrade my FreeBSD, but meanwhile, how can I force clang++34 to use /usr/local/bin/ld? I can't find how do it in clang++34 --help, clang34 man or clang.llvm.org domentation.
System ld
/usr/bin/ld -v
GNU ld 2.17.50 [FreeBSD] 2007-07-03
/usr/local/bin/ld -v
GNU ld (GNU Binutils) 2.24
TIA
--- ---
Eduardo Morras <emorrasg at yahoo.es>
More information about the freebsd-questions
mailing list