[Dev] error building tizen common image

Lv, RuiX ruix.lv at intel.com
Wed Sep 3 04:35:21 GMT 2014


Hi joachim,

Let's solve the problems one by one:


1.       Expansion errors

These expansion errors do NOT have any impact on ia32 build

because both "qemu-accelarmv7l" and "qemu-accelaarch64" target at arm build.

Therefore, no need to worry about them, just ignore the errors.



2.       Build errors

Root cause: inconsistency between accepted/tizen_common and OBS at the time you performed building.

I've checked the latest status, all the HEADs are pointing to the correct commits now.

Synchroning the latest code or checking out to the correct revision, and then rebuilding will seal the deal.

l  capi-appfw-application
$ cd <Path_to_platform/core/api/application>
$ git checkout c92cec0e876d638b91eb64e12e306e9a29ed2e8f
$ gbs build -A     i586


l  capi-appfw-package-manager
$ cd <Path_to_platform/core/api/package-manager>
$ git checkout 19fa6e082a246e0ec427fca79591e4fe564442e2
$ gbs build -A     i586


l  libzypp
$ cd <Path_to_platform/upstream/libzypp>
$ git checkout c75db5dba5033167b4d57442ef5e798b8a56bb48
$ gbs build -A i586


Rui

From: joachim rodrigues [mailto:joa_rodrigues at hotmail.com]
Sent: Wednesday, September 03, 2014 4:37 AM
To: Lv, RuiX; dev at lists.tizen.org
Subject: RE: [Dev] error building tizen common image

Hi Rui

Here the procedure i followed :
I'm running the installation on ubuntu 14.04

Then :
mkdir ~/bin/
PATH=~/bin:$PATH

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
sudo chmod a+x ~/bin/repo

mkdir ~/tizen_common_profile
cd ~/tizen_common_profile

repo init -u ssh://myUserName@review.tizen.org:29418/scm/manifest -b tizen -m common.xml
repo sync


after a long time i tryed :
gbs build -A i586 --threads=4 --clean-once

and :
gbs build -A i586 --threads=4 --clean-once --exclude=gcc,cmake,filesystem,aul,libmm-sound,libtool


and still have the issue.


Thanks
________________________________
From: ruix.lv at intel.com<mailto:ruix.lv at intel.com>
To: joa_rodrigues at hotmail.com<mailto:joa_rodrigues at hotmail.com>; dev at lists.tizen.org<mailto:dev at lists.tizen.org>
Subject: RE: [Dev] error building tizen common image
Date: Tue, 2 Sep 2014 04:51:18 +0000
Hi Joachim,

We've performed verification on our side, it worked pretty well.

Please attach the following materials for us to further analyze and provide practical solution for you:
* ~/GBS-ROOT/local/order/.repo.cache
* .gbs.conf
* building procedure (starting from repo init)

Rui

From: joachim rodrigues [mailto:joa_rodrigues at hotmail.com]
Sent: Tuesday, September 02, 2014 5:03 AM
To: Lv, RuiX; dev at lists.tizen.org<mailto:dev at lists.tizen.org>
Subject: Re: [Dev] error building tizen common image

Hi

Thanks it worked.

But now i'm getting this error for command :
  gbs build -A i586


[  140s]
info: finished building tizen-extensions-crosswalk
info: updating local repo
69 blocs
info: *** Build Status Summary ***
=== the following packages failed to build due to missing build dependencies (2) ===
qemu-accel-armv7l:
  nothing provides cross-armv7l-gcc49-icecream-backend
qemu-accel-aarch64:
  nothing provides cross-aarch64-binutils
  nothing provides cross-aarch64-gcc49-icecream-backend

=== Total succeeded built packages: (22) ===
info: generated html format report:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/index.html
info: generated RPM packages can be found from local repo:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/RPMS
info: generated source RPM packages can be found from local repo:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/SRPMS
info: build logs can be found in:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs
info: build roots located in:
     /home/joachim/GBS-ROOT/local/BUILD-ROOTS/scratch.i586.*
error: <gbs>some packages failed to be built






in the report :
    /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/index.html
i can see that 2 packages are in error :

Expansion error detailsThe following packages have build dependencies issue:
Package name

Package path

Expansion error

qemu-accel-armv7l

/home/joachim/tizen_common_profile/platform/upstream/qemu-accel

nothing provides cross-armv7l-gcc49-icecream-backend

qemu-accel-aarch64

/home/joachim/tizen_common_profile/platform/upstream/qemu-accel

nothing provides cross-aarch64-binutils
nothing provides cross-aarch64-gcc49-icecream-backend


Then i also have 3 error logs  :

less /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs/fail/capi-appfw-application-0.1.0-55/log.txt
contains :

    [  104s] [291/297] installing system-server-2.0.0-0
    [  104s]        file /usr/bin/set_pmon from install of system-server-2.0.0-0.i686 conflicts with file from package sysman-0.2.29-1.i686
    [  104s] exit ...








less less /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs/fail/capi-appfw-package-manager-0.0.30-1/log.txt
contains :

   [   23s] /usr/bin/cc  -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-  unwind-tables   -DSYSCONFDIR="/etc" -I/usr/include/aul -I/usr/include/vconf -I/usr/include/db-util -I/usr/include/security-server -I/usr/include/ -I/usr/include/dlog -I/usr/include/pkgmgr -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fPIC -Wall   -DSYSCONFDIR="/etc" -I/usr/include/aul -I/usr/include/vconf -I/usr/include/db-util -I/usr/include/security-server -I/usr/include/ -I/usr/include/dlog -I/usr/include/pkgmgr -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wl,-zdefs -fvisibility=hidden  -Wl,--as-needed -Wl,--rpath=/usr/lib CMakeFiles/pkgmgr_tool.dir/main.c.o  -o pkgmgr_tool -rdynamic ../libcapi-appfw-package-manager.so.0.0.30 -L/usr/lib/pkgmgr -laul -lbundle -lxdgmime -lail -lvconf -lSLP-db-util -lsqlite3 -licui18n -licuuc -licudata -lpkgmgr-client -lsecurity-server-client -lssl -lcrypto -lsmack -lprivilege-control -ldlog -lpkgmgr_installer_client -lpkgmgr_installer_status_broadcast_server -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lpkgmgr-info
