Openmoko build / Rebuild vs -dev

Andy Green andy at openmoko.com
Thu Apr 17 13:45:14 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

(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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkgHOEEACgkQOjLpvpq7dMpr4gCeMZsAh5QT0ogIxDmKI1wqofo0
4qYAn2W14Fp13sU9RfgsPFWQqM/x5Ype
=nI8b
-----END PGP SIGNATURE-----



More information about the distro-devel mailing list