rpmbuild - Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build) -
i trying compile tizen source code. compilation tools uses rpm build environment. while compiling specific package i'm getting rpm build issue "bad exit status /var/tmp/rpm-tmp.b1dgat (%build)"
here build log
building cxx object cmakefiles/osp-messaging.dir/src/fmsg_pushurlrequestlistener.cpp.o [ 8s] [ 69%] building cxx object cmakefiles/osp-messaging.dir src/fmsg_wappushmanagerimpl.cpp.o [ 8s] [ 71%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_wappushmessageimpl.cpp.o [ 8s] [ 73%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_composerevent.cpp.o [ 8s] [ 75%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_composereventarg.cpp.o [ 8s] [ 77%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_recipientlistimpl.cpp.o [ 8s] [ 79%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_smsevent.cpp.o [ 8s] [ 81%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_smseventarg.cpp.o [ 9s] [ 83%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_smsmanagerimpl.cpp.o [ 9s] [ 85%] [ 87%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_smsmessageimpl.cpp.o [ 9s] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_cbschannelimpl.cpp.o [ 9s] [ 89%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_cbsmessageimpl.cpp.o [ 9s] [ 91%] [ 93%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_etwsprimarynotificationimpl.cpp.o [ 9s] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_msgutil.cpp.o [ 9s] [ 95%] [ 97%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_smsmmscallbackhandler.cpp.o [ 9s] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_messagingmessagetypes.cpp.o [ 9s] [100%] building cxx object cmakefiles/osp-messaging.dir/src/fmsg_messagingipcproxy.cpp.o [ 10s] in file included /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingmessagetypes.cpp:24:0: [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:35:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:37:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:38:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:42:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:43:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:45:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc /fmsg_messagingmessagetypes.h:46:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:49:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:50:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:51:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:52:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:53:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:54:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:55:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:56:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:61:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:63:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:64:1: error: 'messagingmsgstart' not declared in scope [ 10s] in file included /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingmessagetypes.cpp:24:0: [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:65:1: error: 'messagingmsgstart' not declared in scope [ 10s] make[2]: *** [cmakefiles/osp-messaging.dir/src/fmsg_messagingmessagetypes.cpp.o] error 1 [ 10s] make[2]: *** waiting unfinished jobs.... [ 10s] in file included /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:31:0: [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:35:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:37:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:38:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:42:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:43:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:45:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:46:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:49:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:50:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:51:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:52:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:53:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:54:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:55:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:56:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:61:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:63:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:64:1: error: 'messagingmsgstart' not declared in scope [ 10s] in file included /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:31:0: [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/inc/fmsg_messagingmessagetypes.h:65:1: error: 'messagingmsgstart' not declared in scope [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp: in member function 'virtual void tizen::messaging::_messagingproxy::onipcresponsereceived(tizen::io::_ipcclient&, const ipc::message&)': [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:122:2: error: duplicate case value [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:121:2: error: used here [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:123:2: error: duplicate case value [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:121:2: error: used here [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:124:2: error: duplicate case value [ 10s] /home/abuild/rpmbuild/build/osp-messaging-1.2.2.0/src/fmsg_messagingipcproxy.cpp:121:2: error: used here [ 10s] make[2]: *** [cmakefiles/osp-messaging.dir/src/fmsg_messagingipcproxy.cpp.o] error 1 [ 11s] make[1]: *** [cmakefiles/osp-messaging.dir/all] error 2 [ 11s] make: *** [all] error 2 [ 11s] error: bad exit status /var/tmp/rpm-tmp.b1dgat (%build) [ 11s] [ 11s] [ 11s] rpm build errors: [ 11s] bad exit status /var/tmp/rpm-tmp.b1dgat (%build)
i'm using following spec file
%define _debug_package %{nil} %define __strip /bin/true name: osp-messaging summary: osp messaging library version: 1.2.2.0 release: 2 group: system/libraries license: apache license, version 2.0 source0: %{name}-%{version}.tar.gz buildrequires: cmake buildrequires: pkgconfig(chromium) buildrequires: pkgconfig(capi-appfw-application) buildrequires: pkgconfig(msg-service) buildrequires: pkgconfig(push) buildrequires: pkgconfig(dbus-1) buildrequires: pkgconfig(dbus-glib-1) buildrequires: pkgconfig(email-service) buildrequires: pkgconfig(pkgmgr) buildrequires: pkgconfig(glib-2.0) buildrequires: pkgconfig(libwbxml2) buildrequires: pkgconfig(osp-appfw) buildrequires: osp-appfw-internal-devel buildrequires: pkgconfig(osp-net) buildrequires: osp-net-internal-devel buildrequires: pkgconfig(osp-bluetooth) buildrequires: pkgconfig(osp-nfc) buildrequires: pkgconfig(osp-json) buildrequires: pkgconfig(osp-shell) # runtime requires requires: osp-appfw requires: osp-bluetooth requires: osp-nfc requires: osp-json requires: osp-shell %description osp messaging library %package devel summary: osp messaging library (development) group: to_be/filled_in requires: %{name} = %{version}-%{release} %description devel osp messaging library (dev) %package internal-devel summary: osp messaging library (internal) group: to_be/filled_in requires: %{name} = %{version}-%{release} %description internal-devel osp messaging library (internal-dev) %package debug summary: osp messaging library (development) group: to_be/filled_in requires: %{name} = %{version}-%{release} %description debug osp messaging library (dev) %prep %setup -q %build %if 0%{?tizen_build_binary_release_type_eng} cxxflags="$cxxflags -d_secure_log" %endif majorver=`echo %{version} | awk 'begin {fs="."}{print $1}'` %ifarch %{ix86} %if 0%{?simulator} cxxflags="$cxxflags -d_osp_debug_ -d_osp_x86_ -d_osp_emul_" cmake . -dcmake_install_prefix=%{_prefix} -dfullver=%{version} -dmajorver=${majorver} %else cxxflags="$cxxflags -d_osp_debug_ -d_osp_x86_ " cmake . -dcmake_install_prefix=%{_prefix} -dfullver=%{version} -dmajorver=${majorver} %endif %else %if 0%{?tizen_build_binary_release_type_eng} cxxflags="-o2 -g -pipe -wall -fno-exceptions -wformat -wformat-security -wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -d__softfp__ -mthumb -wa,-mimplicit-it=thumb -funwind-tables -d_osp_debug_ -d_secure_log -d_osp_armel_" cmake . -dcmake_install_prefix=%{_prefix} -dfullver=%{version} -dmajorver=${majorver} %else cxxflags="-o2 -g -pipe -wall -fno-exceptions -wformat -wformat-security -wl,--as-needed v-fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -d__softfp__ -mthumb -wa,-mimplicit-it=thumb -funwind-tables -d_osp_debug_ -d_osp_armel_" cmake . -dcmake_install_prefix=%{_prefix} -dfullver=%{version} -dmajorver=${majorver} %endif %endif # call make instruction smp support make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/license cp %{_builddir}/%{name}-%{version}/license.aplv2 %{buildroot}/usr/share/license/%{name} %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest osp-messaging.manifest /usr/share/license/%{name} %{_libdir}/osp/*.so* %files devel %{_includedir}/osp/*.h %{_libdir}/pkgconfig/osp-messaging.pc %files internal-devel %{_includedir}/osp/messaging/*.h %files debug %{_libdir}/osp/debug/*.so*
the error related rpm build, can me in solving rpm error?
the above errors because of linking of files @ runtime rpm build environment , hence showing errors under build
section of spec file
to solve above errors add following line @ beginning of spec file of package
%define __debug_package %{nil}
if there similar code(%define ^_debug_package %{nil}) replace above code
the errors in osp
packages can solved adding above line spec file.
and make sure use release repo url compilation, can use following release repo url
Comments
Post a Comment