[oe] AVR32 + OpenEmbedded: Problems with uclibc-initial do_populate_staging()

Geoffrey Wossum geoffrey at pager.net
Wed Mar 5 19:49:39 UTC 2008


Hi all,

I'm working on getting OpenEmbeddded to build for an AVR32 system.  Right now 
I'm using an AT32STK1000, although eventually I'll be running on custom 
hardware.

I've been having problems getting past the uclibc-initial (0.9.28).  I get an 
error when it attempts do_populate_staging().  Here's the error I've been 
getting.

--begin--
NOTE: package uclibc-initial-0.9.28-r10: task do_populate_staging: started
ERROR: function do_stage failed
ERROR: log data follows 
(/home/geoff/lrs/playpaq/tmp/work/avr32-angstrom-linux-uclibc/uclibc-initial-0.9.28-r10/temp/log.do_stage.17824)
| make: avr32-angstrom-linux-uclibc-gcc: Command not found
| make: avr32-angstrom-linux-uclibc-gcc: Command not found
| 
+ ./extra/scripts/fix_includes.sh -k /home/geoff/lrs/playpaq/tmp/cross/avr32-angstrom-linux-uclibc -t 
avr32
|
|
| The 
file /home/geoff/lrs/playpaq/tmp/cross/avr32-angstrom-linux-uclibc/Makefile 
or /home/geoff/lrs/playpaq/tmp/cross/avr32-angstrom-linux-uclibc/include/linux/version.h 
is missing!
| Perhaps your kernel source is broken?
|
|
| make: *** [headers] Error 1
NOTE: Task 
failed: /home/geoff/lrs/playpaq/tmp/work/avr32-angstrom-linux-uclibc/uclibc-initial-0.9.28-r10/temp/log.do_stage.17824
NOTE: package uclibc-initial-0.9.28-r10: task do_populate_staging: failed
ERROR: TaskFailed event exception, aborting
NOTE: package uclibc-initial-0.9.28: failed
--end--


I was able to get past this by modifying uclibc_0.9.28.bb so that 
KERNEL_SOURCE is now getting to what I think is correct.  It was:
KERNEL_SOURCE = "${CROSS_DIR}/${TARGET_SYS}"
and I changed it to:
KERNEL_SOURCE = "${STAGING_DIR_HOST}/${exec_prefix}"

It also looks like I could have re-enabled the nokernelheader.patch.  Any 
comments on what the "proper" fix is here?


With that change made, the do_populate_staging went further, but not much 
further.  In uclibc-initial_0.9.28.bb, there is the following command:
	make PREFIX= DEVEL_PREFIX=${UCLIBC_PREFIX}/ \
		RUNTIME_PREFIX=${UCLIBC_PREFIX}/ \
		pregen install_dev

UCLIBC_PREFIX used to be defined in uclibc.inc, but that was changed about a 
week ago.  Changing uclibc-initial_0.9.28.bb to use UCLIBC_STAGING_PREFIX 
instead of UCLIBC_PREFIX got me past this issue.  Any comments about 
the "correct" fix here?

Thanks,
---
Geoffrey





More information about the Openembedded-devel mailing list