<div dir="ltr"><div><i>A follow up to this (after further testing with the Yocto image classes - i.e. not my own custom image):</i><br><br></div><div><b>After adding the following to local.conf (keeping all other variables to their defaults):</b><br>
require conf/multilib.conf<br>
MULTILIBS = "multilib:lib32"<br>DEFAULTTUNE_virtclass-multilib-lib32 = "x86"<br><br></div><div><b>Using the following Build configuration:</b><br>BB_VERSION = "1.21.0"<br>BUILD_SYS = "i686-linux"<br>
NATIVELSBSTRING = "Ubuntu-12.04"<br>TARGET_SYS = "x86_64-poky-linux"<br>MACHINE = "nuc"<br>DISTRO = "poky"<br>DISTRO_VERSION = "1.5+snapshot-20131124"<br>
TUNE_FEATURES = "m64"<br>TARGET_FPU = ""<br>meta <br>meta-yocto <br>meta-yocto-bsp = "master:6a8307c35705bf6c9f49c368dd730deef3d2ae15"<br>meta-intel <br>
meta-nuc = "master:f5c2786e7ca190308523379706130e0c2be793c9"<br><br></div><div><b>The MULTILIB build is successful with the following images:</b><br>
</div><div>core-image-minimal<br></div><div>core-image-base<br></div><div>core-image-sato<br></div><div><br></div><div>As stated in the meta-nuc README, I then also added the following to local.conf to enable hardware video acceleration:<br>
LICENSE_FLAGS_WHITELIST += "commercial"<br><br></div><div><b>Retrying the "core-image-sato" image build now results in errors:</b><br></div><div><i><br>ERROR: QA Issue: x264: Files/directories were installed but not shipped<br>
/usr/lib<br> /usr/lib/libx264.so.133<br> /usr/lib/libx264.so<br> /usr/lib/libx264.a<br> /usr/lib/pkgconfig<br> /usr/lib/.debug<br> /usr/lib/pkgconfig/x264.pc<br> /usr/lib/.debug/libx264.so.133<br>ERROR: QA run found fatal errors. Please consider fixing them.<br>
ERROR: Function failed: do_package_qa<br>ERROR: Logfile of failure stored in: /home/nick/poky/test/tmp/work/x86_64-poky-linux/x264/r2265+gitAUTOINC+585324fee3-r0/temp/log.do_package.11458<br>ERROR: Task 4913 (/home/nick/poky/meta/recipes-multimedia/x264/<a href="http://x264_git.bb" target="_blank">x264_git.bb</a>, do_package) failed with exit code '1'<br>
ERROR: Function failed: do_configure (log file is located at /home/nick/poky/test/tmp/work/x86_64-poky-linux/libav/0.8.8-r0/temp/log.do_configure.11457)<br>ERROR: Logfile of failure stored in: /home/nick/poky/test/tmp/work/x86_64-poky-linux/libav/0.8.8-r0/temp/log.do_configure.11457<br>
Log data follows:<br>| DEBUG: Executing python function sysroot_cleansstate<br>| DEBUG: Python function sysroot_cleansstate finished<br>| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']<br>
| DEBUG: Executing shell function autotools_preconfigure<br>| DEBUG: Shell function autotools_preconfigure finished<br>| DEBUG: Executing shell function do_configure<br>| ERROR: libx264 not found<br>| <br>| If you think configure made a mistake, make sure you are using the latest<br>
| version from Git. If the latest version fails, report the problem to the<br>| <a href="mailto:libav-user@libav.org" target="_blank">libav-user@libav.org</a> mailing list or IRC #libav on <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>.<br>
| Include the log file "config.log" produced by configure as this will help<br>| solving the problem.<br>| WARNING: /home/nick/poky/test/tmp/work/x86_64-poky-linux/libav/0.8.8-r0/temp/run.do_configure.11457:1 exit 1 from<br>
| /home/nick/poky/test/tmp/work/x86_64-poky-linux/libav/0.8.8-r0/libav-0.8.8/configure --enable-shared --enable-pthreads --enable-gpl --enable-avfilter --cross-prefix=x86_64-poky-linux- --prefix=/usr --enable-avserver --enable-avplay --enable-libtheora --enable-libvorbis --arch=x86_64 --target-os="linux" --enable-cross-compile --extra-cflags=" -O2 -pipe -g -feliminate-unused-debug-types -m64 --sysroot=/home/nick/poky/test/tmp/sysroots/nuc" --extra-ldflags="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" --sysroot="/home/nick/poky/test/tmp/sysroots/nuc" --enable-hardcoded-tables --enable-postproc --enable-bzlib --disable-libfaac --disable-libgsm --disable-indev=jack --disable-libmp3lame --disable-libschroedinger --disable-libvpx --enable-x11grab --enable-libx264<br>
| ERROR: Function failed: do_configure (log file is located at /home/nick/poky/test/tmp/work/x86_64-poky-linux/libav/0.8.8-r0/temp/log.do_configure.11457)<br>ERROR: Task 3456 (/home/nick/poky/meta/recipes-multimedia/libav/<a href="http://libav_0.8.8.bb" target="_blank">libav_0.8.8.bb</a>, do_configure) failed with exit code '1'<br>
NOTE: Tasks Summary: Attempted 5748 tasks of which 5744 didn't need to be rerun and 2 failed.<br>No currently running tasks (5748 of 5775)<br><br>Summary: 2 tasks failed:<br> /home/nick/poky/meta/recipes-multimedia/x264/<a href="http://x264_git.bb" target="_blank">x264_git.bb</a>, do_package<br>
/home/nick/poky/meta/recipes-multimedia/libav/<a href="http://libav_0.8.8.bb" target="_blank">libav_0.8.8.bb</a>, do_configure<br>Summary: There were 4 ERROR messages shown, returning a non-zero exit code.<br></i><b><br>
<br></b></div><div>
<b>This appears to be a bug with the libx264 recipe.</b><br><br></div><div>Any thoughts or comments on this?<br>Has anyone else tried MULTILIB builds with the NUC hardware (with hardware acceleration enabled)?<br></div><div>
<br></div><div class="gmail_extra">Thanks,<br>Nick<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 1:17 AM, Nick D'Ademo <span dir="ltr"><<a href="mailto:nickdademo@gmail.com" target="_blank">nickdademo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><div><div>From what I've read so far, by adding the following to the local.conf file (e.g. for a x86_64 build; in my case for the Intel NUC machine), Yocto will build an image which also contains 32-bit compiled system libraries (+ any 32-bit packages/recipes you have specified):<br>
<br>require conf/multilib.conf<br>MULTILIBS = "multilib:lib32"<br>DEFAULTTUNE_virtclass-multilib-lib32 = "x86"<br><br></div>However, running BitBake with the above added to local.conf results in a large number of build errors. To name a few:<br>
<br></div><a href="http://grub_2.0.0.bb" target="_blank">grub_2.0.0.bb</a>:<br>...<br>| checking whether the C compiler works... no<br>| configure: error: in `/home/nick/poky/build/tmp/work/x86_64-poky-linux/grub/2.00-r1/build':<br>
| configure: error: C compiler cannot create executables<br>...<br>
<br><a href="http://ntp_4.2.6p5.bb" target="_blank">ntp_4.2.6p5.bb</a>:<br>...<br>| configure: exit 77<br>| ERROR: oe_runconf failed<br>...<br><br></div>Is there something I'm missing here? What is the status of MULTILIB support with Yocto? Has anyone attempted it lately?<br>
<br></div>[The following guide seems a little outdated: <a href="https://wiki.yoctoproject.org/wiki/Multilib" target="_blank">https://wiki.yoctoproject.org/wiki/Multilib</a>]<br><div><br></div><div>Thanks,<br>Nick<br>
</div></div>
</blockquote></div><br></div></div>