Skip to contentSkip to conversation

tic compile stops

Buildroot Michael J. Hammel 3 participants 5 messages Apr 25, 2011

lore
Share & tools
lore
#0 lore raw

I've got a 2010.11 build that I run under Fedora. It works fine there. I was asked to make sure it builds under CentOS. I built a CentOS vm (kvm) and ran the build. For some reason it stops with ncurses tic compile. No errors, strace just shows it sitting there. I can't tell what the problem is.

I max'ed the memory and cpu's available to the VM but that had no effect.

Here is the output where it hangs:

make[3]: Entering directory `/home/mjhammel/src/cei/system_build/bld/buildroot-2010.11/output/build/ncurses-5.7/misc'

DESTDIR=/home/mjhammel/src/cei/system_build/src/../bld/buildroot-2010.11.bld/staging/ \
        prefix=/usr \
        exec_prefix=/usr \
        bindir=/usr/bin \
        top_srcdir=.. \
        srcdir=. \
        datadir=/usr/share \
        ticdir=/usr/share/terminfo \
        source=terminfo.tmp \
        THIS_CC="/opt/ceippc/bin/powerpc-440-linux-gnu-gcc
--sysroot=/home/mjhammel/src/cei/system_build/src/../bld/buildroot-2010.11.bld/staging/" \
        THAT_CC="gcc" \
        /bin/sh ./run_tic.sh

/usr/bin/install -c
ncurses-config /home/mjhammel/src/cei/system_build/src/../bld/buildroot-2010.11.bld/staging//usr/bin/ncurses5-config ** Building terminfo database, please wait...
Running tic to
install /home/mjhammel/src/cei/system_build/src/../bld/buildroot-2010.11.bld/staging//usr/share/terminfo ...

You may see messages regarding extended capabilities, e.g., AX. These are extended terminal capabilities which are compiled using
tic -x
If you have ncurses 4.2 applications, you should read the
INSTALL
document, and install the terminfo without the -x option.

Anyone have any tips on how to determine what tic is unhappy about?

Signature · 1 line
Michael J. Hammel <[email protected]>
#1 lore raw
Quoted 5 lines · Michael J. Hammel

I've got a 2010.11 build that I run under Fedora. It works fine there. I was asked to make sure it builds under CentOS. I built a CentOS vm (kvm) and ran the build. For some reason it stops with ncurses tic compile. No errors, strace just shows it sitting there. I can't tell what the problem is.

FYI: Found something that is probably related but I need to investigate more. The version of ncurses with 2010.11 is 5.7.

This comes from
http://invisible-island.net/ncurses/ncurses.faq.html#cross_compiles

Ncurses 5.7 introduced a separate problem. The terminal database distributed with it uses a feature that causes older versions of tic to hang. If you are cross-compiling, the database is installed using your system's copy of tic. You can work around the problem by either updating ncurses (5.7 was released in 2008), or substituting an older version of misc/terminfo.src in the build tree.

So I can either try a patch to rev to 5.8 or 5.9 or use the suggested fix in some manner. I noticed that 5.8 an 5.9 were rejected due to some seg-faults in the buildroot master (see
http://git.buildroot.net/buildroot/commit/?id=7d584285c8b32d8a419f8a5fb40efce66e8e5e24).
So it may be the best solution is to pull an a replacement for misc/terminfo.src from an older version of ncurses.

Signature · 1 line
Michael J. Hammel <[email protected]>
#2 lore raw

[Buildroot] tic compile stops (resolved)

Quoted 4 lines · Michael J. Hammel

FYI: Found something that is probably related but I need to investigate more. The version of ncurses with 2010.11 is 5.7.
This comes from
http://invisible-island.net/ncurses/ncurses.faq.html#cross_compiles

Okay, even simpler than patching Buildroot - I just had to install a newer version of ncurses to the host platform. CentOS 5.4 has ncurses 5.5. I downloaded and installed 5.7 from source and that fixed the buildroot build.

Just following up in case someone else runs into this issue.

Signature · 1 line
Michael J. Hammel <[email protected]>
#3 lore raw

[Buildroot] tic compile stops (resolved)

Michael, All,

Quoted 6 lines · On Monday 25 April 2011 21:24:00 Michael J. Hammel wrote:
Quoted 4 lines · Michael J. Hammel

FYI: Found something that is probably related but I need to investigate more. The version of ncurses with 2010.11 is 5.7.
This comes from
http://invisible-island.net/ncurses/ncurses.faq.html#cross_compiles

Quoted 6 lines

Okay, even simpler than patching Buildroot - I just had to install a newer version of ncurses to the host platform. CentOS 5.4 has ncurses 5.5. I downloaded and installed 5.7 from source and that fixed the buildroot build.

Just following up in case someone else runs into this issue.

What I do in crosstool-NG is that I first natively build the 'tic' program and use that later when cross-building ncurses.
Native build of tic: see lines 159 to 190:
http://crosstool-ng.org/hg/crosstool-ng/file/tip/scripts/build/debug/300-gdb.sh#l159

So, to be fool-proff in all cases, buildroot should build its own native tic program first.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

[Buildroot] tic compile stops (resolved)

Hi,

Quoted 16 lines · Yann E. MORIN

Michael, All,

Quoted 6 lines · On Monday 25 April 2011 21:24:00 Michael J. Hammel wrote:
Quoted 4 lines · Michael J. Hammel

FYI: Found something that is probably related but I need to investigate more. ?The version of ncurses with 2010.11 is 5.7.
This comes from
http://invisible-island.net/ncurses/ncurses.faq.html#cross_compiles

Quoted 6 lines

Okay, even simpler than patching Buildroot - I just had to install a newer version of ncurses to the host platform. ?CentOS 5.4 has ncurses 5.5. ?I downloaded and installed 5.7 from source and that fixed the buildroot build.

Just following up in case someone else runs into this issue.

Quoted 7 lines

What I do in crosstool-NG is that I first natively build the 'tic' program and use that later when cross-building ncurses.
Native build of tic: see lines 159 to 190:
http://crosstool-ng.org/hg/crosstool-ng/file/tip/scripts/build/debug/300-gdb.sh#l159

So, to be fool-proff in all cases, buildroot should build its own native tic program first.

Actually, a while back I submitted a patch that does just that, unfortunately without response.

http://lists.busybox.net/pipermail/buildroot/2011-March/042225.html
http://lists.busybox.net/pipermail/buildroot/2011-March/042224.html
http://lists.busybox.net/pipermail/buildroot/2011-March/042226.html

Maybe this extra bug report could be a trigger for inclusion of the patches?

Thanks,
Thomas