[Buildroot] buildroot ncurses build problem

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Tue Feb 28 19:54:17 UTC 2012


Op 28 feb. 2012 18:40 schreef <snarf77 at free.fr> het volgende:
>
> Thanks for your help Thomas,
>
> will try to improve the e mail form !!
>
>
> On Tue, Feb 28, 2012 at 4:12 PM,  <snarf77 at free.fr> wrote:
> > Thanks for answer Thomas,
> >
> > Of course I have started to compiled from my top level directory and
the conclusion was the same. That's why I decided to do the make directly
in ncurses as the result was immediate rather than re doing the full
compile in order to trouble shoot. I promise I will avoid that in the
future.
> >
> > Anyway the result is the same:
> >> /bin/sh: -I../c++: not found
> >> make: *** [../objects/cursesf.o] Error 127
>
> It seems that the compiler is not correctly filled in (the variable is
empty).
>
> Can you check the value of CXX in
output/build/host-ncurses-5.7/c++/Makefile ?
>
> >>> You're probably pointing the right direction, both CXX and CPP were
empty. When are they normally populated ?

Normally these should be set by the configure script I think. In the build
directory there are some config.* files, can you check whether there is any
clue in there?

> >>> I did a fresh install on a virtual machine and the build works in the
same conditions. Parameters of CXX and CPP are respectively /usr/bin/g++
and /usr/bin/g++ -E
>
>
> >>> as promised, my intial log after a failed buid from top level:
>
> >>>installing vt300
> >>>make[2]: Leaving directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/misc'
> >>>cd c++ && /usr/bin/make DESTDIR="" install
> >>>make[2]: Entering directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/c++'
> >>>cd ../objects;   -I../c++ -I../include -I. -DHAVE_CONFIG_H -I.
-I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG
-I/home/fll/Downloads/buildroot-2012.02-rc3/output/host/usr/include/ncurses
-I/home/fll/Downloads/buildroot-2012.02-rc3/output/host/include
-I/home/fll/Downloads/buildroot-2012.02-rc3/output/host/usr/include  -c
../c++/cursesf.cc
> >>>cd ../objects;   -I../c++ -I../include -I. -DHAVE_CONFIG_H -I.
-I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG
-I/home/fll/Downloads/buildroot-2012.02-rc3/output/host/usr/include/ncurses
-I/home/fll/Downloads/buildroot-2012.02-rc3/output/host/include
-I/home/fll/Downloads/buildroot-2012.02-rc3/output/host/usr/include  -c
../c++/cursesm.cc
> >>>/bin/sh: -I../c++: not found
> >>>make[2]: *** [../objects/cursesf.o] Error 127
> >>>make[2]: *** Waiting for unfinished jobs....
> >>>/bin/sh: -I../c++: not found
> >>>make[2]: *** [../objects/cursesm.o] Error 127
> >>>make[2]: Leaving directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/c++'
> >>>make[1]: *** [install] Error 2
> >>>make[1]: Leaving directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7'
> >>>make: ***
[/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/.stamp_host_installed]
Error 2
>
>
> >>> after exporting manullay CXX and CPP, I'm one step further but still
not passed, as shown in the following log:
> >>>
> >>>installing vt300
> >>>make[2]: Leaving directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/misc'
> >>>cd c++ && /usr/bin/make DESTDIR="" install
> >>>make[2]: Entering directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/c++'
> >>>../lib/libncurses++.a ../objects/cursesf.o ../objects/cursesm.o
../objects/cursesw.o ../objects/cursespad.o ../objects/cursesp.o
../objects/cursslk.o ../objects/cursesapp.o ../objects/cursesmain.o
> >>>make[2]: ../lib/libncurses++.a: Command not found
> >>>make[2]: *** [../lib/libncurses++.a] Error 127
> >>>make[2]: Leaving directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/c++'
> >>>make[1]: *** [install] Error 2
> >>>make[1]: Leaving directory
`/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7'
> >>>make: ***
[/home/fll/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/.stamp_host_installed]
Error 2
>
>
> >>> Remaining questions are: what could be the root cause for those
variable not being automatically set ?
> >>> What could be the reason for  ../lib/libncurses++.a: Command not found

This looks like the same basic problem where a tool variable is not
properly filled in.
In guess once the first problem is found, this one will be solved as well.

>
>
> Do you have something specific set in your environment?
>
> >>> no, I only used $ARCH and $CROSS_COMPILE before but they were unset

Best regards,
Thomas

> > ----- Mail original -----
> > De: "Thomas De Schampheleire" <patrickdepinguin+buildroot at gmail.com>
> > À: snarf77 at free.fr
> > Cc: buildroot at busybox.net
> > Envoyé: Mardi 28 Février 2012 15:43:29
> > Objet: Re: [Buildroot] buildroot ncurses build problem
> >
> > Hi,
> >
> > On Tue, Feb 28, 2012 at 3:29 PM,  <snarf77 at free.fr> wrote:
> >> Hi all,
> >>
> >> this my first post on this list so first of all hello to everybody.
> >>
> >> My wish is to create a real time kernel and a minimal rootfs for a
atmel at91sam0g20ek eval board. Until now I did it the old way manually but
I wanted to give a try to buildroot ti automate all the stuff.
> >>
> >> I downloaded buildroot and configure menuconfig simply with
architecture = arm and target = arm926t and my first "make" was successful
and the image is working fine. Good job guys !!
> >>
> >> But then each time I want to add a new package that depends on ncurses
(in my case "nano" editor but this failed also even by simply selecting
ncurses) I have my build failed in the ncurses directory with the following
error:
> >>
> >> snarf77 at buildrootVM:~/Downloads/buildroot-2012.02-rc3/output/build/host-ncurses-5.7/c++$
make
> >> cd ../objects;   -I../c++ -I../include -I. -DHAVE_CONFIG_H -I.
-I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG
-I/home/snarf77/Downloads/buildroot-2012.02-rc3/output/host/usr/include/ncurses
-I/home/snarf77/Downloads/buildroot-2012.02-rc3/output/host/include
-I/home/snarf77/Downloads/buildroot-2012.02-rc3/output/host/usr/include  -c
../c++/cursesf.cc
> >> /bin/sh: -I../c++: not found
> >> make: *** [../objects/cursesf.o] Error 127
> >
> > Here you are running make from a build directory directly. This is not
> > supported.
> > You should run 'make' from the top-level buildroot directory, i.e.
> > ~/Downloads/buildroot-2012.02-rc3
> >
> > Do you have the same problem then?
> >
> >>
> >>
> >> I'm runnning ubuntu 10.10 32bits and have installed libncurses5.7 if
this matters.
> >>
> >> I have tried with buildroot 2011.11 and same issue so I guess it come
either from my environment (ubuntu package missing ?) or from make option
or buildroot configuration selection ???
> >>
> >> Many thanks in advance for your help as I'm stuck there..
> >
> > Best regards,
> > Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120228/90b141a6/attachment-0002.html>


More information about the buildroot mailing list