From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp485.redcondor.net (smtp485.redcondor.net [208.80.204.85]) by mail.openembedded.org (Postfix) with ESMTP id BF9AA60124 for ; Mon, 7 Dec 2015 09:44:59 +0000 (UTC) Received: from astoria.ccjclearline.com ([64.235.106.9]) by smtp485.redcondor.net ({3be039ea-4351-44b0-a8af-642c38b25916}) via TCP (outbound) with ESMTPS id 20151207094459033_0485 for ; Mon, 07 Dec 2015 09:44:59 +0000 X-RC-FROM: X-RC-RCPT: Received: from [99.240.204.5] (port=60942 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1a5sMg-0002eI-Hs for openembedded-core@lists.openembedded.org; Mon, 07 Dec 2015 04:45:50 -0500 Date: Mon, 7 Dec 2015 04:44:52 -0500 (EST) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost To: OE Core mailing list Message-ID: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 X-MAG-OUTBOUND: ccj.redcondor.net@64.235.106.9/32 Subject: what feature fixed the gcc-5 preprocessor build error from a few months back? X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 09:45:00 -0000 Content-Type: text/plain; charset=US-ASCII once upon a time, i asked a question about the origin of this OE build error using gcc-5 to build ncurses-native: > In file included from /home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses/curses.priv.h:283:0, > from ../ncurses/lib_gen.c:19: > _20141.c:835:15: error: expected ')' before 'int' > ../include/curses.h:1594:56: note: in definition of macro 'mouse_trafo' > #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen) it didn't take long to be pointed to an explanation on the fedora mailing list: http://lists.openembedded.org/pipermail/openembedded-core/2015-February/101820.html " these packages failed to build because of the changes in the preprocessor; gcc started to generate line directives to better detect whether a macro tokens come from a system header - see http://gcc.gnu.org/PR60723 The fix is to use the -P option if the code isn't prepared to deal with such directives. so i just added to my local.conf: CPPFLAGS_append_pn-ncurses-native = " -P" that issue was apparently fixed and i haven't needed to do that for a while. however, i'm now using someone's custom version of OE-core and that very error is back, so what was it that was tweaked to deal with it? thanks. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================