[   23s] ../libcapi-appfw-package-manager.so.0.0.30: undefined reference to `pkgmgr_pkginfo_get_usr_list'
[   23s] collect2: error: ld returned 1 exit status
[   23s] make[2]: *** [tool/pkgmgr_tool] Error 1
[   23s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] make[1]: *** [tool/CMakeFiles/pkgmgr_tool.dir/all] Error 2
[   23s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] make: *** [all] Error 2
[   23s] error: Bad exit status from /var/tmp/rpm-tmp.1i0alt (%build)
[   23s]
[   23s]
[   23s] RPM build errors:
[   23s]     Bad exit status from /var/tmp/rpm-tmp.1i0alt (%build)
(END)













less /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs/fail/libzypp-12.11.0-1/log.txt
contains :
[  247s] cd /home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build/zypp && /usr/bin/c++   -DHAVE_PIPE2 -DHAVE_UDEV -DLOCALEDIR=\"/usr/share/locale\" -DTEXTDOMAIN=\"zypp\" -DVERSION=\"12.11.0\" -DWITH_DEPRECATED_HISTORYITEM_API=1 -DZYPP_DLL -D_FILE_OFFSET_BITS=64 -D_RPM_4_X -D_WITH_LIBPROXY_SUPPORT_ -Dzypp_EXPORTS -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -fvisibility-inlines-hidden -fno-strict-aliasing -fPIC -g -rdynamic -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed -std=c++0x -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -fvisibility-inlines-hidden -fno-strict-aliasing -fPIC -g -rdynamic -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed -std=c++0x -O3 -fPIC -I/home/abuild/rpmbuild/BUILD/libzypp-12.11.0 -I/home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build -I/usr/include/rpm -I/home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build/zypp    -DZYPP_BASE_LOGGER_LOGGROUP=\"zypp\" -o CMakeFiles/zypp.dir/base/IOStream.cc.o -c /home/abuild/rpmbuild/BUILD/libzypp-12.11.0/zypp/base/IOStream.cc
[  247s] Building CXX object zypp/CMakeFiles/zypp.dir/base/InputStream.cc.o
[  247s] cd /home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build/zypp && /usr/bin/c++   -DHAVE_PIPE2 -DHAVE_UDEV -DLOCALEDIR=\"/usr/share/locale\" -DTEXTDOMAIN=\"zypp\" -DVERSION=\"12.11.0\" -DWITH_DEPRECATED_HISTORYITEM_API=1 -DZYPP_DLL -D_FILE_OFFSET_BITS=64 -D_RPM_4_X -D_WITH_LIBPROXY_SUPPORT_ -Dzypp_EXPORTS -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -fvisibility-inlines-hidden -fno-strict-aliasing -fPIC -g -rdynamic -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed -std=c++0x -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -fvisibility-inlines-hidden -fno-strict-aliasing -fPIC -g -rdynamic -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed -std=c++0x -O3 -fPIC -I/home/abuild/rpmbuild/BUILD/libzypp-12.11.0 -I/home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build -I/usr/include/rpm -I/home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build/zypp    -DZYPP_BASE_LOGGER_LOGGROUP=\"zypp\" -o CMakeFiles/zypp.dir/base/InputStream.cc.o -c /home/abuild/rpmbuild/BUILD/libzypp-12.11.0/zypp/base/InputStream.cc
[  248s] make[2]: *** [zypp/CMakeFiles/zypp.dir/sat/detail/PoolImpl.cc.o] Error 1
[  248s] make[2]: *** Waiting for unfinished jobs....
[  255s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build'
[  255s] make[1]: *** [zypp/CMakeFiles/zypp.dir/all] Error 2
[  255s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/libzypp-12.11.0/build'
[  255s] make: *** [all] Error 2
[  255s] error: Bad exit status from /var/tmp/rpm-tmp.huYjtm (%build)
[  255s]
[  255s]
[  255s] RPM build errors:
[  255s]     Bad exit status from /var/tmp/rpm-tmp.huYjtm (%build)
(END)


Thanks in advance

Joachim



Le 01/09/2014 09:21, Lv, RuiX a écrit :
Hi Joachim,

The HEAD of accepted/tizen_common branch is now pointing to 3816771a0d93fdd9ec9c7be9751ace9df7d315af.
Please sync latest code of platform/core/appfw/slp-pkgmgr and try again.

Rui

From: Lv, RuiX
Sent: Monday, September 01, 2014 11:03 AM
To: 'joachim rodrigues'; dev at lists.tizen.org<mailto:dev at lists.tizen.org>
Subject: RE: [Dev] error building tizen common image

Hi Joachim,

After analyzing the build log,
I find that the revision of the package  "platform/core/appfw/slp-pkgmgr"  that defines  "pkgmgr_pkginfo_get_usr_list" is not up to date.

The correct revision is as follows:
VCS         : platform/core/appfw/slp-pkgmgr#3816771a0d93fdd9ec9c7be9751ace9df7d315af

Root cause is: Release engineer has not synced latest change on OBS to accepted/tizen_common branch.
I'll contact responsible release engineer and fix the issue ASAP.

Rui

From: Dev [mailto:dev-bounces at lists.tizen.org] On Behalf Of joachim rodrigues
Sent: Saturday, August 30, 2014 8:26 PM
To: dev at lists.tizen.org<mailto:dev at lists.tizen.org>
Subject: [Dev] error building tizen common image

Hi all,

I'm trying to build an image following this tutorial :

https://source.tizen.org/documentation/developer-guide/getting-started-guide/building-packages-locally-gbs

When i run this command :

gbs build -A i586

I'm getting this error :



=== the following packages failed to build due to rpmbuild issue (2) ===
capi-appfw-package-manager: /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs/fail/capi-appfw-package-manager-0.0.30-1/log.txt
libzypp: /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs/fail/libzypp-12.11.0-1/log.txt
=== Total succeeded built packages: (22) ===
info: generated html format report:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/index.html
info: generated RPM packages can be found from local repo:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/RPMS
info: generated source RPM packages can be found from local repo:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/SRPMS
info: build logs can be found in:
     /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs
info: build roots located in:
     /home/joachim/GBS-ROOT/local/BUILD-ROOTS/scratch.i586.*
error: <gbs>some packages failed to be built







Then i opened the log :


less  /home/joachim/GBS-ROOT/local/repos/tizen3.0_common/i586/logs/fail/capi-appfw-package-manager-0.0.30-1/log.txt





lient -lsecurity-server-client -lssl -lcrypto -lsmack -lprivilege-control -ldlog -lpkgmgr_installer_client -lpkgmgr_installer_status_broadcast_server -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lpkgmgr-info
[   23s] /usr/bin/cmake -E cmake_symlink_library libcapi-appfw-package-manager.so.0.0.30 libcapi-appfw-package-manager.so.0 libcapi-appfw-package-manager.so
[   23s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] /usr/bin/cmake -E cmake_progress_report /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/CMakeFiles  1 2
[   23s] [ 66%] Built target capi-appfw-package-manager
[   23s] make -f tool/CMakeFiles/pkgmgr_tool.dir/build.make tool/CMakeFiles/pkgmgr_tool.dir/depend
[   23s] make[2]: Entering directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] cd /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30 /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/tool /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30 /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/tool /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/tool/CMakeFiles/pkgmgr_tool.dir/DependInfo.cmake --color=
[   23s] Scanning dependencies of target pkgmgr_tool
[   23s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] make -f tool/CMakeFiles/pkgmgr_tool.dir/build.make tool/CMakeFiles/pkgmgr_tool.dir/build
[   23s] make[2]: Entering directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] /usr/bin/cmake -E cmake_progress_report /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/CMakeFiles 3
[   23s] [100%] Building C object tool/CMakeFiles/pkgmgr_tool.dir/main.c.o
[   23s] cd /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/tool && /usr/bin/cc  -DPREFIX=\"/usr\" -DSLP_DEBUG -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables   -DSYSCONFDIR="/etc" -I/usr/include/aul -I/usr/include/vconf -I/usr/include/db-util -I/usr/include/security-server -I/usr/include/ -I/usr/include/dlog -I/usr/include/pkgmgr -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fPIC -Wall   -DSYSCONFDIR="/etc" -I/usr/include/aul -I/usr/include/vconf -I/usr/include/db-util -I/usr/include/security-server -I/usr/include/ -I/usr/include/dlog -I/usr/include/pkgmgr -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wl,-zdefs -fvisibility=hidden -I/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/include    -o CMakeFiles/pkgmgr_tool.dir/main.c.o   -c /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/tool/main.c
[   23s] Linking C executable pkgmgr_tool
[   23s] cd /home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30/tool && /usr/bin/cmake -E cmake_link_script CMakeFiles/pkgmgr_tool.dir/link.txt --verbose=1
[   23s] /usr/bin/cc  -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables   -DSYSCONFDIR="/etc" -I/usr/include/aul -I/usr/include/vconf -I/usr/include/db-util -I/usr/include/security-server -I/usr/include/ -I/usr/include/dlog -I/usr/include/pkgmgr -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fPIC -Wall   -DSYSCONFDIR="/etc" -I/usr/include/aul -I/usr/include/vconf -I/usr/include/db-util -I/usr/include/security-server -I/usr/include/ -I/usr/include/dlog -I/usr/include/pkgmgr -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wl,-zdefs -fvisibility=hidden  -Wl,--as-needed -Wl,--rpath=/usr/lib CMakeFiles/pkgmgr_tool.dir/main.c.o  -o pkgmgr_tool -rdynamic ../libcapi-appfw-package-manager.so.0.0.30 -L/usr/lib/pkgmgr -laul -lbundle -lxdgmime -lail -lvconf -lSLP-db-util -lsqlite3 -licui18n -licuuc -licudata -lpkgmgr-client -lsecurity-server-client -lssl -lcrypto -lsmack -lprivilege-control -ldlog -lpkgmgr_installer_client -lpkgmgr_installer_status_broadcast_server -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lpkgmgr-info
[   23s] ../libcapi-appfw-package-manager.so.0.0.30: undefined reference to `pkgmgr_pkginfo_get_usr_list'
[   23s] collect2: error: ld returned 1 exit status
[   23s] make[2]: *** [tool/pkgmgr_tool] Error 1
[   23s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] make[1]: *** [tool/CMakeFiles/pkgmgr_tool.dir/all] Error 2
[   23s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/capi-appfw-package-manager-0.0.30'
[   23s] make: *** [all] Error 2
[   23s] error: Bad exit status from /var/tmp/rpm-tmp.1i0alt (%build)
[   23s]
[   23s]
[   23s] RPM build errors:
[   23s]     Bad exit status from /var/tmp/rpm-tmp.1i0alt (%build)
(END)






But as i'm novice i'm not understanding this error

can someone help ?

Thanks







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20140903/e43bc0a2/attachment-0001.html>


More information about the Dev mailing list