* The build issue of wayland-native on Linux distros with old glibc @ 2013-04-11 9:22 Luo Zhenhua-B19537 2013-04-11 20:33 ` Khem Raj 0 siblings, 1 reply; 4+ messages in thread From: Luo Zhenhua-B19537 @ 2013-04-11 9:22 UTC (permalink / raw) To: openembedded-core@lists.openembedded.org Cc: Guo Chunrong-B40290, Liu Ting-B28495, Luo Zhenhua-B19537 I tried to build wayland-native which requires sys/signalfd.h and sys/timerfd.h, the two headers are not provided by Yocto build env, so host version is searched. When the build is conducted in Linux distros with old glibc(not sure about the accurate version), above two headers are not available, so build will failed as following: | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86_64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:33:26: error: sys/signalfd.h: No such file or directory | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86_64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:34:25: error: sys/timerfd.h: No such file or directory Can anybody shed some light on how to solve the issue in Yocto to ensure the build doesn't depend on host env? Best Regards, Zhenhua ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: The build issue of wayland-native on Linux distros with old glibc 2013-04-11 9:22 The build issue of wayland-native on Linux distros with old glibc Luo Zhenhua-B19537 @ 2013-04-11 20:33 ` Khem Raj 2013-04-11 20:41 ` Richard Purdie 0 siblings, 1 reply; 4+ messages in thread From: Khem Raj @ 2013-04-11 20:33 UTC (permalink / raw) To: Luo Zhenhua-B19537 Cc: Guo Chunrong-B40290, Liu Ting-B28495, openembedded-core@lists.openembedded.org On Apr 11, 2013, at 2:22 AM, Luo Zhenhua-B19537 <B19537@freescale.com> wrote: > I tried to build wayland-native which requires sys/signalfd.h and sys/timerfd.h, the two headers are not provided by Yocto build env, so host version is searched. > those are coming from libc, I don't think we use own libc for native packages. So they have to come from host libc, for nativesdk different story > When the build is conducted in Linux distros with old glibc(not sure about the accurate version), above two headers are not available, so build will failed as following: > | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86_64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:33:26: error: sys/signalfd.h: No such file or directory > | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86_64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:34:25: error: sys/timerfd.h: No such file or directory > > Can anybody shed some light on how to solve the issue in Yocto to ensure the build doesn't depend on host env? > > > Best Regards, > > Zhenhua > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: The build issue of wayland-native on Linux distros with old glibc 2013-04-11 20:33 ` Khem Raj @ 2013-04-11 20:41 ` Richard Purdie 2013-04-12 13:28 ` Luo Zhenhua-B19537 0 siblings, 1 reply; 4+ messages in thread From: Richard Purdie @ 2013-04-11 20:41 UTC (permalink / raw) To: Khem Raj Cc: Guo Chunrong-B40290, Liu Ting-B28495, Luo Zhenhua-B19537, openembedded-core@lists.openembedded.org On Thu, 2013-04-11 at 13:33 -0700, Khem Raj wrote: > On Apr 11, 2013, at 2:22 AM, Luo Zhenhua-B19537 <B19537@freescale.com> wrote: > > > I tried to build wayland-native which requires sys/signalfd.h and sys/timerfd.h, the two headers are not provided by Yocto build env, so host version is searched. > > > > > those are coming from libc, I don't think we use own libc for native packages. So they have to come from host libc, for nativesdk different story > > > When the build is conducted in Linux distros with old glibc(not sure about the accurate version), above two headers are not available, so build will failed as following: > > | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86_64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:33:26: error: sys/signalfd.h: No such file or directory > > | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86_64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:34:25: error: sys/timerfd.h: No such file or directory > > > > Can anybody shed some light on how to solve the issue in Yocto to ensure the build doesn't depend on host env? https://bugzilla.yoctoproject.org/show_bug.cgi?id=4245 Khem is right, it should be using the host libc but perhaps we can cut down how much of wayland we build natively. Hopefully Ross might have a fix, see the above bug, help testing would be appreciated. Cheers, Richard ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: The build issue of wayland-native on Linux distros with old glibc 2013-04-11 20:41 ` Richard Purdie @ 2013-04-12 13:28 ` Luo Zhenhua-B19537 0 siblings, 0 replies; 4+ messages in thread From: Luo Zhenhua-B19537 @ 2013-04-12 13:28 UTC (permalink / raw) To: Richard Purdie, Khem Raj Cc: Guo Chunrong-B40290, Liu Ting-B28495, openembedded-core@lists.openembedded.org Thanks for the comments and patch, the patch works well during our build test. Best Regards, Zhenhua > -----Original Message----- > From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org] > Sent: Friday, April 12, 2013 4:42 AM > To: Khem Raj > Cc: Luo Zhenhua-B19537; Guo Chunrong-B40290; Liu Ting-B28495; > openembedded-core@lists.openembedded.org > Subject: Re: [OE-core] The build issue of wayland-native on Linux distros > with old glibc > > On Thu, 2013-04-11 at 13:33 -0700, Khem Raj wrote: > > On Apr 11, 2013, at 2:22 AM, Luo Zhenhua-B19537 <B19537@freescale.com> > wrote: > > > > > I tried to build wayland-native which requires sys/signalfd.h and > sys/timerfd.h, the two headers are not provided by Yocto build env, so > host version is searched. > > > > > > > > > those are coming from libc, I don't think we use own libc for native > > packages. So they have to come from host libc, for nativesdk different > > story > > > > > When the build is conducted in Linux distros with old glibc(not sure > about the accurate version), above two headers are not available, so > build will failed as following: > > > | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86 > > > | _64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:3 > > > | 3:26: error: sys/signalfd.h: No such file or directory > > > | /home/yocto/workspace/sdk-devel/build_p4080ds_release/tmp/work/x86 > > > | _64-linux/wayland-native/1.0.6-r0/wayland-1.0.6/src/event-loop.c:3 > > > | 4:25: error: sys/timerfd.h: No such file or directory > > > > > > Can anybody shed some light on how to solve the issue in Yocto to > ensure the build doesn't depend on host env? > > https://bugzilla.yoctoproject.org/show_bug.cgi?id=4245 > > Khem is right, it should be using the host libc but perhaps we can cut > down how much of wayland we build natively. Hopefully Ross might have a > fix, see the above bug, help testing would be appreciated. > > Cheers, > > Richard > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-12 14:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-04-11 9:22 The build issue of wayland-native on Linux distros with old glibc Luo Zhenhua-B19537 2013-04-11 20:33 ` Khem Raj 2013-04-11 20:41 ` Richard Purdie 2013-04-12 13:28 ` Luo Zhenhua-B19537
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox