All of lore.kernel.org
 help / color / mirror / Atom feed
* libcap compile error
@ 2017-10-24  9:23 Remco Poelstra
  2017-10-24 12:19 ` Alexander Kanavin
  2017-10-24 16:22 ` Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Remco Poelstra @ 2017-10-24  9:23 UTC (permalink / raw)
  To: yocto

Hi all,

I’m new with the Yocto project and I’m still trying to find my way.
I’m using a Hachiko board using Architech SDK and have managed to build 
and run the standard image.
As a next step I wanted to include the avahi mdns implementation. In 
order to do so I included IMAGE_INSTALL_append = “ avahi”
When I now run bitbake, I get the following error for libcap_2.22.bb:
| cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory

The compiler has a switch 
‘--sysroot=/home/architech/architech_sdk/architech/hachiko-tiny/yocto/build/tmp/sysroots/hachiko’, 
which indeed does not include this file.
Is that the location where the file should be? How can I add it? Is this 
a more general bug in Yocto or just my local setup?

Thanks in advance.

Kind regards,

Remco Poelstra



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libcap compile error
  2017-10-24  9:23 libcap compile error Remco Poelstra
@ 2017-10-24 12:19 ` Alexander Kanavin
  2017-10-24 13:12   ` Remco Poelstra
  2017-10-24 16:22 ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2017-10-24 12:19 UTC (permalink / raw)
  To: Remco Poelstra, yocto

On 10/24/2017 12:23 PM, Remco Poelstra wrote:
> I’m new with the Yocto project and I’m still trying to find my way.
> I’m using a Hachiko board using Architech SDK and have managed to build 
> and run the standard image.
> As a next step I wanted to include the avahi mdns implementation. In 
> order to do so I included IMAGE_INSTALL_append = “ avahi”
> When I now run bitbake, I get the following error for libcap_2.22.bb:
> | cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory
> 
> The compiler has a switch 
> ‘--sysroot=/home/architech/architech_sdk/architech/hachiko-tiny/yocto/build/tmp/sysroots/hachiko’, 
> which indeed does not include this file.
> Is that the location where the file should be? How can I add it? Is this 
> a more general bug in Yocto or just my local setup?

libcap 2.22 is very old, so your SDK must be using a very old release of 
Yocto (2014 or earlier). It's difficult to provide help for that. 
Perhaps you could address your question to the makers of the SDK and 
find out if they have anything more recent?

Alex


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libcap compile error
  2017-10-24 12:19 ` Alexander Kanavin
@ 2017-10-24 13:12   ` Remco Poelstra
  0 siblings, 0 replies; 5+ messages in thread
From: Remco Poelstra @ 2017-10-24 13:12 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: yocto

Alexander Kanavin schreef op 2017-10-24 14:19:
> libcap 2.22 is very old, so your SDK must be using a very old release
> of Yocto (2014 or earlier). It's difficult to provide help for that.
> Perhaps you could address your question to the makers of the SDK and
> find out if they have anything more recent?

Thanks for your fast response. I've contacted them to see if they have 
an update.

Kind regards,

Remco Poelstra



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libcap compile error
  2017-10-24  9:23 libcap compile error Remco Poelstra
  2017-10-24 12:19 ` Alexander Kanavin
@ 2017-10-24 16:22 ` Khem Raj
  2017-10-27  8:35   ` Remco Poelstra
  1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-10-24 16:22 UTC (permalink / raw)
  To: Remco Poelstra; +Cc: yocto

On Tue, Oct 24, 2017 at 2:23 AM, Remco Poelstra
<remco+vogels@beryllium.net> wrote:
> Hi all,
>
> I’m new with the Yocto project and I’m still trying to find my way.
> I’m using a Hachiko board using Architech SDK and have managed to build and
> run the standard image.
> As a next step I wanted to include the avahi mdns implementation. In order
> to do so I included IMAGE_INSTALL_append = “ avahi”
> When I now run bitbake, I get the following error for libcap_2.22.bb:
> | cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory
>
> The compiler has a switch
> ‘--sysroot=/home/architech/architech_sdk/architech/hachiko-tiny/yocto/build/tmp/sysroots/hachiko’,
> which indeed does not include this file.
> Is that the location where the file should be? How can I add it? Is this a
> more general bug in Yocto or just my local setup?
>

it seems you might be using uclibc, and xattr is absent in DISTRO_FEATURES, add

DISTRO_FEATURES_append = " xattr"

in your conf/local.conf and see if that helps.


> Thanks in advance.
>
> Kind regards,
>
> Remco Poelstra
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libcap compile error
  2017-10-24 16:22 ` Khem Raj
@ 2017-10-27  8:35   ` Remco Poelstra
  0 siblings, 0 replies; 5+ messages in thread
From: Remco Poelstra @ 2017-10-27  8:35 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

Khem Raj schreef op 2017-10-24 18:22:
> it seems you might be using uclibc, and xattr is absent in 
> DISTRO_FEATURES, add
> 
> DISTRO_FEATURES_append = " xattr"
> 
> in your conf/local.conf and see if that helps.
> 

Hi,

This did indeed resolve that issue. Unfortunately it didn't take long 
for another compile error to pop up. I'm investigating my options for 
moving to a more modern Yocto release. I hope that will prove to be more 
useable.
Thanks for the suggestion.

Kind regards,

Remco Poelstra



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-27  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-24  9:23 libcap compile error Remco Poelstra
2017-10-24 12:19 ` Alexander Kanavin
2017-10-24 13:12   ` Remco Poelstra
2017-10-24 16:22 ` Khem Raj
2017-10-27  8:35   ` Remco Poelstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.