Hi!

Thx all, I arrive to build the gumstix basic image!

But now, i have got a problem when I try to build bitbake robostix :

ERROR: function do_compile failed
ERROR: log data follows (/home/batoub/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/temp/log.do_compile.6649)
| Building ArgTest/ ...
| Building Flash-LED/ ...
| Building i2c-BootLoader/ ...
| Linking i2c-Boot-m128-16MHz.elf ...
| /usr/lib/gcc/avr/4.3.0/../../../../avr/lib/avr51/libc.a(eerd_block.o): In function `__eerd_block':
| /build/buildd/avr-libc-1.6.2/avr/lib/avr51/../../../libc/misc/eerd_block.c:35: undefined reference to `__prologue_saves__'
| /build/buildd/avr-libc-1.6.2/avr/lib/avr51/../../../libc/misc/eerd_block.c:38: undefined reference to `__epilogue_restores__'
| /usr/lib/gcc/avr/4.3.0/../../../../avr/lib/avr51/libc.a(eewr_block.o): In function `__eewr_block':
| /build/buildd/avr-libc-1.6.2/avr/lib/avr51/../../../libc/misc/eewr_block.c:35: undefined reference to `__prologue_saves__'
| /build/buildd/avr-libc-1.6.2/avr/lib/avr51/../../../libc/misc/eewr_block.c:38: undefined reference to `__epilogue_restores__'
| make[1]: *** [i2c-Boot-m128-16MHz.elf] Error 1
| make: *** [i2c-BootLoader/] Error 2
NOTE: Task failed: /home/batoub/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/temp/log.do_compile.6649
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/batoub/gumstix/gumstix-oe/com.gumstix.collection/packages/robostix/robostix.bb do_compile failed
ERROR: Task 7 (/home/batoub/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/batoub/gumstix/gumstix-oe/com.gumstix.collection/packages/robostix/robostix.bb' failed


I try with gcc 4.2 and gcc 4.3

And I have gcc-avr 4.3.0 ( avr-gcc --version )

If somebody could help me,

Thank you !


2009/1/3 Na'Tosha Bard <NaTosha.Bard@oceanoptics.com>
If you have a problem with sumversion.c, it will manifest itself with an error that says something on the order of "PATH_MAX undefined" or something similar.  In order to build OE on Ubuntu 8.10, I have to add the #include <limits.h> line to sumbersion.c, define the ucred structure, and use an old version of gcc.

We really should get this fixed in the repositories somehow.

Best,
Na'Tosha Bard


-----Original Message-----
From: batoub [mailto:batoub@gmail.com]
Sent: Sat 1/3/2009 4:18 AM
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] Ubuntu 8.10 and Open Embeded

Hi !

BIG THANK :)

First bug is fixed, thx to Na'tosha Bard!

I will see in some hours if there is one problem with sumversion!

Thx

2009/1/3 amenon <amenon81@gmail.com>

>
> This fixes the problem with building dbus.
>
> Another problem you may encounter is with the file
>
> ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/scripts/mod/sumversion.c.
> You will need to add the line
> #include <limits.h>
> after all the other includes.
>
>
>
> Na'Tosha Bard-2 wrote:
> >
> > Greetings,
> >
> > Adding the following structure definition to the problematic file (after
> > all of the includes and macros) will fix the problem:
> >
> >   struct ucred {
> >       unsigned int   pid;
> >       unsigned int   uid;
> >       unsigned int   gid;
> >   };
> >
> > The file you need to edit is here:
> >
> >
> /home/username/gumstix/gumstix-oe/tmp/work/i686-linux/dbus-native-1.0.1-r0/dbus-1.0.1/dbus/dbus-sysdeps-unix.c
> >
> > I think something has gone wonky with some of the kernel/system headers
> on
> > the latest version of Ubuntu, and this structure isn't defined as it once
> > was.
> >
> > Best Regards,
> > Na'Tosha
> >
>
> --
> View this message in context:
> http://www.nabble.com/Ubuntu-8.10-and-Open-Embeded-tp21136352p21259884.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>


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

_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users