All of lore.kernel.org
 help / color / mirror / Atom feed
* ncurses-native compile error -- i'm starting to blame gcc-5.0.0
@ 2015-02-12 12:56 Robert P. J. Day
  2015-02-17  9:22 ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2015-02-12 12:56 UTC (permalink / raw)
  To: OE Core mailing list


  (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
========================================================================


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ncurses-native compile error -- i'm starting to blame gcc-5.0.0
  2015-02-12 12:56 ncurses-native compile error -- i'm starting to blame gcc-5.0.0 Robert P. J. Day
@ 2015-02-17  9:22 ` 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
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2015-02-17  9:22 UTC (permalink / raw)
  To: OE Core mailing list


  anyone have any thoughts on this question i posted recently? and,
yes, i realize fedora rawhide is not an officially supported OE
distro, but surely someone else is going to run into this problem
eventually when upgrading to gcc-5.0.0.

On Thu, 12 Feb 2015, Robert P. J. Day wrote:

>
>   (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
========================================================================


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ncurses-native compile error -- i'm starting to blame gcc-5.0.0 [SOLVED]
  2015-02-17  9:22 ` Robert P. J. Day
@ 2015-02-17 10:48   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2015-02-17 10:48 UTC (permalink / raw)
  To: OE Core mailing list


  never mind ... i was just pointed at this fedora-specific page:

https://lists.fedoraproject.org/pipermail/devel/2015-February/207549.html

which discusses the impact of trying a mass rebuild on fedora
packages using gcc-5.0.0, wherein it's explained that a number of
packages now fail to build because:

cclive-0.9.3-4.fc22.src.rpm
cvc4-1.3-7.fc22.src.rpm
dans-gdal-scripts-0.23-5.fc22.src.rpm
emacs-24.4-3.fc22.src.rpm
ember-0.7.2-3.fc22.src.rpm
flamerobin-0.9.3-8.20130401snap.fc22.src.rpm
ghc-gtk-0.12.5.0-3.fc22.src.rpm
ghc-webkit-0.12.5.1-3.fc22.src.rpm
gnote-3.14.0-1.fc22.src.rpm
ksh-20120801-21.fc22.src.rpm
libason-0.1.2-2.fc22.src.rpm
libcmis-0.5.0-1.fc22.src.rpm
libgpg-error-1.16-1.fc22.src.rpm
libixion-0.7.0-3.fc22.src.rpm
liborcus-0.7.0-5.fc22.src.rpm
ncurses-5.9-17.20140906.fc22.src.rpm
openldap-2.4.40-5.fc22.src.rpm
perl-5.20.1-315.fc22.src.rpm
xorg-x11-server-1.16.2.901-1.fc22.src.rpm
xorg-x11-server-utils-7.7-10.fc22.src.rpm
zsh-5.0.7-4.fc22.src.rpm
	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"

and that appears to have solved this build problem. i'm guessing i'll
still hit a few more build errors because of gcc-5.0.0.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-17 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 12:56 ncurses-native compile error -- i'm starting to blame gcc-5.0.0 Robert P. J. Day
2015-02-17  9:22 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.