From owner-svn-src-all@FreeBSD.ORG Thu Apr 19 22:23:42 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 170A7106566C; Thu, 19 Apr 2012 22:23:42 +0000 (UTC) (envelope-from jasone@freebsd.org) Received: from canonware.com (10140.x.rootbsd.net [204.109.63.53]) by mx1.freebsd.org (Postfix) with ESMTP id E2C7E8FC21; Thu, 19 Apr 2012 22:23:41 +0000 (UTC) Received: from [172.25.16.174] (unknown [173.252.71.3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by canonware.com (Postfix) with ESMTPSA id 9107D28417; Thu, 19 Apr 2012 15:23:40 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: Jason Evans In-Reply-To: Date: Thu, 19 Apr 2012 15:23:39 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201204170722.q3H7ME6A070934@svn.freebsd.org> <20120419091558.2ae655a0@cox.net> To: Conrad J. Sabatier X-Mailer: Apple Mail (2.1257) 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: Thu, 19 Apr 2012 22:23:42 -0000 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=