From: snarf77 at free.fr <snarf77@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] buildroot ncurses build problem
Date: Tue, 28 Feb 2012 18:40:37 +0100 (CET) [thread overview]
Message-ID: <384101720.1507541.1330450837768.JavaMail.root@zimbra22-e3.priv.proxad.net> (raw)
In-Reply-To: <CAAXf6LX=31pR9AXMSvmBZOkJBvWMyrxD76_KptKXsECk+HV5Sg@mail.gmail.com>
Thanks for your help Thomas,
will try to improve the e mail form !!
On Tue, Feb 28, 2012 at 4:12 PM, <snarf77@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 ?
>>> 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
Do you have something specific set in your environment?
>>> no, I only used $ARCH and $CROSS_COMPILE before but they were unset
>
>
> I will attached the real log as soon as my machine will finish its current build but I'm 99% sure the error was the same.
>
Thanks,
Thomas
> ----- Mail original -----
> De: "Thomas De Schampheleire" <patrickdepinguin+buildroot@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@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 prev parent reply other threads:[~2012-02-28 17:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1425693603.1137500.1330438475530.JavaMail.root@zimbra22-e3.priv.proxad.net>
2012-02-28 14:29 ` [Buildroot] buildroot ncurses build problem snarf77 at free.fr
2012-02-28 14:43 ` Thomas De Schampheleire
[not found] ` <749894859.1231630.1330441934340.JavaMail.root@zimbra22-e3.priv.proxad.net>
2012-02-28 15:32 ` Thomas De Schampheleire
2012-02-28 17:40 ` snarf77 at free.fr [this message]
2012-02-28 19:54 ` Thomas De Schampheleire
2012-02-28 22:48 ` Arnout Vandecappelle
2012-02-28 22:51 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=384101720.1507541.1330450837768.JavaMail.root@zimbra22-e3.priv.proxad.net \
--to=snarf77@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox