> -----Original Message-----
> From: Richard Purdie [mailto:richard.pur...@linuxfoundation.org]
> Sent: Thursday, March 28, 2013 9:39 PM
> 
> On Wed, 2013-03-27 at 10:55 +0000, Luo Zhenhua-B19537 wrote:
> > When I build nativesdk toolchain, following build error appears
> sometimes, any suggestion to solve the issue?
> >
> >     "tar: ./sysroots/ppce500mc-fsl_networking-
> linux/var/lib/rpm/__db.002: file changed as we read it"
> >
> > Thanks in advance.
> 
> Sounds like something is still writing to the rpm database whilst we're
> packaging it which would be bad.
> 
> More logs/information might help debug it further. 
[Luo Zhenhua-B19537] Hope following log helpful. 
| DEBUG: Executing python function do_populate_sdk
| DEBUG: Executing shell function populate_sdk_image
| Previous repo file missing: 
/local/cache-build-32bit/poky/build_p4080ds_release_master/tmp/deploy/rpm/all/repodata/primary.xml.gz
| Previous repo file missing: 
/local/cache-build-32bit/poky/build_p4080ds_release_master/tmp/deploy/rpm/i686_nativesdk/repodata/primary.xml.gz
| Previous repo file missing: 
/local/cache-build-32bit/poky/build_p4080ds_release_master/tmp/deploy/rpm/p4080ds/repodata/primary.xml.gz
| Previous repo file missing: 
/local/cache-build-32bit/poky/build_p4080ds_release_master/tmp/deploy/rpm/ppce500mc/repodata/primary.xml.gz
| Note: configuring RPM platform settings
| Note: configuring RPM system provides
| Note: configuring RPM DB settings
| Note: configuring Smart settings
| 
| 
| 
| 
| 
| 
| Note: adding Smart channel p4080ds (35)
| 
| 
| Note: adding Smart channel ppce500mc (30)
| 
| 
| Note: adding Smart channel all (10)
| 
| 
| Note: configuring RPM cross-install scriptlet_wrapper
| 
| Updating cache...               ######################################## 
[100%]
| 
| Saving cache...
| 
| Note: adding Smart RPM DB channel
| 
| Note: to be installed:  eglibc-staticdev@ppce500mc libgomp-dev@ppce500mc 
libgomp1@ppce500mc dtc@ppce500mc libglib-2.0-dev@ppce500mc 
libgomp-staticdev@ppce500mc libglib-2.0-0@ppce500mc 
packagegroup-core-standalone-sdk-target@all libstdc++-staticdev@ppce500mc
| Loading cache...
| Updating cache...               ######################################## 
[100%]
| 
| Computing transaction...error: failed to open /etc/mtab: No such file or 
directory
|                                                                               
 
Committing transaction...
| Preparing...                    ######################################## [  
0%]
|    1:Installing eglibc-gconv    ######################################## [  
2%]
|    2:Installing eglibc-locale.. ######################################## [  
4%]
|    3:Installing libstdc++-sta.. ######################################## [  
6%]
|    4:Installing libc6           ######################################## [  
9%]
|    5:Installing eglibc-locale.. ######################################## [ 
11%]
|    6:Installing eglibc-locale.. ######################################## [ 
13%]
|    7:Installing eglibc-locale.. ######################################## [ 
16%]
|    8:Installing eglibc-locale.. ######################################## [ 
18%]
|    9:Installing libgomp-stati.. ######################################## [ 
20%]
|   10:Installing linux-qoriq-s.. ######################################## [ 
23%]
|   11:Installing eglibc-locale.. ######################################## [ 
25%]
|   12:Installing eglibc-locale.. ######################################## [ 
27%]
|   13:Installing eglibc-locale.. ######################################## [ 
30%]
|   14:Installing libc6-dbg       ######################################## [ 
32%]
|   15:Installing eglibc-locale.. ######################################## [ 
34%]
|   16:Installing eglibc-extra-.. ######################################## [ 
37%]
|   17:Installing libgcc1         ######################################## [ 
39%]
|   18:Installing eglibc-utils    ######################################## [ 
41%]
|   19:Installing libsegfault     ######################################## [ 
44%]
|   20:Installing eglibc-gconv-.. ######################################## [ 
46%]
|   21:Installing libthread-db1   ######################################## [ 
48%]
|   22:Installing libcidn1        ######################################## [ 
51%]
|   23:Installing dtc             ######################################## [ 
53%]
|   24:Installing libz1           ######################################## [ 
55%]
|   25:Installing eglibc-gconv-.. ######################################## [ 
58%]
|   26:Installing libffi6         ######################################## [ 
60%]
|   27:Installing eglibc-gconv-.. ######################################## [ 
62%]
|   28:Installing eglibc-gconv-.. ######################################## [ 
65%]
|   29:Installing eglibc-locale.. ######################################## [ 
67%]
|   30:Installing eglibc-locale.. ######################################## [ 
69%]
|   31:Installing libgomp1        ######################################## [ 
72%]
|   32:Installing libstdc++6      ######################################## [ 
74%]
|   33:Installing libgcc-s-dev    ######################################## [ 
76%]
|   34:Installing libc6-dev       ######################################## [ 
79%]
|   35:Installing libz-dev        ######################################## [ 
81%]
|   36:Installing libffi-dev      ######################################## [ 
83%]
|   37:Installing libglib-2.0-0   ######################################## [ 
86%]
|   38:Installing eglibc-locale.. ######################################## [ 
88%]
|   39:Installing libgomp-dev     ######################################## [ 
90%]
|   40:Installing libstdc++-dev   ######################################## [ 
93%]
|   41:Installing eglibc-static.. ######################################## [ 
95%]
|   42:Installing libglib-2.0-dev ######################################## [ 
97%]
|   43:Installing packagegroup-.. ######################################## 
[100%]
| 
| 
| Installing packages (43):
|   dtc
|   eglibc-extra-nss
|   eglibc-gconv
|   eglibc-gconv-cp1252
|   eglibc-gconv-ibm850
|   eglibc-gconv-iso8859-1
|   eglibc-gconv-iso8859-15
|   eglibc-localedata-i18n
|   eglibc-localedata-iso14651-t1
|   eglibc-localedata-iso14651-t1-common
|   eglibc-localedata-translit-circle
|   eglibc-localedata-translit-cjk-compat
|   eglibc-localedata-translit-compat
|   eglibc-localedata-translit-font
|   eglibc-localedata-translit-fraction
|   eglibc-localedata-translit-narrow
|   eglibc-localedata-translit-neutral
|   eglibc-localedata-translit-small
|   eglibc-localedata-translit-wide
|   eglibc-staticdev
|   eglibc-utils
|   libc6
|   libc6-dbg
|   libc6-dev
|   libcidn1
|   libffi-dev
|   libffi6
|   libgcc-s-dev
|   libgcc1
|   libglib-2.0-0
|   libglib-2.0-dev
|   libgomp-dev
|   libgomp-staticdev
|   libgomp1
|   libsegfault
|   libstdc++-dev
|   libstdc++-staticdev
|   libstdc++6
|   libthread-db1
|   libz-dev
|   libz1
|   linux-qoriq-sdk-headers-dev
|   packagegroup-core-standalone-sdk-target
| 
| 32.7MB of package files are needed. 105.3MB will be used.
| 
| 
| Saving cache...
| 
| Installing NATIVESDK packages
| Note: configuring RPM platform settings
| Note: configuring RPM system provides
| Note: configuring RPM DB settings
| Note: configuring Smart settings
| 
| 
| 
| 
| 
| 
| Note: adding Smart channel i686_nativesdk (25)
| 
| 
| Note: adding Smart channel all (10)
| 
| 
| Note: configuring RPM cross-install scriptlet_wrapper
| 
| Updating cache...               ######################################## 
[100%]
| 
| Saving cache...
| 
| Note: adding Smart RPM DB channel
| 
| Note: to be installed:  packagegroup-cross-canadian-powerpc@all 
nativesdk-dtc@i686_nativesdk nativesdk-mux-server@i686_nativesdk 
nativesdk-cst@i686_nativesdk nativesdk-pme-regex-analyzer@i686_nativesdk
| Loading cache...
| Updating cache...               ######################################## 
[100%]
| 
| Computing transaction...error: failed to open /etc/mtab: No such file or 
directory
|                                                                               
 
Committing transaction...
| Preparing...                    ######################################## [  
0%]
|    1:Installing nativesdk-pme.. ######################################## [  
2%]
|    2:Installing nativesdk-libc6 ######################################## [  
4%]
|    3:Installing nativesdk-ncu.. ######################################## [  
7%]
|    4:Installing nativesdk-pyt.. ######################################## [  
9%]
|    5:Installing meta-environm.. ######################################## [ 
12%]
|    6:Installing nativesdk-lib.. ######################################## [ 
14%]
|    7:Installing nativesdk-lib.. ######################################## [ 
17%]
|    8:Installing nativesdk-mux.. ######################################## [ 
19%]
|    9:Installing nativesdk-lib.. ######################################## [ 
21%]
|   10:Installing nativesdk-lib.. ######################################## [ 
24%]
|   11:Installing nativesdk-libz1 ######################################## [ 
26%]
|   12:Installing nativesdk-dtc   ######################################## [ 
29%]
|   13:Installing nativesdk-lib.. ######################################## [ 
31%]
|   14:Installing nativesdk-lib.. ######################################## [ 
34%]
|   15:Installing nativesdk-lib.. ######################################## [ 
36%]
|   16:Installing nativesdk-lib.. ######################################## [ 
39%]
|   17:Installing binutils-cros.. ######################################## [ 
41%]
|   18:Installing nativesdk-elf.. ######################################## [ 
43%]
|   19:Installing nativesdk-lib.. ######################################## [ 
46%]
|   20:Installing nativesdk-lib.. ######################################## [ 
48%]
|   21:Installing nativesdk-lib.. ######################################## [ 
51%]
|   22:Installing nativesdk-pyt.. ######################################## [ 
53%]
|   23:Installing nativesdk-lib.. ######################################## [ 
56%]
|   24:Installing nativesdk-ope.. ######################################## [ 
58%]
|   25:Installing nativesdk-cst   ######################################## [ 
60%]
|   26:Installing nativesdk-pyt.. ######################################## [ 
63%]
|   27:Installing gcc-cross-can.. ######################################## [ 
65%]
|   28:Installing nativesdk-pyt.. ######################################## [ 
68%]
|   29:Installing nativesdk-pyt.. ######################################## [ 
70%]
|   30:Installing nativesdk-pyt.. ######################################## [ 
73%]
|   31:Installing nativesdk-pyt.. ######################################## [ 
75%]
|   32:Installing nativesdk-pyt.. ######################################## [ 
78%]
|   33:Installing nativesdk-pyt.. ######################################## [ 
80%]
|   34:Installing nativesdk-pyt.. ######################################## [ 
82%]
|   35:Installing nativesdk-pyt.. ######################################## [ 
85%]
|   36:Installing nativesdk-pyt.. ######################################## [ 
87%]
|   37:Installing nativesdk-pyt.. ######################################## [ 
90%]
|   38:Installing nativesdk-pyt.. ######################################## [ 
92%]
|   39:Installing nativesdk-pyt.. ######################################## [ 
95%]
|   40:Installing gdb-cross-can.. ######################################## [ 
97%]
|   41:Installing packagegroup-.. ######################################## 
[100%]
| 
| 
| Installing packages (41):
|   binutils-cross-canadian-powerpc        nativesdk-mux-server
|   gcc-cross-canadian-powerpc             nativesdk-ncurses-terminfo-base
|   gdb-cross-canadian-powerpc             nativesdk-openssl
|   meta-environment-powerpc               nativesdk-pme-regex-analyzer
|   nativesdk-cst                          nativesdk-python-codecs
|   nativesdk-dtc                          nativesdk-python-core
|   nativesdk-elfutils                     nativesdk-python-crypt
|   nativesdk-libbz2-0                     nativesdk-python-datetime
|   nativesdk-libc6                        nativesdk-python-io
|   nativesdk-libcrypto1.0.0               nativesdk-python-lang
|   nativesdk-libexpat1                    nativesdk-python-logging
|   nativesdk-libgmp10                     nativesdk-python-math
|   nativesdk-libmpc2                      nativesdk-python-mime
|   nativesdk-libmpfr4                     nativesdk-python-netclient
|   nativesdk-libncurses5                  nativesdk-python-pickle
|   nativesdk-libncursesw5                 nativesdk-python-re
|   nativesdk-libpython2.7-1.0             nativesdk-python-readline
|   nativesdk-libreadline6                 nativesdk-python-stringold
|   nativesdk-libssl1.0.0                  nativesdk-python-textutils
|   nativesdk-libtinfo5                    packagegroup-cross-canadian-powerpc
|   nativesdk-libz1
| 
| 34.6MB of package files are needed. 88.6MB will be used.
| 
| 
| Saving cache...
| 
| log_check: Using 
/local/cache-build-32bit/poky/build_p4080ds_release_master/tmp/work/ppce500mc-fsl_networking-linux/fsl-toolchain/1.0-r7/temp/log.do_populate_sdk.11530
 as logfile
| Logfile is clean
| DEBUG: Shell function populate_sdk_image finished
| DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 
'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
| DEBUG: Executing shell function create_sdk_files
| DEBUG: Shell function create_sdk_files finished
| DEBUG: Executing shell function tar_sdk
| tar: ./sysroots/ppce500mc-fsl_networking-linux/var/lib/rpm/__db.002: file 
changed as we read it
| DEBUG: Python function do_populate_sdk finished
| ERROR: Function failed: tar_sdk (see 
/local/cache-build-32bit/poky/build_p4080ds_release_master/tmp/work/ppce500mc-fsl_networking-linux/fsl-toolchain/1.0-r7/temp/log.do_populate_sdk.11530
 for further information)

> Were you running mutliple builds or just one sdk? meta-toolchain or 
> populate_sdk? Really need more info to help further.
[Luo Zhenhua-B19537] I build only one customized toolchain based on 
meta-toolchain, following are the additional packages, "-j 24 -t 24" is used. 
TOOLCHAIN_TARGET_TASK += " \
        glib-2.0 \
        glib-2.0-dev \
        dtc \
        libgomp \
        libgomp-dev \
        libgomp-staticdev \
        libstdc++-staticdev \
        ${TCLIBC}-staticdev \
        "
# FSL specific packages
TOOLCHAIN_TARGET_TASK += " \
        nativesdk-mux-server \
        nativesdk-cst \
        nativesdk-pme-regex-analyzer \

TOOLCHAIN_HOST_TASK += " \
        nativesdk-dtc \
        "


Best Regards,

Zhenhua
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to