From owner-freebsd-current@FreeBSD.ORG Wed Oct 23 01:22:44 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B3CB16E4 for ; Wed, 23 Oct 2013 01:22:44 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5131B26CB for ; Wed, 23 Oct 2013 01:22:44 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id r9N1MPw3025869 for ; Tue, 22 Oct 2013 21:22:38 -0400 (EDT) (envelope-from george+freebsd@m5p.com) Message-ID: <526724D1.5060406@m5p.com> Date: Tue, 22 Oct 2013 21:22:25 -0400 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: make buildworld References: <20131022194921.6adebf5d@zeus.saul.homeunix.org> <20131023005502.GB3421@dft-labs.eu> In-Reply-To: <20131023005502.GB3421@dft-labs.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Tue, 22 Oct 2013 21:22:41 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Oct 2013 01:22:44 -0000 On 10/22/13 20:55, Mateusz Guzik wrote: > On Tue, Oct 22, 2013 at 07:49:21PM -0500, Saul A. Peebsen wrote: >> OK, here's a bit of history of this box. Never wanted to run CURRENT, >> but had no choice, STABLE wouldn't boot. So I followed all the advice >> how to disable all debugging features. Now I'm trying to build latest >> 10 and I'm getting the error below. >> >> What's wrong? >> >> >> cc -O2 -pipe -march=core2 -I/usr/src/lib/libc/include >> -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS >> -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa >> -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 >> -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE >> -DPOSIX_MISTAKE -I/usr/src/lib/libc/../../contrib/jemalloc/include >> -DMALLOC_PRODUCTION -I/usr/src/lib/libc/../../contrib/tzcode/stdtime >> -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES >> -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING >> -DSYMBOL_VERSIONING -std=gnu99 -Qunused-arguments -fstack-protector >> -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized >> -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int >> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality >> -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum >> -Wno-knr-promoted-parameter -c jemalloc_jemalloc.c -o >> jemalloc_jemalloc.o In file included from jemalloc_jemalloc.c:2: In >> file included >> from /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:64: >> In file included >> from /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/../jemalloc.h:18: /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/../jemalloc_FreeBSD.h:7:9: >> error: 'MALLOC_PRODUCTION' macro redefined [-Werror] #define >> MALLOC_PRODUCTION ^ :6:9: note: previous definition is >> here #define MALLOC_PRODUCTION 1 ^ 1 error generated. *** Error code 1 >> >> > > Presumably you have MALLOC_PRODUCTION set in src.conf or make.conf, > remove it. > Ran into this myself. More specifically, you have MALLOC_PRODUCTION set to something other than the null string. jemalloc_FreeBSD.h, however, says "#define MALLOC_PRODUCTION". This is okay if you have MALLOC_PRODUCTION= in src.conf/make.conf, and this is okay if you don't have MALLOC_PRODUCTION in those files, but if you have it set to foo, or y, or even "no", you will get this compile error. -- George