From owner-svn-src-all@FreeBSD.ORG Fri Apr 20 03:11:43 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65FE0106566B; Fri, 20 Apr 2012 03:11:43 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo102.cox.net (eastrmfepo102.cox.net [68.230.241.214]) by mx1.freebsd.org (Postfix) with ESMTP id B42F78FC08; Fri, 20 Apr 2012 03:11:42 +0000 (UTC) Received: from eastrmimpo109.cox.net ([68.230.241.222]) by eastrmfepo102.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120420031142.OQWU26743.eastrmfepo102.cox.net@eastrmimpo109.cox.net>; Thu, 19 Apr 2012 23:11:42 -0400 Received: from serene.no-ip.org ([98.164.83.206]) by eastrmimpo109.cox.net with bizsmtp id 03Bg1j0054T5sES023BhdP; Thu, 19 Apr 2012 23:11:41 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020207.4F90D3ED.008F,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=oCnpYUhdmvqPuxLMq7fsn3FqY3je+Ql30gwju2dxGGE= c=1 sm=1 a=N17yZKeAuoQA:10 a=G8Uczd0VNMoA:10 a=N659UExz7-8A:10 a=cRs4AX/51puMaUeRAuoQtw==:17 a=6I5d2MoRAAAA:8 a=kviXuzpPAAAA:8 a=xZUYSu7jEuJQdHkjCekA:9 a=34ZU6qr-9c-gozTNuREA:7 a=pILNOxqGKmIA:10 a=SV7veod9ZcQA:10 a=4vB-4DCPJfMA:10 a=cRs4AX/51puMaUeRAuoQtw==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q3K3Bdu4066311; Thu, 19 Apr 2012 22:11:39 -0500 (CDT) (envelope-from conrads@cox.net) Date: Thu, 19 Apr 2012 22:11:34 -0500 From: "Conrad J. Sabatier" To: Jason Evans Message-ID: <20120419221134.76128edc@cox.net> In-Reply-To: References: <201204170722.q3H7ME6A070934@svn.freebsd.org> <20120419091558.2ae655a0@cox.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2012 03:11:43 -0000 On Thu, 19 Apr 2012 15:23:39 -0700 Jason Evans wrote: > 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)? > >> > >> ===> libexec/atrun (all) > >> […] > >> -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 > > > > Perhaps this is related to using clang rather than gcc. I'll start > > a clang-based buildworld to see if it reproduces here. > > > > Jason > > > 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. > > Jason Yes, I've seen exactly the same on other, earlier builds (I've been using essentially exactly the same make.conf settings as what you just posted, as well as using "make -j8"). That other error output I posted earlier in this thread resulted after I had already seen the above, and tried another buildworld without -j8. So, apparently, the thing to do for now is *not* attempt to build a debug world, it would seem. I suspected as much. :-) Thank you very much for giving your attention to this matter. -- Conrad J. Sabatier conrads@cox.net