Re: misc/186006: buildworld libc build error

看板FB_bugs作者時間12年前 (2014/01/28 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
The following reply was made to PR misc/186006; it has been noted by GNATS. From: John Howie <john@thehowies.com> To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>, John Howie <john@thehowies.com> Cc: Subject: Re: misc/186006: buildworld libc build error &quot;&#39;MALLOC_PRODUCTION&#39; macro redefined [-Werror]&quot; in 10.0-RELEASE in jemalloc_jemalloc.c Date: Tue, 28 Jan 2014 06:36:16 +0000 Did some digging and found the problem. The build script for ARM has the following line: make -C $SRCROOT MALLOC_PRODUCTION=3Dyes buildworld In the file contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h the following lines exist: #define MALLOC_PRODUCTION #ifndef MALLOC_PRODUCTION #define JEMALLOC_DEBUG #endif The bug is therefor not limited to the ARM processor build of 10.0-RELEASE. Recommendation is to remove the definition of MALLOC_PRODUCTION from the header file, and document MALLOC_PRODUCTION properly (it is referenced in https://wiki.freebsd.org/DefaultDebuggingKnobs and a few other places). Regards, John _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1IvrMk0N (FB_bugs)