yocto-poky ncurses-native build failure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto-poky ncurses-native build failure

Jump to solution
4,113 Views
sbt_miles1
Contributor II

I'm trying to use the fsl-community-bsp to build an iMX28 EVK SDK but yocto/poky/OE is failing relatively early on in the host build.  ncurses-native install is failing with the following:

sh ../edit_man.sh normal installing /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/image/nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/sysroots/x86_64-linux/usr/share/man /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/man terminfo.5 *-config.1 /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/man/*.[0-9]*

In file included from ../include/unctrl.h:54:0,

                 from ../include/curses.h:1752,

                 from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/progs.priv.h:110,

                 from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/tic.c:41:

../include/curses.h:1865:1: error: conflicting types for 'MEVENT'

../include/curses.h:1670:1: note: previous declaration of 'MEVENT' was here

../include/curses.h:1868:32: error: conflicting types for 'getmouse'

../include/curses.h:1673:32: note: previous declaration of 'getmouse' was here

../include/curses.h:1869:32: error: conflicting types for 'ungetmouse'

../include/curses.h:1674:32: note: previous declaration of 'ungetmouse' was here

../include/curses.h:1874:32: error: expected ')' before 'int'

../include/curses.h:1915:31: error: conflicting types for '_tracemouse'

../include/curses.h:1720:31: note: previous declaration of '_tracemouse' was here

In file included from ../include/unctrl.h:54:0,

                 from ../include/curses.h:1752,

                 from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/progs.priv.h:110,

                 from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/tic.c:41:

../include/curses.h:1965:2: error: #endif without #if

In file included from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/progs.priv.h:110:0,

                 from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/tic.c:41:

../include/curses.h:1865:1: error: conflicting types for 'MEVENT'

../include/curses.h:1865:1: note: previous declaration of 'MEVENT' was here

../include/curses.h:1868:32: error: conflicting types for 'getmouse'

../include/curses.h:1673:32: note: previous declaration of 'getmouse' was here

../include/curses.h:1869:32: error: conflicting types for 'ungetmouse'

../include/curses.h:1674:32: note: previous declaration of 'ungetmouse' was here

../include/curses.h:1874:32: error: expected ')' before 'int'

../include/curses.h:1915:31: error: conflicting types for '_tracemouse'

../include/curses.h:1720:31: note: previous declaration of '_tracemouse' was here

../include/curses.h:1965:2: error: #endif without #if

In file included from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/progs.priv.h:111:0,

                 from /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/tic.c:41:

/nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/progs/../include/term_entry.h:54:2: error: unknown type name 'TERMTYPE'


My host is Ubuntu 12.04.3.  I've searched for that error elsewhere and it seems I'm the first to come across it.  Anyone know how to coerce OE to proceed?  Or to roll back to an older ncurses?

Thanks!

--Miles

Labels (3)
1 Solution
1,978 Views
sbt_miles1
Contributor II

This ended up being a parallel make problem.  When I forced conf/local.conf:PARALLEL_MAKE  to '-j 1' ncurses-native built fine.

View solution in original post

0 Kudos
5 Replies
1,979 Views
sbt_miles1
Contributor II

This ended up being a parallel make problem.  When I forced conf/local.conf:PARALLEL_MAKE  to '-j 1' ncurses-native built fine.

0 Kudos
1,978 Views
LeonardoSandova
Specialist I

That is pretty weird. DaianeAngolini have you faced any similar issue before?

0 Kudos
1,978 Views
daiane_angolini
NXP Employee
NXP Employee

No I haven't LeonardoSandovalGonzalez. Not that I could remember, at least.

sbt_miles, you could report this error to meta-oe mainling list, if you desire. Please, remember to say the branch you're using.

It's very weird as it's a native package and I'm sure it's a very-very-very commum one.

Other option would be a tmp mismatch. It's weird, as it looks like you have a first build so would not have an old tmp to get the mismatch from.

0 Kudos
1,978 Views
sbt_miles1
Contributor II

I rebuilt the ncurses-native package and noticed the following in the log.  I'm not sure if mawk is failing or running twice or what but it appears to not successfully create term.h.  This could be the start of the other failures moving forward.

| mawk -f MKterm.h.awk /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/include/Caps > term.h

| sh /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/include/edit_cfg.sh ../include/ncurses_cfg.h term.h

| cat /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/include/curses.tail >>curses.h

| mawk -f MKterm.h.awk /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/include/Caps > term.h

| ** edit: HAVE_TCGETATTR 1

| sh /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/include/edit_cfg.sh ../include/ncurses_cfg.h term.h

| ** edit: HAVE_TERMIOS_H 1

| mv: cannot stat `term.h': No such file or directory

| ** edit: HAVE_TCGETATTR 1

| sed: can't read save24058: No such file or directory

| ** edit: HAVE_TERMIO_H 1

| ** edit: HAVE_TERMIOS_H 1

| mv: cannot stat `term.h': No such file or directory

| ** edit: BROKEN_LINKER 0

| sed: can't read save24050: No such file or directory

| mkdir -p /nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/image/nfs/Project/SBT/fsl-community-bsp/build.imx28evk.mfb/tmp/sysroots/x86_64-linux/usr/include

| ** edit: HAVE_TERMIO_H 1

| ** edit: BROKEN_LINKER 0

0 Kudos
1,978 Views
LeonardoSandova
Specialist I

Are building dora branches?

0 Kudos