<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 7, 2017 at 3:59 PM, Denis Obrezkov <span dir="ltr"><<a href="mailto:denisobrezkov@gmail.com" target="_blank">denisobrezkov@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">Hello, <div>I cloned rtems-tools from <a href="https://git.rtems.org/rtems-tools" target="_blank">https://git.rtems.org/<wbr>rtems-tools</a></div><div>and I can't build them:</div><div><br></div><div><div>~/Projects/rtems/rtems-tools$ ./waf configure --prefix=$HOME/Projects/rtems/<wbr>4.11</div><div>Setting top to : /home/reprofy/Projects/rtems/<wbr>rtems-tools </div><div>Setting out to : /home/reprofy/Projects/rtems/<wbr>rtems-tools/build </div><div>Version : 4.12.516f9311e61f (4.12) </div><div>Checking for program 'python' : /usr/bin/python </div><div>Checking for python version : (2, 7, 9, 'final', 0) </div><div>Checking for 'gcc' (C compiler) : /usr/bin/gcc </div><div>Checking for 'g++' (C++ compiler) : /usr/bin/g++ </div><div>Checking for header alloca.h : yes </div><div>Checking for header fcntl.h : yes </div><div>Checking for header process.h : not found </div><div>Checking for header stdlib.h : yes </div><div>Checking for header string.h : yes </div><div>Checking for header strings.h : yes </div><div>Checking for header sys/file.h : yes </div><div>Checking for header sys/stat.h : yes </div><div>Checking for header sys/time.h : yes </div><div>Checking for header sys/types.h : yes </div><div>Checking for header sys/wait.h : yes </div><div>Checking for header unistd.h : yes </div><div>Checking for header vfork.h : not found </div><div>Checking for function getrusage : yes </div><div>Checking for program 'm4' : /usr/bin/m4 </div><div>Checking for header sys/wait.h : yes </div><div>Checking for function kill : yes </div><div>Checking for function open64 : not found </div><div>Checking for function stat64 : not found </div><div>'configure' finished successfully (0.585s)</div><div>reprofy@repdell:~/Projects/<wbr>rtems/rtems-tools$ ./waf build install</div><div>Waf: Entering directory `/home/reprofy/Projects/rtems/<wbr>rtems-tools/build'</div><div>[ 5/145] Compiling rtemstoolkit/elftoolchain/<wbr>libelf/elf.c</div><div>[ 12/145] Compiling rtemstoolkit/elftoolchain/<wbr>libelf/elf_fill.c</div><div>[ 13/145] Compiling rtemstoolkit/elftoolchain/<wbr>libelf/elf_flag.c</div><div>[ 14/145] Compiling rtemstoolkit/elftoolchain/<wbr>libelf/elf_getarhdr.c</div><div>../rtemstoolkit/elftoolchain/<wbr>libelf/elf.c:34:29: error: expected expression before ‘,’ token</div><div> .libelf_arch = LIBELF_ARCH,</div><div> ^</div><div><br></div></div></div></blockquote><div><br></div><div>:LIBELF_ARCH is defined based on the architecture libelf is being compiled</div><div>for. The file elf.c is pretty simple and LIBELF is conditionally defined in this file:</div><div><br></div><div><a href="https://git.rtems.org/rtems-tools/plain/rtemstoolkit/elftoolchain/libelf/_libelf_config.h">https://git.rtems.org/rtems-tools/plain/rtemstoolkit/elftoolchain/libelf/_libelf_config.h</a><br></div><div><br></div><div>Since the definition of LIBARCH_ARCH is dependent on the host architecture,</div><div>what host are you compiling on?</div><div><br></div><div>Also the following command will show you all the gcc predefines. Is one of them</div><div>for the architecture in the libelf_config.h file?</div><div><br></div><div>gcc -dM -E - </dev/null | less</div><div> </div><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>Waf: Leaving directory `/home/reprofy/Projects/rtems/<wbr>rtems-tools/build'</div><div>Build failed</div><div> -> task in 'elf' failed (exit status 1): </div><div> {task 140143375691152: c elf.c -> elf.c.5.o}</div><div>['/usr/bin/gcc', '-pipe', '-g', '-O2', '-I/home/reprofy/Projects/<wbr>rtems/rtems-tools/build', '-I/home/reprofy/Projects/<wbr>rtems/rtems-tools/build/<wbr>rtemstoolkit/elftoolchain/<wbr>libelf', '-I/home/reprofy/Projects/<wbr>rtems/rtems-tools/<wbr>rtemstoolkit/elftoolchain/<wbr>libelf', '-I/home/reprofy/Projects/<wbr>rtems/rtems-tools/build/<wbr>rtemstoolkit/elftoolchain/<wbr>common', '-I/home/reprofy/Projects/<wbr>rtems/rtems-tools/<wbr>rtemstoolkit/elftoolchain/<wbr>common', '../rtemstoolkit/elftoolchain/<wbr>libelf/elf.c', '-c', '-o', '/home/reprofy/Projects/rtems/<wbr>rtems-tools/build/<wbr>rtemstoolkit/elftoolchain/<wbr>libelf/elf.c.5.o']</div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="gmail-m_9218728799202452601gmail_signature">Regards, Denis Obrezkov</div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/users</a><br></blockquote></div><br></div></div>