From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 259A6E00B2F; Mon, 12 Oct 2015 17:20:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,URIBL_JP_SURBL autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 1.2 URIBL_JP_SURBL Contains an URL listed in the JP SURBL blocklist * [URIs: gherzan.ro] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [80.91.229.3 listed in list.dnswl.org] Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 90D95E0095C for ; Mon, 12 Oct 2015 17:20:08 -0700 (PDT) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZlnK0-00007a-UL for yocto@yoctoproject.org; Tue, 13 Oct 2015 02:20:04 +0200 Received: from hsi-kbw-046-005-023-198.hsi8.kabel-badenwuerttemberg.de ([46.5.23.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Oct 2015 02:20:04 +0200 Received: from js by hsi-kbw-046-005-023-198.hsi8.kabel-badenwuerttemberg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Oct 2015 02:20:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: yocto@yoctoproject.org From: Joachim Schiele Date: Tue, 13 Oct 2015 02:14:28 +0200 Message-ID: References: <20151003191846.GB24208@resin> <20151003201156.GC24208@resin> <20151003203312.GD24208@resin> <20151003204050.GE24208@resin> <20151003204607.GF24208@resin> <20151003212752.GG24208@resin> <20151003215305.GH24208@resin> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-046-005-023-198.hsi8.kabel-badenwuerttemberg.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <20151003215305.GH24208@resin> Subject: Re: [meta-raspberrypi][PATCH V4 1/5] userland: Fix install prefix and generate pkgconfigs X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 00:20:15 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 03.10.2015 23:53, Andrei Gherzan wrote: > On Sat, Oct 03, 2015 at 02:47:24PM -0700, Khem Raj wrote: >> On Sat, Oct 3, 2015 at 2:27 PM, Andrei Gherzan wrote: >>> On Sat, Oct 03, 2015 at 10:46:07PM +0200, Andrei Gherzan wrote: >>>> On Sat, Oct 03, 2015 at 10:40:50PM +0200, Andrei Gherzan wrote: >>>>> On Sat, Oct 03, 2015 at 10:33:12PM +0200, Andrei Gherzan wrote: >>>>>> On Sat, Oct 03, 2015 at 01:31:24PM -0700, Khem Raj wrote: >>>>>>> On Sat, Oct 3, 2015 at 1:11 PM, Andrei Gherzan wrote: >>>>>>>> On Sat, Oct 03, 2015 at 01:06:55PM -0700, Khem Raj wrote: >>>>>>>>> On Sat, Oct 3, 2015 at 12:18 PM, Andrei Gherzan wrote: >>>>>>>>>> I tested with and without - same result. >>>>>>>>>> DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget >>>>>>>>>> usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace >>>>>>>>>> libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt >>>>>>>>>> libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab >>>>>>>>>> libc-ftraverse libc-getlogin libc-idn libc-inet-anl libc-libm >>>>>>>>>> libc-locales libc-locale-code libc-memusage libc-nis >>>>>>>>>> libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc >>>>>>>>>> libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp >>>>>>>>>> libc-posix-regexp-glibc libc-posix-wchar-io largefile >>>>>>>>>> opengl ptest multiarch wayland pulseaudio sysvinit bluez5" >>>>>>>>>> >>>>>>>>>> No modification to the default poky distro. >>>>>>>>> >>>>>>>>> hmm I am using angstrom and it works there and for verification I now >>>>>>>>> tried with OE-Core ( alone ) it works there too, can you check some >>>>>>>>> other parameters that are there in your sandbox ? here is my build >>>>>>>>> >>>>>>>>> MACHINE=raspberrypi2 bitbake userland >>>>>>>>> Parsing recipes: 100% >>>>>>>>> |######################################################################################################################################################################################################| >>>>>>>>> ETA: 00:00:00 >>>>>>>>> Parsing of 918 .bb files complete (0 cached, 918 parsed). 1350 >>>>>>>>> targets, 59 skipped, 0 masked, 0 errors. >>>>>>>>> NOTE: Resolving any missing task queue dependencies >>>>>>>>> >>>>>>>>> Build Configuration: >>>>>>>>> BB_VERSION = "1.28.0" >>>>>>>>> BUILD_SYS = "x86_64-linux" >>>>>>>>> NATIVELSBSTRING = "Ubuntu-14.04" >>>>>>>>> TARGET_SYS = "arm-oe-linux-gnueabi" >>>>>>>>> MACHINE = "raspberrypi2" >>>>>>>>> DISTRO = "nodistro" >>>>>>>>> DISTRO_VERSION = "nodistro.0" >>>>>>>>> TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard >>>>>>>>> vfpv4 cortexa7" >>>>>>>>> TARGET_FPU = "vfp-vfpv4-neon" >>>>>>>>> meta-raspberrypi = "kraj/master:a903a9cd18ae556121265da93ed74f857944a0da" >>>>>>>>> meta = "kraj/master:602e512b92bcc78403144fedeb4211bbf56ff1c8" >>>>>>>>> >>>>>>>>> NOTE: Preparing RunQueue >>>>>>>>> NOTE: Executing SetScene Tasks >>>>>>>>> NOTE: Executing RunQueue Tasks >>>>>>>>> NOTE: Tasks Summary: Attempted 454 tasks of which 315 didn't need to >>>>>>>>> be rerun and all succeeded. >>>>>>>> >>>>>>>> Here is my build configuration. >>>>>>>> >>>>>>>> Build Configuration: >>>>>>>> BB_VERSION = "1.28.0" >>>>>>>> BUILD_SYS = "x86_64-linux" >>>>>>>> NATIVELSBSTRING = "Arch-rolling" >>>>>>>> TARGET_SYS = "arm-poky-linux-gnueabi" >>>>>>>> MACHINE = "raspberrypi2" >>>>>>>> DISTRO = "poky" >>>>>>>> DISTRO_VERSION = "2.0" >>>>>>>> TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard vfpv4 >>>>>>>> cortexa7" >>>>>>>> TARGET_FPU = "vfp-vfpv4-neon" >>>>>>>> meta >>>>>>>> meta-yocto >>>>>>>> meta-yocto-bsp = "master:eac61f37e36099f74485dab398b57f3812826d17" >>>>>>>> meta-raspberrypi = "master:48da0cdc5fb147a20b41a77b2dfeef4efd483b32" >>>>>>>> meta-oe >>>>>>>> meta-multimedia = "master:f4533380c8a5c1d229f692222ee0c2ef9d187ef8" >>>>>>>> >>>>>>>> >>>>>>>> But anyway can you please check in your userland install dir for the header I'm >>>>>>>> missing? Or in sysroot. >>>>>>> >>>>>>> its part of userland itself so no other package should be needed and >>>>>>> not required in sysroot >>>>>>> >>>>>>> ./work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/package/usr/src/debug/userland/git-r5/build/interface/vmcs_host/wayland-dispmanx-server-protocol.h >>>>>>> ./work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/packages-split/userland-dbg/usr/src/debug/userland/git-r5/build/interface/vmcs_host/wayland-dispmanx-server-protocol.h >>>>>>> ./work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/build/interface/khronos/wayland-dispmanx-server-protocol.h >>>>>>> ./work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/build/interface/vmcs_host/wayland-dispmanx-server-protocol.h >>>>>> >>>>>> This is odd... what revision of userland are you using? The one on current >>>>>> meta-rpi master? >>>>>> >>>>>> -- >>>>>> Andrei Gherzan >>>>> >>>>> This is not even in the current HEAD of master in userland official repository: >>>>> https://github.com/raspberrypi/userland/tree/master/interface/vmcs_host >>>>> >>>>> Are you sure you don't inject the file somehow? I really don't know what's >>>>> going on. >>>>> >>>>> -- >>>>> Andrei Gherzan >>>> >>>> I found the mistery. It gets generated in another path: >>>> ./build/interface/khronos/wayland-dispmanx-server-protocol.h >>>> >>>> Figuring out why. >>>> >>>> -- >>>> Andrei Gherzan >>> >>> I managed to get to the bottom of this. It's a racing issue. Basically, with >>> MAKE_PARALLEL high enough, the >>> >>> add_library(EGL ${SHARED} ${EGL_SOURCE}) >>> >>> in git/interface/khronos/CMakeLists.txt gets to run before the header is >>> generated. No dependency configured for that. And in the sources of EGL there >>> is egl_wayland.c which includes the generated header by the call: >>> >>> wayland_add_protocol_server( >>> EGL_SOURCE >>> ../../interface/wayland/dispmanx.xml >>> dispmanx >>> ) >>> >>> Any idea how to define this dependency? What is the value of your PARALLEL_MAKE >> >> I use -j16, can you add the .h file with path to EGL_SOURCE > > Adding the path to EGL_SOURCE won't work because cmake will complain that the > header is not in place. We need a dependency definition. > > -- > Andrei Gherzan > in this file: ./tmp/work/raspberrypi-poky-linux-gnueabi/userland/git-r5/egl.pc" i replaced Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads with that Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads -I../build/interface/khronos/ (basically adding -I../build/interface/khronos/) IIRC that worked for me. you can give that a try at least ;-)