svn commit: r234370 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src inclu...

Dimitry Andric dim at FreeBSD.org
Fri Apr 20 11:59:20 UTC 2012


On 2012-04-20 00:23, Jason Evans wrote:
...
> With /etc/make.conf as:
>
> 	CFLAGS+=-g
> 	STRIP=
> 	CC=clang
> 	CXX=clang++
> 	CPP=clang-cpp
>
> I got this buildworld failure:
> ---
> clang -O2 -pipe -g  -I/usr/src/lib/csu/amd64/../common  -I/usr/src/lib/csu/amd64/../../libc/include -fno-omit-frame-pointer -std=gnu99 -Qunused-arguments  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strin
> gs -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c -o crt1.o crt1.scrt1.s:8:2: error: input can't have .file dwarf directives when -g is used to generate dwarf debug info for assembly code
>          .file   1 "/usr/src/lib/csu/amd64/crt1.c"        ^
> crt1.s:8:8: error: file number already allocated        .file   1 "/usr/src/lib/csu/amd64/crt1.c"
>                  ^crt1.s:9:2: error: input can't have .file dwarf directives when -g is used to generate dwarf debug info for assembly code
>          .file   2 "/usr/src/lib/csu/amd64/../common/crtbrand.c"        ^crt1.s:10:2: error: input can't have .file dwarf directives when -g is used to generate dwarf debug info for assembly code
>          .file   3 "/usr/src/lib/csu/amd64/../common/ignore_init.c"        ^
> ---
>
> I removed the CFLAGS+=-g line, and buildworld succeeded.

Sorry about that.  Please try the attached patch, that should help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-csu-build-with-debug-1.diff
Type: text/x-diff
Size: 6454 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120420/b792e312/fix-csu-build-with-debug-1.bin


More information about the svn-src-all mailing list