Hi,
I was trying to build Angstrom console-image but the build broke at ncurses 5.7 package. I’ve seen the error log but couldn’t find the root cause for this issue. My host system is based on Ubuntu Lucid 10.04, gcc 4.4.3. I’ve updated the package and built ncurses alone, but it continues to fail. I will appreciate your help with this issue.
The following is an extract of the error log file:
checking for egrep… grep -E
Configuring NCURSES 5.7 ABI 5 (Mon Aug 30 02:24:25 ART 2010)
checking build system type… i686-pc-linux-gnu
checking host system type… arm-angstrom-linux-gnueabi
checking target system type… arm-angstrom-linux-gnueabi
Configuring for linux-gnueabi
checking for prefix… /usr
checking for arm-angstrom-linux-gnueabi-
gcc… arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb
checking for C compiler default output… configure: error: C compiler cannot create executables
ERROR: Function do_configure failed
catilo@catilo-laptop:/backup$ cat /home/catilo/stuff/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/ncurses-5.7-r12/temp/log.do_configure.28274
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/ncurses-5.7-r12/config.cache
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/sources/openembedded/site/endian-little
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/sources/openembedded/site/arm-common
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/sources/openembedded/site/common-linux
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/sources/openembedded/site/common-glibc
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/sources/openembedded/site/arm-linux
configure: loading site script /home/catilo/stuff/angstrom-setup-scripts/sources/openembedded/site/common
checking for egrep… grep -E
Configuring NCURSES 5.7 ABI 5 (Mon Aug 30 02:24:25 ART 2010)
checking build system type… i686-pc-linux-gnu
checking host system type… arm-angstrom-linux-gnueabi
checking target system type… arm-angstrom-linux-gnueabi
Configuring for linux-gnueabi
checking for prefix… /usr
checking for arm-angstrom-linux-gnueabi-gcc… arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb
checking for C compiler default output… configure: error: C compiler cannot create executables
ERROR: Function do_configure failed
Thanks,
Alex.
do you have libc, make and gcc/g++ on your environment?
Hi Gary,
Thanks, I will take a look at the file you mention and let you know. Everything else built successfully. The console-image build stops with this error message.
Alex.
Alex, sometimes I update oe (using oebb.sh script) and things don't
compile. Magically the problem is fixed by blowing away TMPDIR of
local.conf and rebuilding everything. Very slow magic.
I tried bitbake console-image, but got a different error (on
Fedora13):
cp: `/home/zach/misc/beagle/angstrom/setup-scripts/angstrom-setup-
scripts/sources/openembedded/recipes/gnome/gconf-native_2.6.1.bb' and
`/home/zach/misc/beagle/angstrom/setup-scripts/angstrom-setup-scripts/
sources/openembedded/recipes/gnome/gconf-native_2.6.1.bb' are the same
file
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/zach/misc/beagle/angstrom/setup-scripts/angstrom-
setup-scripts/sources/openembedded/recipes/gnome/gconf-native_2.6.1.bb
do_unpack failed
zach
Hi Rodrigo,
Yes, thanks, I’ve them in my environment.
Alex.
Hi Gary,
I’ve found the log file you mention at: tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/ncurses-5.7-r12/ncurses-5.7/narrowc/config.log. The following is an extract from the portion is showing the error message. It seems that the wrong option is passed to march (-march=armv7-a), but searching further in the log file, I’ve found that this option is being used without any issue. Do you have any clue about this?
Thread model: posix
gcc version 4.3.3 (GCC)
configure:1708: $? = 0
configure:1710: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -V </dev/null >&5
arm-angstrom-linux-gnueabi-
gcc: ‘-V’ must come at the start of the command line
configure:1713: $? = 1
configure:1733: checking for C compiler default output
configure:1736: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -isystem/home/catilo/stuff/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -isystem/home/catilo/stuff/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include -L/home/catilo/stuff/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/home/catilo/stuff/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,–hash-style=gnu conftest.c >&5
Assembler messages:
Fatal error: Invalid -march= option: `armv7-a’
configure:1739: $? = 1
configure: failed program was:
#line 1717 “configure”
#include “confdefs.h”
int
main ()
{
;
return 0;
}
configure:1762: error: C compiler cannot create executables
-----------------
Cache variables.
-----------------
ac_cv___va_copy=yes
ac_cv_af_unix_large_dgram=yes
ac_cv_alignof_CORBA_boolean=1
ac_cv_alignof_CORBA_char=1
Hi Zach,
I’ve followed your advice and I’ve deleted TMPDIR. After that, I built ncurses successfully, now I’m building console-image again to see the results.
Thanks,
Alex.
trying to build console image again, my problem with gconf was fixed
(probably oe commits dd478c59e5 or 7b4cb64edc).
New problem linux-omap-psp-2.6.32 failed with
ERROR: Function do_compileconfigs failed
NOTE: Task failed: ('function do_compileconfigs failed', '/home/zach/
angstwork/20100903/work/beagleboard-angstrom-linux-gnueabi/linux-omap-
psp-2.6.32-r88+gitra6bad4464f985fdd3bed72e1b82dcbfc004d7869/temp/
log.do_compileconfigs.25897')
ERROR: Logfile of failure stored in: /home/zach/angstwork/20100903/
work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-
r88+gitra6bad4464f985fdd3bed72e1b82dcbfc004d7869/temp/
log.do_compileconfigs.25897
Log data follows:
Multiple configs found, building those first
cp: cannot stat `/home/zach/angstwork/20100903/work/beagleboard-
angstrom-linux-gnueabi/linux-omap-psp-2.6.32-
r88+gitra6bad4464f985fdd3bed72e1b82dcbfc004d7869/configs/*': No such
file or directory
ERROR: Function do_compileconfigs failed
reverting 900cc29b60 seems to fix this.
zach
Hi Zach,
I was finally able to complete a console-image build. Once the error with ncurses was fixed everything went OK.
I didn’t find the error you mention. Maybe trying the package alone and then a full build could fix the problem.
Thanks,
Alex.
Thanks Alex,
I'm surprised though, can you tell me your oe version (cd sources/
openembedded && git log | head) ? I'm on 3c80d12dffb3.
linux-omap-psp problem was reported independently on angstrom list
http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2010-September/004174.html
zach
Hi Zach,
This is my oe version:
commit 184be7e0353be31a6b83e0362e5870888c7969aa
Author: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Revert “gtk+: remove old versions”
This reverts commit 96503f06a6f1f0b7f9df44d97af90252717d8897.
As requested by Florian and Leon because the footprint of
these versions is smaller than the newer ones.
Alex.