meta-debian : image build failed on ncurses.

1,250 views
Skip to first unread message

xia...@gmail.com

unread,
May 18, 2016, 2:47:28 AM5/18/16
to meta-debian
Hi, All:

I follow whatever is written on readme. Try to build debian image.  It fails on ncurse.  any clue? I also tried on ubuntu-15.10.  it has the same error.  Nay suggestion? 

  bitbake core-image-minimal
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |######################################################################################################################| ETA:  00:00:00
Loaded 1412 entries from dependency cache.
Parsing recipes: 100% |####################################################################################################################| ETA:  00:00:00
Parsing of 1396 .bb files complete (948 cached, 448 parsed). 2101 targets, 294 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-16.04"
TARGET_SYS        = "x86_64-debian-linux"
MACHINE           = "qemux86-64"
DISTRO            = "debian"
DISTRO_VERSION    = "8.0"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              = "jethro:f117786f2447d86810d2b8078f125363632c7662"
meta-debian       = "jethro:0ea6e8ba778c8c37a171a9f4433b1622d12aea14"

gcc  -DHAVE_CONFIG_H -I. -I/home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/git/ncurses -I../include -I/home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/git/ncurses/../include -I/home/shawlu/work/iosxe-oc/build/tmp/sysroots/x86_64-linux/usr/include -isystem/home/shawlu/work/iosxe-oc/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE -DNDEBUG -isystem/home/shawlu/work/iosxe-oc/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE -O2 -pipe  --param max-inline-insns-single=1200 -fPIC -c /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/git/ncurses/base/lib_insch.c -o ../obj_s/lib_insch.o
| In file included from /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/git/ncurses/curses.priv.h:325:0,
|                  from ../ncurses/lib_gen.c:19:
| _10713.c:843:15: error: expected ')' before 'int'
| ../include/curses.h:1631:56: note: in definition of macro 'mouse_trafo'
|  #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
|                                                         ^
| Makefile:1859: 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/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/build/narrowc/ncurses'
| Makefile:135: recipe for target 'libs' failed
| make: *** [libs] Error 2
| make: Leaving directory '/home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/build/narrowc'
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/temp/log.do_compile.4466)
ERROR: Task 349 (virtual:native:/home/shawlu/work/iosxe-oc/poky/meta-debian/recipes-debian/ncurses/ncurses_debian.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 145 tasks of which 141 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  virtual:native:/home/shawlu/work/iosxe-oc/poky/meta-debian/recipes-debian/ncurses/ncurses_debian.bb, do_compile

Thanks,

shawn 

HAYASHI Kazuhiro

unread,
May 18, 2016, 3:12:42 AM5/18/16
to xia...@gmail.com, meta-...@googlegroups.com
Hi,
Thank you for reporting the issue.

The following discussion probably become helpful.
http://lists.openembedded.org/pipermail/openembedded-core/2015-February/101820.html

> | _10713.c:843:15: error: expected ')' before 'int'
> | ../include/curses.h:1631:56: note: in definition of macro 'mouse_trafo'
This error occurs only if ncurses is compiled by gcc 5.x,
which is the default gcc version in Ubuntu 15/16.

As workaround, adding the following definition to your local.conf
in the build directory may solve the compile error.
CPPFLAGS_append_pn-ncurses-native = " -P"

> WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Currently, meta-debian is tested with Debian 8 jessie.
With other distribution, you might get other similar issues
related to the local package versions.

Regards,
HAYASHI
> --
> You received this message because you are subscribed to the Google Groups "meta-debian" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to meta-debian...@googlegroups.com <mailto:meta-debian...@googlegroups.com>.
> To post to this group, send email to meta-...@googlegroups.com <mailto:meta-...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/meta-debian/c5ccb61b-57ac-47e8-924c-461b1d171880%40googlegroups.com <https://groups.google.com/d/msgid/meta-debian/c5ccb61b-57ac-47e8-924c-461b1d171880%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


xia...@gmail.com

unread,
May 18, 2016, 11:15:52 AM5/18/16
to meta-debian, xia...@gmail.com
Hi, Hayashi:

I changed local.conf as you suggested. and run into following:
ERROR: unknown quilt patches already applied
ERROR: Function failed: do_debian_patch (log file is located at /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/temp/log.do_debian_patch.11679)
ERROR: Logfile of failure stored in: /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/ncurses-native/git-r1/temp/log.do_debian_patch.11679
ERROR: Task 342 (virtual:native:/home/shawlu/work/iosxe-oc/poky/meta-debian/recipes-debian/ncurses/ncurses_debian.bb, do_debian_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 149 tasks of which 140 didn't need to be rerun and 1 failed.

Looks like the build cache is not clean,  how  Can I reset the build ?

Thanks,

Shawn 

zuka...@gmail.com

unread,
May 18, 2016, 11:37:41 AM5/18/16
to meta-debian, xia...@gmail.com
Please run
    $ bitbake -c clean ncurses-native
or
    $ bitbake -c cleanall ncurses-native
then bitbake ncurses-native again.

http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-tasks-clean
http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-tasks-cleanall

do_debian_patch is always executed when a recipe needs to be built
again. This causes "patches already applied" error. Sorry for
inconvenience.

2016年5月19日木曜日 0時15分52秒 UTC+9 xia...@gmail.com:

xia...@gmail.com

unread,
May 18, 2016, 1:25:30 PM5/18/16
to meta-debian, xia...@gmail.com
Hi: All:

Thanks for help  from Yayashi and zuka.  I am able to compile native_ncurses now.  
Here is new issue.  Looks like it is some issue on compile of DOC.   This is on utuntu-16.04.  Should I ignore Error on the recipe?

make[1]: Entering directory '/home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/build/doc'
| cd /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc && LANG= LC_MESSAGES= LC_ALL= LANGUAGE= makeinfo --no-split gperf.texi
| cd /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc && perl /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc/texi2html -number -monolithic gperf.texi
| cd /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc && rm -f gperf_*.html
| cd /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc && perl /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc/texi2html -number -split_chapter gperf.texi
| Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc/texi2html line 1564.
| Makefile:100: recipe for target 'gperf.html' failed
| make[1]: *** [gperf.html] Error 255
| make[1]: *** Waiting for unfinished jobs....
| Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/git/doc/texi2html line 1564.
| Makefile:103: recipe for target 'gperf_toc.html' failed
| make[1]: *** [gperf_toc.html] Error 255
| make[1]: Leaving directory '/home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/build/doc'
| Makefile:33: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/shawlu/work/iosxe-oc/build/tmp/work/x86_64-linux/gperf-native/git-r0/temp/log.do_compile.23537)
ERROR: Task 609 (virtual:native:/home/shawlu/work/iosxe-oc/poky/meta-debian/recipes-debian/gperf/gperf_debian.bb, do_compile) failed with exit code '1'

Thanks,
Shawn 

On Tuesday, May 17, 2016 at 11:47:28 PM UTC-7, xia...@gmail.com wrote:

HAYASHI Kazuhiro

unread,
May 18, 2016, 10:22:48 PM5/18/16
to meta-...@googlegroups.com
Please pull the following commit and bitbake gperf-native again.
https://github.com/meta-debian/meta-debian/commit/c5b8beca7b4a881f2938d46fe09acdcd83ae765a

The cause is the perl version in your host environment is 5.22 or later.
perl handles defined(@array) as a fatal error from 5.22.
I imported a similar patch for fftw from Debian into our gperf recipe.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811223

Regards,
HAYASHI
> ERROR: Task 349 (virtual:native:/home/shawlu/work/iosxe-oc/poky/meta-debian/recipes-debian/ncurses/ncurses_debian.bb <http://ncurses_debian.bb>, do_compile) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 145 tasks of which 141 didn't need to be rerun and 1 failed.
> Waiting for 0 running tasks to finish:
>
> Summary: 1 task failed:
> virtual:native:/home/shawlu/work/iosxe-oc/poky/meta-debian/recipes-debian/ncurses/ncurses_debian.bb <http://ncurses_debian.bb>, do_compile
>
> Thanks,
>
> shawn
>
> --
> You received this message because you are subscribed to the Google Groups "meta-debian" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to meta-debian...@googlegroups.com <mailto:meta-debian...@googlegroups.com>.
> To post to this group, send email to meta-...@googlegroups.com <mailto:meta-...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/meta-debian/e654cb88-11cb-4c4d-a171-0fea2645fde5%40googlegroups.com <https://groups.google.com/d/msgid/meta-debian/e654cb88-11cb-4c4d-a171-0fea2645fde5%40googlegroups.com?utm_medium=email&utm_source=footer>.

naveen...@gmail.com

unread,
Oct 12, 2017, 11:45:30 AM10/12/17
to DEBY
Hello 
Thanks for the old posts.It helped a lot.Now,I'm getting following error

make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory '/root/build/tmp/work/x86_64-linux/gettext-native/0.19.3-0/build/gettext-tools'
| Makefile:1549: recipe for target 'all' failed
| make[2]: *** [all] Error 2
| make[2]: Leaving directory '/root/build/tmp/work/x86_64-linux/gettext-native/0.19.3-0/build/gettext-tools'
| Makefile:368: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/root/build/tmp/work/x86_64-linux/gettext-native/0.19.3-0/build'
| Makefile:323: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /root/build/tmp/work/x86_64-linux/gettext-native/0.19.3-0/temp/log.do_compile.21331)
ERROR: Task 7 (virtual:native:/root/poky/meta-debian/recipes-debian/gettext/gettext_debian.bb, do_compile) failed with exit code '1'

Is there any patch for this?
Naveen
> To unsubscribe from this group and stop receiving emails from it, send an email to meta-debian...@googlegroups.com <mailto:meta-debian+unsub...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages