Change CFLAGS to EXTRA_CFLAGS on the source files.

This should work:

cd ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix

find . -name "*.mk" -exec sed -i 's/CFLAGS/EXTRA_CFLAGS/g' {} +
find . -name "Makefile" -exec sed -i 's/CFLAGS/EXTRA_CFLAGS/g' {} +



On Wed, Nov 18, 2009 at 1:45 AM, nilimpa <nilimpa@hotmail.com> wrote:

Hi guys.

I typed 'bitbake robostix' and got this:

------------

ERROR: function do_compile failed
ERROR: log data follows
(/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/temp/log.do_compile.20034)
| Building ArgTest/ ...
| Building Flash-LED/ ...
| Building i2c-BootLoader/ ...
| Building i2c-io/ ...
| Creating svn-version.h ...
| Building i2c-test/ ...
| Building int6/ ...
| Building LCD-Test/ ...
| Building QD-Test/ ...
| Building RCInput/ ...
| Building Simple-Flasher/ ...
| Building Simple-Servo/ ...
| Building Simple-Servo-2/ ...
| Building Tachometer/ ...
| NOTE: make CROSS_COMPILE=arm-angstrom-linux-gnueabi-
KERNELDIR=/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24
CC=arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale
| make -C
/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24
M=/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix/gumstix
ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- modules
| make[1]: Entering directory
`/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24'
| scripts/Makefile.build:46: *** CFLAGS was changed in
"/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix/gumstix/Makefile".
Fix it to use EXTRA_CFLAGS.  Stop.
| make[1]: ***
[_module_/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix/gumstix]
Error 2
| make[1]: Leaving directory
`/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.24-r1/linux-2.6.24'
| make: *** [kernel-module] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed:
/home/yklim4/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/temp/log.do_compile.20034
NOTE: package robostix-1.0-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package robostix-1.0: failed
ERROR: Build of
/home/yklim4/gumstix/gumstix-oe/com.gumstix.collection/packages/robostix/robostix.bb
do_compile failed
ERROR: Task 7
(/home/yklim4/gumstix/gumstix-oe/com.gumstix.collection/packages/robostix/robostix.bb,
do_compile) failed
NOTE: Tasks Summary: Attempted 280 tasks of which 280 didn't need to be
rerun and 1 failed.
ERROR:
'/home/yklim4/gumstix/gumstix-oe/com.gumstix.collection/packages/robostix/robostix.bb'
failed


----------------

Any idea what the problem could be? I've installed avr-gcc, avr-libc and
avr-binutils.

--
View this message in context: http://old.nabble.com/Bitbake-robostix-problem.-tp26402498p26402498.html
Sent from the Gumstix mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
Linus Casassa
Estudiante Ingeniería Civil Electrónica
Fono: 56-9-97776941