[yocto] DEPENDS and -native for recipes

2018-08-24 Thread Anoop Karollil
I am trying to understand why you would use a *-native* version of a recipe.

My understanding is that you would use say openssl-native as a DEPENDS for
a recipe if the recipe is using openssl for a step that doesn't require
openssl to be built for the target machine. For example say signing an
artifact built by the recipe which is independent of the target machine
architecture, but needs to be able to run on the host machine natively. And
since its built for the host build machine, it won't get included in the
target machine image. If the recipe then invokes openssl, I am guessing
bitbake is smart enough to run the openssl that was compiled for the host
when building the package and not say the openssl actually present on the
host. I couldn't find anything in
https://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html
that describes *-native. *Is this documented somewhere?

I ran into trouble building a package that depended on glib-2.0. I had to
include both glib-2.0 as well as glib-2.0-native to get the package to
build successfully consistently - it succeeded sometimes but failed other
times. I see other people have had similar issues (
http://lists.openembedded.org/pipermail/openembedded-core/2017-January/132067.html)
where they have had to include both glib-2.0 and also glib-2.0-native even
though glib-2.0 depends on glib-2.0-native (
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/glib-2.0/glib.inc?h=pyro#n22).
I am guessing its a problem with the glib-2.0 recipe?

Thanks,
Anoop
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Bitbake Failure

2014-08-26 Thread Anoop
Hi 

I'm facing the following error. Not able to figure out what is the failure 
cause I'm I missing any specific steps. Please support do_rootfs
Host OS and architecture  - -Ubuntu SMP i686/ i386 GNU/Linux
Target architecture/BSP - iMX6 Sabre / meta-fsl-arm
The build image  - tizen-common-core-image-minimal-dev

Below is the log

DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel imx6qsabreauto (65)
NOTE: Note: adding Smart channel cortexa9hf_vfp_neon_mx6 (60)
NOTE: Note: adding Smart channel cortexa9hf_vfp_neon (55)
NOTE: Note: adding Smart channel all (50)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: ## Generate rootfs ###
NOTE: Executing '/home/sfm/YOCTO/build/tmp/sysroots/i686-
linux/usr/bin/createrepo --update -q 
/home/sfm/YOCTO/build/tmp/deploy/rpm/cortexa9hf_vfp_neon_mx6' ...
NOTE: Executing '/home/sfm/YOCTO/build/tmp/sysroots/i686-
linux/usr/bin/createrepo --update -q 
/home/sfm/YOCTO/build/tmp/deploy/rpm/cortexa9hf_vfp_neon' ...
NOTE: Executing '/home/sfm/YOCTO/build/tmp/sysroots/i686-
linux/usr/bin/createrepo --update -q 
/home/sfm/YOCTO/build/tmp/deploy/rpm/imx6qsabreauto' ...
NOTE: Executing '/home/sfm/YOCTO/build/tmp/sysroots/i686-
linux/usr/bin/createrepo --update -q 
/home/sfm/YOCTO/build/tmp/deploy/rpm/all' ...
NOTE: Installing the following packages: packagegroup-core-ssh-dropbear rpm-
security-plugin user-session-units less default-ac-domains psplash weston 
rpm weston-common-config meta-common connman smartpm kernel-modules 
coreutils weston-init weston-examples pam packagegroup-core-boot mesa-
megadriver libgbm weston-common-tz-launcher clutter-1.0-examples bash 
weston-common desktop-skin psmisc config-image packagegroup-base-extended 
procps locale-base-en-us locale-base-en-gb
NOTE: to be installed: packagegroup-core-ssh-dropbear@all rpm-security-
plugin@cortexa9hf_vfp_neon user-session-units@cortexa9hf_vfp_neon 
less@cortexa9hf_vfp_neon default-ac-domains@cortexa9hf_vfp_neon 
psplash@cortexa9hf_vfp_neon weston@cortexa9hf_vfp_neon_mx6 
rpm@cortexa9hf_vfp_neon weston-common-config@cortexa9hf_vfp_neon meta-
common@cortexa9hf_vfp_neon connman@cortexa9hf_vfp_neon 
smartpm@cortexa9hf_vfp_neon kernel-modules@imx6qsabreauto 
coreutils@cortexa9hf_vfp_neon weston-init@all weston-
examples@cortexa9hf_vfp_neon_mx6 pam@cortexa9hf_vfp_neon packagegroup-core-
boot@imx6qsabreauto mesa-megadriver@cortexa9hf_vfp_neon_mx6 
libgbm@cortexa9hf_vfp_neon_mx6 weston-common-tz-launcher@cortexa9hf_vfp_neon 
clutter-1.0-examples@cortexa9hf_vfp_neon_mx6 bash@cortexa9hf_vfp_neon 
weston-common@cortexa9hf_vfp_neon desktop-skin@cortexa9hf_vfp_neon 
psmisc@cortexa9hf_vfp_neon config-image@cortexa9hf_vfp_neon packagegroup-
base-extended@imx6qsabreauto procps@cortexa9hf_vfp_neon locale-base-en-
us@cortexa9hf_vfp_neon locale-base-en-gb@cortexa9hf_vfp_neon
NOTE: /home/sfm/YOCTO/build/tmp/sysroots/i686-linux/usr/bin/smart --data-
dir=/home/sfm/YOCTO/build/tmp/work/imx6qsabreauto-poky-linux-gnueabi/tizen-
common-core-image-minimal/1.0-r0/rootfs/var/lib/smart install -y 
packagegroup-core-ssh-dropbear@all rpm-security-plugin@cortexa9hf_vfp_neon 
user-session-units@cortexa9hf_vfp_neon less@cortexa9hf_vfp_neon default-ac-
domains@cortexa9hf_vfp_neon psplash@cortexa9hf_vfp_neon 
weston@cortexa9hf_vfp_neon_mx6 rpm@cortexa9hf_vfp_neon weston-common-
config@cortexa9hf_vfp_neon meta-common@cortexa9hf_vfp_neon 
connman@cortexa9hf_vfp_neon smartpm@cortexa9hf_vfp_neon kernel-
modules@imx6qsabreauto coreutils@cortexa9hf_vfp_neon weston-init@all weston-
examples@cortexa9hf_vfp_neon_mx6 pam@cortexa9hf_vfp_neon packagegroup-core-
boot@imx6qsabreauto mesa-megadriver@cortexa9hf_vfp_neon_mx6 
libgbm@cortexa9hf_vfp_neon_mx6 weston-common-tz-launcher@cortexa9hf_vfp_neon 
clutter-1.0-examples@cortexa9hf_vfp_neon_mx6 bash@cortexa9hf_vfp_neon 
weston-common@cortexa9hf_vfp_neon desktop-skin@cortexa9hf_vfp_neon 
psmisc@cortexa9hf_vfp_neon config-image@cortexa9hf_vfp_neon packagegroup-
base-extended@imx6qsabreauto procps@cortexa9hf_vfp_neon locale-base-en-
us@cortexa9hf_vfp_neon locale-base-en-gb@cortexa9hf_vfp_neon
ERROR: Unable to install packages. Command 
'/home/sfm/YOCTO/build/tmp/sysroots/i686-linux/usr/bin/smart --data-
dir=/home/sfm/YOCTO/build/tmp/work/imx6qsabreauto-poky-linux-gnueabi/tizen-
common-core-image-minimal/1.0-r0/rootfs/var/lib/smart install -y 
packagegroup-core-ssh-dropbear@all rpm-security-plugin@cortexa9hf_vfp_neon 
user-session-units@cortexa9hf_vfp_neon less@cortexa9hf_vfp_neon default-ac-
domains@cortexa9hf_vfp_neon psplash@cortexa9hf_vfp_neon 
weston@cortexa9hf_vfp_neon_mx6

[yocto] Tizen Build Using Yocto - bitbake error mesa_10.1.3.bb,do_configure

2014-08-21 Thread Anoop
Hi

Yocto Build for minimal image

Summary: 1 task failed:
  /home/sfm/YOCTO/poky/meta/recipes-graphics/mesa/mesa_10.1.3.bb, 
do_configure

*
configure: error: Package requirements (x11-xcb xcb-dri2 >= 1.8 xcb-xfixes) 
were not met:

No package 'x11-xcb' found
No package 'xcb-dri2' found
No package 'xcb-xfixes' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XCB_DRI2_CFLAGS
and XCB_DRI2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

+ '[' 1 '!=' 0 ']'
+ echo 'Configure failed. The contents of all config.log files follows to 
aid debugging'
Configure failed. The contents of all config.log files follows to aid 
debugging
+ find /home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-
gnueabi/mesa/2_10.1.3-r0/Mesa-10.1.3 -name config.log -print -exec cat '{}' 
';'

+ bbfatal 'oe_runconf failed'
+ echo 'ERROR: oe_runconf failed'
ERROR: oe_runconf failed
+ exit 1
+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING: /home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-
poky-linux-gnueabi/mesa/2_10.1.3-r0/temp/run.do_configure.12232:1 exit 1 
from
  exit' 1
WARNING: /home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-
gnueabi/mesa/2_10.1.3-r0/temp/run.do_configure.12232:1 exit 1 from
  exit 1
+ exit 1

CTO/build/tmp/sysroots/i686-linux/usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-
interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --
sysroot=/home/sfm/YOCTO/build/tmp/sysroots/imx6qsabreauto supports -
Werror=missing-prototypes... yes
checking whether arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-
interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --
sysroot=/home/sfm/YOCTO/build/tmp/sysroots/imx6qsabreauto supports -
fvisibility=hidden... yes
checking whether arm-poky-linux-gnueabi-g++  -march=armv7-a -mthumb-
interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --
sysroot=/home/sfm/YOCTO/build/tmp/sysroots/imx6qsabreauto supports -
fvisibility=hidden... yes
checking whether C compiler accepts -msse4.1... no
checking whether to enable assembly... no, platform not supported
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for clock_gettime... yes
checking for posix_memalign... (cached) yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
configure: WARNING: GLX disabled, disabling Xlib-GLX
checking for LIBDRM... yes
checking for LIBUDEV... yes
checking for EXPAT... yes
checking for mincore... yes
checking for XCB_DRI2... no
configure: error: Package requirements (x11-xcb xcb-dri2 >= 1.8 xcb-xfixes) 
were not met:

No package 'x11-xcb' found
No package 'xcb-dri2' found
No package 'xcb-xfixes' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XCB_DRI2_CFLAGS
and XCB_DRI2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
+ '[' 1 '!=' 0 ']'
+ echo 'Configure failed. The contents of all config.log files follows to 
aid debugging'
Configure failed. The contents of all config.log files follows to aid 
debugging
+ find /home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-
gnueabi/mesa/2_10.1.3-r0/Mesa-10.1.3 -name config.log -print -exec cat '{}' 
';'
+ bbfatal 'oe_runconf failed'
+ echo 'ERROR: oe_runconf failed'
ERROR: oe_runconf failed
+ exit 1
+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING: /home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-
poky-linux-gnueabi/mesa/2_10.1.3-r0/temp/run.do_configure.12232:1 exit 1 
from
  exit' 1
WARNING: /home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-
gnueabi/mesa/2_10.1.3-r0/temp/run.do_configure.12232:1 exit 1 from
  exit 1
+ exit 1
ERROR: Function failed: do_configure (log file is located at 
/home/sfm/YOCTO/build/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-
gnueabi/mesa/2_10.1.3-r0/temp/log.do_configure.12232)

Please give inputs to resolve the error

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Tizen Bitbake error - systemd

2014-07-30 Thread Anoop

Tizen yocto build bitbake error

Summary: 1 task failed:
  /home/sfm/yocto_temp/meta-tizen/recipes-tizen/systemd/systemd_git.bb, 
do_install
+ /usr/bin/mkdir -p /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-
poky-linux-gnueabi/systemd/git-r0/image//usr/sbin

/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/temp/run.do_install.17788: line 131: /usr/bin/mkdir: 
No such file or directory
+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING: /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-
poky-linux-gnueabi/systemd/git-r0/temp/run.do_install.17788:1 exit 1 from
  /usr/bin/mkdir' -p /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-
neon-poky-linux-gnueabi/systemd/git-r0/image//usr/sbin
WARNING: /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/temp/run.do_install.17788:1 exit 1 from
  /usr/bin/mkdir -p /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-
poky-linux-gnueabi/systemd/git-r0/image//usr/sbin
+ exit 1

ERROR: Function failed: do_install (log file is located at 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/temp/log.do_install.17788)
ERROR: Logfile of failure stored in: 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/temp/log.do_install.17788
NOTE: recipe systemd-git-r0: task do_install: Failed
checking if gcc  supports -fno-rtti -fno-exceptions... 
ERROR: Task 1466 (/home/sfm/yocto_temp/meta-tizen/recipes-
tizen/systemd/systemd_git.bb, do_install) failed with exit code '1'


***do install log file

+ rm -f /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image/usr/share/info/dir
+ find /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image -regex '.*\.la$'
+ xargs rm -f --

+ find /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image -regex '.*\.a$'

+ xargs rm -f --

+ /usr/bin/mkdir -p /home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-
poky-linux-gnueabi/systemd/git-r0/image//usr/sbin

xa9hf-vfp-neon-poky-linux-gnueabi/systemd/git-r0/image$dir/$2 && ln -s $1 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image$dir/$2 && shift 2 || exit $?; done
unable to set CAP_SETFCAP effective capability: Operation not permitted
Makefile:14448: recipe for target 'systemd-detect-virt-install-hook' failed
make[4]: [systemd-detect-virt-install-hook] Error 1 (ignored)
what="systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-
journald.socket systemd-initctl.socket systemd-shutdownd.socket" && 
wants=sockets.target && [ -z "$what" ] || ( 
dir=/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image/usr/lib/systemd/system/$wants.wants && 
/bin/mkdir -p -m 0755 $dir && cd $dir && rm -f $what && for i in $what; do 
ln -s ../$i . || exit $? ; done )
what="systemd-tmpfiles-clean.timer" && wants=timers.target &&   [ -z "$what" 
] || ( dir=/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-
linux-gnueabi/systemd/git-r0/image/usr/lib/systemd/system/$wants.wants && 
/bin/mkdir -p -m 0755 $dir && cd $dir && rm -f $what && for i in $what; do 
ln -s ../$i . || exit $? ; done )
setfacl -nm g:wheel:rx,d:g:wheel:rx 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image/var/log/journal/
setfacl: Option -m: Invalid argument near character 3
Makefile:14536: recipe for target 'libsystemd-journal-install-hook' failed
make[4]: [libsystemd-journal-install-hook] Error 2 (ignored)
what="" && wants=slices.target &&   [ -z "$what" ] || ( 
dir=/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image/usr/lib/systemd/system/$wants.wants && 
/bin/mkdir -p -m 0755 $dir && cd $dir && rm -f $what && for i in $what; do 
ln -s ../$i . || exit $? ; done )
set -- /usr/lib/systemd/system/remote-fs.target /etc/systemd/system/multi-
user.target.wants/remote-fs.target /usr/lib/systemd/system/getty@.service 
/etc/systemd/system/getty.target.wants/getty@tty1.service /etc/systemd/user 
/etc/xdg/systemd/user ../system-services/org.freedesktop.systemd1.service 
/usr/share/dbus-1/services/org.freedesktop.systemd1.service && \
dir= && while [ -n "$1" ]; do /bin/mkdir -p `dirname 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image$dir/$2` && rm -f 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image$dir/$2 && ln -s $1 
/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/image$dir/$2 && shift 2 || exit $?; done
Making install in po
linguas=""; \
for lang in $linguas; do \
  dir=/home/sfm/yocto_temp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-
gnueabi/systemd/git-r0/

Re: [yocto] Bitbake error for rpm-native -- do compile failed

2014-07-25 Thread Anoop Babu
Dear Ross,

My apologies for pushing all issues to yocto forum. Can you please let me
know the meta-tizen  forum.

I had started bitbake procedure after cloning below mentioned repo

git clone ssh://${YOUR_TIZEN_ID}@review.tizen.org:29418/scm/bb/meta-tizen

Today did a fetch from tizen branch. I saw lot of changes being pulled in.
But unfortunately the rpm-native compile issue did not goaway.

Can you confirm this is the same repo to fetch latest revisions as
mentioned by you. Is it to any specific branch?

Thanks once again for the wonderful support.

best regards
Anoop


Best regards
 A.B
P Please think about the environment before printing this e-mail

*7 Switch off as you go | qAlways recycle | P Save a tree...please don't
print this e-mail unless you really need to.*


On Thu, Jul 24, 2014 at 7:06 PM, Burton, Ross  wrote:

> On 24 July 2014 14:29, Anoop  wrote:
> > + export CCFLAGS+= -fPIC
> > /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
> > r0/temp/run.do_compile.26826: 120: export: CCFLAGS+: bad variable name
>
> += is a bash extension and those scripts are not running under bash.
>
> This has been fixed in meta-tizen.  *Please* fetch the latest revisions.
>
> Also, this isn't the best list for problems with meta-tizen as
> meta-tizen isn't part of the Yocto project - you'll be better off
> contacting the maintainers directly or filing bugs in their issue
> tracker.
>
> Ross
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto Bitbake Error - rmp-native task failure

2014-07-25 Thread Anoop Babu
thank you I applied the patch the earlier stated error is not seen . but I
have hit on another error.

Patch redhat-portability.diff does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in:
/home/sfm/yocto_temp/build/tmp/work/i686-linux/elfutils-native/0.158-r0/temp/log.do_patch.3531
ERROR: Task 993
(virtual:native:/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/
elfutils_0.158.bb, do_patch) failed with exit code '1'

have come across this error?

Best regards
 A.B
P Please think about the environment before printing this e-mail

*7 Switch off as you go | qAlways recycle | P Save a tree...please don't
print this e-mail unless you really need to.*


On Thu, Jul 24, 2014 at 3:14 AM, Burton, Ross  wrote:

> On 23 July 2014 07:51, Anoop  wrote:
> > patch:  Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or
> > directory
>
> I just re-read this mail and remembered that this was a different
> problem with rpm-native, and I fixed it in oe-core/poky.  Their fork
> of poky has been updated to incorporate the fix but if you can't
> upgrade then cherry-pick this commit:
>
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=442efc3959a65fc9da73f79b3afda95d1cffadf3
>
> Sorry for the wrong reply at first, there are several ways that the
> meta-tizen rpm can fail... :/
>
> Ross
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Bitbake error for rpm-native -- do compile failed

2014-07-24 Thread Anoop

bitbake for imx6qsabreauto

command used 
bitbake -v tizen-common-core-image-minimal-dev

Summary: 1 task failed:
  virtual:native:/home/sfm/yocto_temp/meta-tizen/recipes-
tizen/rpm/rpm_git.bb, do_compile

+ CPPFLAGS=-isystem/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/include -I/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/include/nss3 
+ export CPPFLAGS
+ export LDFLAGS=-L/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/lib -L/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-
rpath-link,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib -Wl,-
rpath-link,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-
rpath,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib -Wl,-
rpath,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-O1 -Wl,-
Bsymbolic-functions -ffunction-sections
+ export CCFLAGS+= -fPIC 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/run.do_compile.26826: 120: export: CCFLAGS+: bad variable name
+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

ERROR: Function failed: do_compile (log file is located at 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/log.do_compile.26826)


*do compile log file*
DEBUG: Executing shell function do_compile
+ 
cd
 /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git


+ 
do_compile


+ 
cd
 /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git


+ 
LANG=C


+ 
export
 LANG


+ 
unset
 DISPLAY


+ 
LD_AS_NEEDED=1


+ 
export
 LD_AS_NEEDED


+ 
pkg-config
 --cflags
 nss


+ CPPFLAGS=-isystem/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/include -I/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/include/nss3 
+ export CPPFLAGS
+ export LDFLAGS=-L/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/lib -L/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-
rpath-link,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib -Wl,-
rpath-link,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-
rpath,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib -Wl,-
rpath,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-O1 -Wl,-
Bsymbolic-functions -ffunction-sections
+ export CCFLAGS+= -fPIC 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/run.do_compile.26826: 120: export: CCFLAGS+: bad variable name
+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ do_compile
+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ pkg-config --cflags nss
+ CPPFLAGS=-isystem/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/include -I/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/include/nss3 
+ export CPPFLAGS
+ export LDFLAGS=-L/home/sfm/yocto_temp/build/tmp/sysroots/i686-
linux/usr/lib -L/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-
rpath-link,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib -Wl,-
rpath-link,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-
rpath,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib -Wl,-
rpath,/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/lib -Wl,-O1 -Wl,-
Bsymbolic-functions -ffunction-sections
+ export CCFLAGS+= -fPIC 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/run.do_compile.26826: 120: export: CCFLAGS+: bad variable name
+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2
ERROR: Function failed: do_compile (log file is located at 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/log.do_compile.26826)

Request inputs to resolve this error

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake error for elfutils-native

2014-07-24 Thread Anoop
Thank you Ross for the wonderful support.
I cherrypicked the commit. The issue is resolved now.

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake error for elfutils-native

2014-07-24 Thread Anoop
Burton, Ross  writes:

> 
> On 24 July 2014 08:05, Anoop  wrote:
> > Patch redhat-portability.diff does not apply (enforce with -f)
> 
> Please update your poky, this has been fixed already and the
> meta-tizen fork of Poky has already integrated this fix.
> 
> (poky commit 52a6d20519870103134166d91e22d21fd736195d)
> 
> Ross

Ross
many thanks for the valuable input.
I had been building tizen with yocto based on the following link.

https://wiki.tizen.org/wiki/Build_Tizen_with_Yocto

For poky it is mentioned to use
git clone https://github.com/eurogiciel-oss/poky.git

I think the redhat-portability.diff file in the path 
/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils-0.158
as well as
/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils
might not have been updated based on the poky commit 
52a6d20519870103134166d91e22d21fd736195d.


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Bitbake error for elfutils-native

2014-07-24 Thread Anoop
bitbake for imx6qsabreauto

command used 
bitbake -v tizen-common-core-image-minimal-dev

I have applied fix to - meta/classes/patch.bbclass
i.e 
+ del os.environ['TMPDIR']

***Error Log
ERROR: Command Error: exit status: 1  Output:
Applying patch redhat-portability.diff
patching file backends/ChangeLog
patching file backends/Makefile.am
patching file backends/Makefile.in
patching file ChangeLog
patching file config/ChangeLog
patching file config/eu.am
patching file config/Makefile.in
Hunk #1 succeeded at 147 (offset 1 line).
Hunk #2 succeeded at 179 (offset 1 line).
patching file config.h.in
patching file configure
Hunk #1 FAILED at 661.
Hunk #2 FAILED at 678.
Hunk #3 FAILED at 802.
Hunk #4 FAILED at 1461.
Hunk #5 succeeded at 4943 with fuzz 1 (offset 234 lines).
Hunk #6 FAILED at 4869.
Hunk #7 succeeded at 5535 (offset 256 lines).
Hunk #8 FAILED at 6015.
Hunk #9 succeeded at 7010 with fuzz 1 (offset 257 lines).
6 out of 9 hunks FAILED -- rejects in file configure
patching file configure.ac
patching file lib/ChangeLog
patching file lib/eu-config.h
patching file lib/Makefile.in
patching file libasm/ChangeLog
patching file libasm/Makefile.in
patching file libcpu/ChangeLog
patching file libcpu/i386_disasm.c
patching file libcpu/Makefile.in
patching file libdw/ChangeLog
patching file libdw/dwarf_begin_elf.c
patching file libdw/libdw.h
patching file libdw/Makefile.in
patching file libdwfl/ChangeLog
patching file libdwfl/linux-core-attach.c
patching file libdwfl/linux-pid-attach.c
patching file libdwfl/Makefile.in
patching file libebl/ChangeLog
patching file libebl/Makefile.in
patching file libelf/ChangeLog
patching file libelf/common.h
patching file libelf/gnuhash_xlate.h
patching file libelf/Makefile.in
patching file m4/Makefile.in
patching file Makefile.in
patching file src/addr2line.c
patching file src/ChangeLog
patching file src/findtextrel.c
patching file src/ld.h
patching file src/Makefile.am
patching file src/Makefile.in
patching file src/readelf.c
patching file src/strings.c
patching file src/strip.c
patching file tests/backtrace.c
patching file tests/ChangeLog
patching file tests/line2addr.c
patching file tests/Makefile.in
Patch redhat-portability.diff does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/elfutils-native/0.158-
r0/temp/log.do_patch.3531
ERROR: Task 993 (virtual:native:/home/sfm/yocto_temp/poky/meta/recipes-
devtools/elfutils/elfutils_0.158.bb, do_patch) failed with exit code '1'


do patch log file

/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils/
/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/files/
NOTE: Applying patch 'redhat-portability.diff' (../poky/meta/recipes-
devtools/elfutils/elfutils-0.158/redhat-portability.diff)
ERROR: Command Error: exit status: 1  Output:
Applying patch redhat-portability.diff
patching file backends/ChangeLog
patching file backends/Makefile.am
patching file backends/Makefile.in
patching file ChangeLog
patching file config/ChangeLog
patching file config/eu.am
patching file config/Makefile.in
Hunk #1 succeeded at 147 (offset 1 line).
Hunk #2 succeeded at 179 (offset 1 line).
patching file config.h.in
patching file configure
Hunk #1 FAILED at 661.
Hunk #2 FAILED at 678.
Hunk #3 FAILED at 802.
Hunk #4 FAILED at 1461.
Hunk #5 succeeded at 4943 with fuzz 1 (offset 234 lines).
Hunk #6 FAILED at 4869.
Hunk #7 succeeded at 5535 (offset 256 lines).
Hunk #8 FAILED at 6015.
Hunk #9 succeeded at 7010 with fuzz 1 (offset 257 lines).
6 out of 9 hunks FAILED -- rejects in file configure
patching file configure.ac
patching file lib/ChangeLog
patching file lib/eu-config.h
patching file lib/Makefile.in
patching file libasm/ChangeLog
patching file libasm/Makefile.in
patching file libcpu/ChangeLog
patching file libcpu/i386_disasm.c
patching file libcpu/Makefile.in
patching file libdw/ChangeLog
patching file libdw/dwarf_begin_elf.c
patching file libdw/libdw.h
patching file libdw/Makefile.in
patching file libdwfl/ChangeLog
patching file libdwfl/linux-core-attach.c
patching file libdwfl/linux-pid-attach.c
patching file libdwfl/Makefile.in
patching file libebl/ChangeLog
patching file libebl/Makefile.in
patching file libelf/ChangeLog
patching file libelf/common.h
patching file libelf/gnuhash_xlate.h
patching file libelf/Makefile.in
patching file m4/Makefile.in
patching file Makefile.in
patching file src/addr2line.c
patching file src/ChangeLog
patching file src/findtextrel.c
patching file src/ld.h
patching file src/Makefile.am
patching file src/Makefile.in
patching file src/readelf.c
patching file src/strings.c
patching file src/strip.c
patching file tests/backtrace.c
patching file tests/ChangeLog
patching file tests/line2addr.c
patching file tests/Makefile.in
Patch redhat-portability.diff does not apply (enforce with -f)
DEBUG: Python function patch_do_patch finished
DEBUG: Python function do_patch

Re: [yocto] Yocto Bitbake Error - rmp-native task failure

2014-07-23 Thread Anoop
Burton, Ross  writes:

> 
> On 23 July 2014 07:51, Anoop  wrote:
> > patch:  Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or
> > directory
> 
> I just re-read this mail and remembered that this was a different
> problem with rpm-native, and I fixed it in oe-core/poky.  Their fork
> of poky has been updated to incorporate the fix but if you can't
> upgrade then cherry-pick this commit:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?
id=442efc3959a65fc9da73f79b3afda95d1cffadf3
> 
> Sorry for the wrong reply at first, there are several ways that the
> meta-tizen rpm can fail... :/
> 
> Ross

Once again thank you ross I could resolve the error with the stated changes 
you had mentioned




-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto Bitbake Error - rmp-native task failure

2014-07-23 Thread Anoop
Burton, Ross  writes:

> 
> On 23 July 2014 07:51, Anoop  wrote:
> > patch:  Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or
> > directory
> 
> This is a bug in the meta-tizen rpm package.  Until they fix it you'll
> have to do bitbake rpm-native -cclean and then re-run bitbake
> tizen-common-core-image-minimal-dev.
> 
> Ross

Good day Ross

Thank you for the inputs.
So until I over come this error I need to do bitbake rpm-native -cclean and 
then re-run bitbake tizen-common-core-image-minimal-dev. ?
I'm asking this since i'm continuously getting task error on meta-tizen rpm 
receipt.

Best regards
Anoop



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto Bitbake Error - rmp-native task failure

2014-07-23 Thread Anoop
Good day Joseph Andrew

Thank you for the inputs.

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Bitbake Error - rmp-native task failure

2014-07-22 Thread Anoop

I gave bitbake for imx6qsabreauto

command used 
bitbake -v tizen-common-core-image-minimal-dev


below is the error section from the log
+ patch -p0

patch:  Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or 
directory

+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

ERROR: Function failed: do_prep (log file is located at 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/log.do_patch.32228)
/usr/bin/install -c -m 644 ./Lib/test/test_bool.py 
/home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib/python2.7/test

ERROR: Logfile of failure stored in: 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/log.do_patch.32228
NOTE: recipe rpm-native-git-r0: task do_patch: Failed
ERROR: Task 85 (virtual:native:/home/sfm/yocto_temp/meta-tizen/recipes-
tizen/rpm/rpm_git.bb, do_patch) failed with exit code '1'

Error log from patch file
+ 
chmod
 -Rf
 a+rX,u+w,g-w,o-w
 /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git


+ cp /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/git/packaging/rpm.manifest .

+ rm -rf sqlite

+ tar xjf /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/git/packaging/db-4.8.30.tar.bz2

+ ln -s db-4.8.30 db

+ chmod -R u+w db/LICENSE db/README db/btree db/build_brew db/build_s60 
db/build_unix db/build_vxworks db/build_wince db/build_windows db/clib 
db/common db/crypto db/csharp db/cxx db/db db/db185 db/db_archive 
db/db_checkpoint db/db_deadlock db/db_dump db/db_dump185 db/db_hotbackup 
db/db_load db/db_printlog db/db_recover db/db_sql db/db_stat db/db_upgrade 
db/db_verify db/dbinc db/dbinc_auto db/dbm db/dbreg db/dist db/docs 
db/docs_src db/env db/examples_c db/examples_csharp db/examples_cxx 
db/examples_java db/examples_stl db/fileops db/hash db/hmac db/hsearch 
db/java db/libdb_csharp db/libdb_java db/lock db/log db/mod_db4 db/mp 
db/mutex db/os db/os_brew db/os_qnx db/os_s60 db/os_vxworks db/os_windows 
db/perl db/php_db4 db/qam db/rep db/repmgr db/sequence db/stl db/tcl db/test 
db/test_micro db/test_stl db/txn

+ rm -f rpmdb/db.h

+ patch -p0

patch:  Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or 
directory

+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ do_prep
+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ chmod -Rf a+rX,u+w,g-w,o-w /home/sfm/yocto_temp/build/tmp/work/i686-
linux/rpm-native/git-r0/git
+ cp /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/git/packaging/rpm.manifest .
+ rm -rf sqlite
+ tar xjf /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/git/packaging/db-4.8.30.tar.bz2
+ ln -s db-4.8.30 db
+ chmod -R u+w db/LICENSE db/README db/btree db/build_brew db/build_s60 
db/build_unix db/build_vxworks db/build_wince db/build_windows db/clib 
db/common db/crypto db/csharp db/cxx db/db db/db185 db/db_archive 
db/db_checkpoint db/db_deadlock db/db_dump db/db_dump185 db/db_hotbackup 
db/db_load db/db_printlog db/db_recover db/db_sql db/db_stat db/db_upgrade 
db/db_verify db/dbinc db/dbinc_auto db/dbm db/dbreg db/dist db/docs 
db/docs_src db/env db/examples_c db/examples_csharp db/examples_cxx 
db/examples_java db/examples_stl db/fileops db/hash db/hmac db/hsearch 
db/java db/libdb_csharp db/libdb_java db/lock db/log db/mod_db4 db/mp 
db/mutex db/os db/os_brew db/os_qnx db/os_s60 db/os_vxworks db/os_windows 
db/perl db/php_db4 db/qam db/rep db/repmgr db/sequence db/stl db/tcl db/test 
db/test_micro db/test_stl db/txn
+ rm -f rpmdb/db.h
+ patch -p0
patch:  Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or 
directory
+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2
DEBUG: Python function do_patch finished
ERROR: Function failed: do_prep (log file is located at 
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-
r0/temp/log.do_patch.32228)

can any one help on how to resolve this error


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto