From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: ncurses-native compile error -- i'm starting to blame gcc-5.0.0
Date: Thu, 12 Feb 2015 07:56:31 -0500 (EST) [thread overview]
Message-ID: <alpine.LFD.2.11.1502120750130.5392@localhost> (raw)
(posted about this on YP list earlier but i figured i might as well
strip this down to its essentials and use pure OE to reproduce.)
on 64-bit, fully-updated fedora rawhide system, with gcc:
$ gcc --version
gcc (GCC) 5.0.0 20150208 (Red Hat 5.0.0-0.10)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$
using master branch of OE, i tried to build
qemux86/core-image-minimal and got precisely the same error i reported
on YP list:
=====================
gcc -DHAVE_CONFIG_H -I../ncurses -I/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses -isystem/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE -DNDEBUG -I. -I../include -I/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses/../include -I/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/sysroots/x86_64-linux/usr/include -isystem/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE -O2 -pipe --param max-inline-insns-single=1200 -fPIC -c /home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses/base/lib_inchstr.c -o ../obj_s/lib_inchstr.o
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)
^
gcc -DHAVE_CONFIG_H -I../ncurses -I/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses -isystem/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE -DNDEBUG -I. -I../include -I/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses/../include -I/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/sysroots/x86_64-linux/usr/include -isystem/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE -O2 -pipe --param max-inline-insns-single=1200 -fPIC -c /home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses/base/lib_initscr.c -o ../obj_s/lib_initscr.o
Makefile:1682: recipe for target '../obj_s/lib_gen.o' failed
make[1]: *** [../obj_s/lib_gen.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/build/narrowc/ncurses'
Makefile:134: recipe for target 'libs' failed
make: *** [libs] Error 2
make: Leaving directory '/home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/build/narrowc'
ERROR: oe_runmake failed
WARNING: /home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/temp/run.do_compile.19602:1 exit 1 from
exit 1
ERROR: Function failed: do_compile (log file is located at /home/rpjday/oe/builds/oe/qemux86/tmp-glibc/work/x86_64-linux/ncurses-native/5.9-r15.1/temp/log.do_compile.19602)
======================
AFAIK, the selected version of ncurses (5.9) hasn't changed in quite
some time and i've done countless builds of qemu core-image-minimal
images over the last few months, so i'm guessing this latest version
of gcc is doing something strange, or it's just exposing a problem in
the ncurses source that's been hidden all this time.
has anyone else tried the above with the latest version of gcc?
because i can't really think what else might be to blame.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
next reply other threads:[~2015-02-12 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 12:56 Robert P. J. Day [this message]
2015-02-17 9:22 ` ncurses-native compile error -- i'm starting to blame gcc-5.0.0 Robert P. J. Day
2015-02-17 10:48 ` ncurses-native compile error -- i'm starting to blame gcc-5.0.0 [SOLVED] Robert P. J. Day
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.11.1502120750130.5392@localhost \
--to=rpjday@crashcourse.ca \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox