Openmoko build / Rebuild vs -dev

John Lee john_lee at openmoko.com
Thu Apr 17 14:26:28 CEST 2008


On Thu, Apr 17, 2008 at 12:45:14PM +0100, Andy Green wrote:
> Somebody in the thread at some point said:
>
> Hi John -
>
> | cd ~/moko/build
> | svn co https://svn.internal.openmoko.org/trunk/OE-overlay/packages
>
> Some feedback on instructions.  I had to add
>
> OEDIR = ~/moko

I was wrong.  Please replace OEDIR by OMDIR.  You don't need to set
OEDIR nor OMDIR.


> (actually, my path is different, but that is consistent with the rest of
> the instructions) before the following:
>
> | vim conf/local.conf, add
> |
> | BBFILES := "${OEDIR}/build/packages/*/*.bb
> ${OEDIR}/openembedded/packages/*/*.bb"
>
> After that a monstrous build action began that failed after an hour and
> apparently 149 builds of ~1100:
>
> ...
> | scanf/.libs/vsscanf.o: In function `__gmpz_perfect_square_p':
> | vsscanf.c:(.text+0x3b0): multiple definition of `__gmpz_perfect_square_p'
> | .libs/assert.o:assert.c:(.text+0x405): first defined here
> | scanf/.libs/vsscanf.o: In function `__gmpz_neg':
> | vsscanf.c:(.text+0x3cc): multiple definition of `__gmpz_neg'
> | .libs/assert.o:assert.c:(.text+0x421): first defined here
> | scanf/.libs/vsscanf.o: In function `__gmpz_abs':
> | vsscanf.c:(.text+0x3df): multiple definition of `__gmpz_abs'
> | .libs/assert.o:assert.c:(.text+0x434): first defined here
> | collect2: ld returned 1 exit status
> | make[2]: *** [libgmp.la] Error 1
> | make[2]: Leaving directory
> `/projects/openmoko/moko/tmp/work/x86_64-linux/gmp-native-4.2.1-r2/gmp-4.2.1'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory
> `/projects/openmoko/moko/tmp/work/x86_64-linux/gmp-native-4.2.1-r2/gmp-4.2.1'
> | make: *** [all] Error 2
> | FATAL: oe_runmake failed
> NOTE: Task failed:
> /projects/openmoko/moko/tmp/work/x86_64-linux/gmp-native-4.2.1-r2/temp/log.do_compile.27458
> NOTE: package gmp-native-4.2.1-r2: task do_compile: failed
> ERROR: TaskFailed event exception, aborting
> NOTE: package gmp-native-4.2.1: failed
> ERROR: Build of
> /projects/openmoko/moko/openembedded/packages/gmp/gmp-native_4.2.1.bb
> do_compile failed
> ERROR: Task 596
> (/projects/openmoko/moko/openembedded/packages/gmp/gmp-native_4.2.1.bb,
> do_compile) failed
> NOTE: Tasks Summary: Attempted 149 tasks of which 0 didn't need to be
> rerun and 1 failed.
> ERROR:
> '/projects/openmoko/moko/openembedded/packages/gmp/gmp-native_4.2.1.bb'
> failed
>
> So first thanks again for the step-by-step.
>
> Second any idea about gmp-native problem?
>
> Third, why is this rebuilding 1191 packages?  Why isn't it getting a
> merely sufficient set of -dev and lib packages and installing them on
> the host so I can build against them?  I only needed tslib, glibc or
> whatever.  I could install other -dev as I saw I needed them.
>
> - -Andy

some confirmation:

did you run make update before compilation?

could you send me this file:

/projects/openmoko/moko/tmp/work/x86_64-linux/gmp-native-4.2.1-r2/temp/log.do_compile.27458

as indicated in the debug output?

by the way, 1191 is the number of tasks.  there are about multiple
tasks for 1 package, so actually OE is just doing what's necessary.
dm2 also needs glib, gtk, xft and of course we need crosstools, etc.
so this number is quite reasonable.


Regards,
John



More information about the distro-devel mailing list