Date: Thu, 19 Apr 2012 15:23:39 -0700 From: Jason Evans <jasone@freebsd.org> To: Conrad J. Sabatier <conrads@cox.net> Cc: svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: 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... Message-ID: <D08BCC8E-C20C-46BF-984F-C43876A0E7AB@freebsd.org> In-Reply-To: <A85EFF6D-6250-4A37-A051-6F852CB2FBF5@freebsd.org> References: <201204170722.q3H7ME6A070934@svn.freebsd.org> <F43DDEEA-375B-4F1C-80A3-AAECFDFF414A@FreeBSD.org> <AECE03EF-CDEB-43DE-9222-CD94CC07CC95@FreeBSD.org> <CAJ-VmomRqGRbDD3B=NhtKY=E2pb1Lqrr9AcwNGtD91U_GfBi8Q@mail.gmail.com> <20120419091558.2ae655a0@cox.net> <A85EFF6D-6250-4A37-A051-6F852CB2FBF5@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 19, 2012, at 11:44 AM, Jason Evans wrote: > On Apr 19, 2012, at 7:15 AM, Conrad J. Sabatier wrote: >> Actually, I keep getting "undefined reference to _malloc_options" = while >> building libexec/atrun on amd64. Not sure what the problem may be. >> Could it have something to do with doing a debug build (with -g)? >>=20 >> =3D=3D=3D> libexec/atrun (all) >> [=85] >> -lutil /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to >> `_malloc_options' clang: error: linker command failed with exit code = 1 >> (use -v to see invocation) *** [atrun] Error code 1 >=20 > Perhaps this is related to using clang rather than gcc. I'll start a = clang-based buildworld to see if it reproduces here. >=20 > Jason With /etc/make.conf as: CFLAGS+=3D-g STRIP=3D CC=3Dclang CXX=3Dclang++ CPP=3Dclang-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=3Dgnu99 -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+=3D-g line, and buildworld succeeded. Jason=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D08BCC8E-C20C-46BF-984F-C43876A0E7AB>