<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Yocto compilation error (shm.h)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-compilation-error-shm-h/m-p/382586#M55187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the solution by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edited sys/shm.h and I added : "#define HAS_SHMAT_PROTOTYPE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, doio.c will not try to redefined SHMAT prototype and perl compiles with no error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 10:21:57 GMT</pubDate>
    <dc:creator>dgotfroi</dc:creator>
    <dc:date>2014-11-06T10:21:57Z</dc:date>
    <item>
      <title>Yocto compilation error (shm.h)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-compilation-error-shm-h/m-p/382585#M55186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to bitbake a Core-image-minimal with yocto daisy(for an imx28evk board).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I've a compilation error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Function failed: do_compile (log file is located at /home/gwio/fsl-community-bsp/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/log.do_compile.17607)&lt;/P&gt;&lt;P&gt;ERROR: Logfile of failure stored in: /home/gwio/fsl-community-bsp/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/log.do_compile.17607&lt;/P&gt;&lt;P&gt;Log data follows:&lt;/P&gt;&lt;P&gt;| DEBUG: Executing shell function do_compile&lt;/P&gt;&lt;P&gt;| NOTE: make -j 12 -e MAKEFLAGS=&lt;/P&gt;&lt;P&gt;| `sh&amp;nbsp; cflags "optimize='-O2'" doio.o` -fPIC doio.c&lt;/P&gt;&lt;P&gt;| gcc&amp;nbsp; -o generate_uudmap -L/home/gwio/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/gwio/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/gwio/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/gwio/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/gwio/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/gwio/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 generate_uudmap.o -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc&lt;/P&gt;&lt;P&gt;| ./generate_uudmap uudmap.h bitcount.h&lt;/P&gt;&lt;P&gt;| `sh&amp;nbsp; cflags "optimize='-O2'" globals.o` -fPIC globals.c&lt;/P&gt;&lt;P&gt;|&amp;nbsp; CCCMD =&amp;nbsp; gcc&amp;nbsp; -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64&amp;nbsp; -std=c89 -O2&amp;nbsp; -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings&lt;/P&gt;&lt;P&gt;|&amp;nbsp; CCCMD =&amp;nbsp; gcc&amp;nbsp; -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64&amp;nbsp; -std=c89 -O2&amp;nbsp; -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings&lt;/P&gt;&lt;P&gt;| doio.c:39:20: error: conflicting types for 'shmat'&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern Shmat_t shmat (int, char *, int);&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;| In file included from doio.c:37:0:&lt;/P&gt;&lt;P&gt;| /usr/include/x86_64-linux-gnu/sys/shm.h:56:14: note: previous declaration of 'shmat' was here&lt;/P&gt;&lt;P&gt;|&amp;nbsp; extern void *shmat (int __shmid, const void *__shmaddr, int __shmflg)&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;| doio.c: In function 'Perl_nextargv':&lt;/P&gt;&lt;P&gt;| doio.c:871:7: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result]&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void)fchown(PL_lastfd,fileuid,filegid);&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;| In file included from perl.h:3395:0,&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from doio.c:27:&lt;/P&gt;&lt;P&gt;| doio.c: In function 'S_exec_failed':&lt;/P&gt;&lt;P&gt;| iperlsys.h:769:39: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]&lt;/P&gt;&lt;P&gt;|&amp;nbsp; #define PerlLIO_write(fd, buf, count) write((fd), (buf), (count))&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;| doio.c:1383:2: note: in expansion of macro 'PerlLIO_write'&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp; PerlLIO_write(fd, (void*)&amp;amp;e, sizeof(int));&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;| makefile:248: recipe for target 'doio.o' failed&lt;/P&gt;&lt;P&gt;| make: *** [doio.o] Error 1&lt;/P&gt;&lt;P&gt;| make: *** Waiting for unfinished jobs....&lt;/P&gt;&lt;P&gt;| ERROR: oe_runmake failed&lt;/P&gt;&lt;P&gt;| WARNING: exit code 1 from a shell command.&lt;/P&gt;&lt;P&gt;| ERROR: Function failed: do_compile (log file is located at /home/gwio/fsl-community-bsp/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/log.do_compile.17607)&lt;/P&gt;&lt;P&gt;ERROR: Task 694 (/home/gwio/fsl-community-bsp/sources/poky/meta/recipes-devtools/perl/perl-native_5.14.3.bb, do_compile) failed with exit code '1'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING: Failed to fetch URL &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz"&gt;ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz&lt;/A&gt;&lt;SPAN&gt;, attempting MIRRORS if available&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: Tasks Summary: Attempted 720 tasks of which 703 didn't need to be rerun and 1 failed.&lt;/P&gt;&lt;P&gt;Waiting for 0 running tasks to finish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:01:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-compilation-error-shm-h/m-p/382585#M55186</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2014-11-06T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto compilation error (shm.h)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-compilation-error-shm-h/m-p/382586#M55187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the solution by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edited sys/shm.h and I added : "#define HAS_SHMAT_PROTOTYPE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, doio.c will not try to redefined SHMAT prototype and perl compiles with no error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:21:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-compilation-error-shm-h/m-p/382586#M55187</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2014-11-06T10:21:57Z</dc:date>
    </item>
  </channel>
</rss>

