Hi Alex,<br><br>This is the whole output from the make. I can only see warnings:<br><br>/bin/gcc-linux  -DCOMDRIVER_EXPORTS -DBUILD_FIX_TMP -DFIX_WIN32 -DNO_ZIP -D_DEBUG -D_CONSOLE -I/home/x0148488/omapflash/cmake_build -I/home/x0148488/omapflash -I/home/x0148488/omapflash/comdriver/inc -I/home/x0148488/omapflash/target/src/boot -I/home/x0148488/omapflash/../../../usr/include/LinuxAPI -I/home/x0148488/omapflash/../../../usr/include/OtherLinuxFiles -I/home/x0148488/omapflash/common/inc   -Wall -Werror -o CMakeFiles/omap.dir/host/fastboot.c.o   -c /home/x0148488/omapflash/host/fastboot.c<br>
<br>/home/x0148488/omapflash/host/fastboot.c:125: warning: missing braces around initializer<br>/home/x0148488/omapflash/host/fastboot.c:125: warning: (near initialization for `parity_names[5]&#39;)<br>/home/x0148488/omapflash/host/fastboot.c: In function `find_named_value&#39;:<br>
/home/x0148488/omapflash/host/fastboot.c:206: warning: implicit declaration of function `stricmp&#39;<br>/home/x0148488/omapflash/host/fastboot.c: In function `open_device&#39;:<br>/home/x0148488/omapflash/host/fastboot.c:397: warning: unused variable `timeremaining&#39;<br>
/home/x0148488/omapflash/host/fastboot.c: In function `offset_and_chip_name&#39;:<br>/home/x0148488/omapflash/host/fastboot.c:749: warning: unused variable `addr&#39;<br>/home/x0148488/omapflash/host/fastboot.c: In function `arg&#39;:<br>
/home/x0148488/omapflash/host/fastboot.c:1143: warning: unused variable `mem_addr&#39;<br>/home/x0148488/omapflash/host/fastboot.c:1201: warning: implicit declaration of function `_snprintf&#39;<br>/home/x0148488/omapflash/host/fastboot.c: At top level:<br>
/home/x0148488/omapflash/host/fastboot.c:76: warning: `wipe_data&#39; defined but not used<br>make[2]: *** [CMakeFiles/omap.dir/host/fastboot.c.o] Error 1<br>make[2]: Leaving directory `/home/x0148488/omapflash/cmake_build&#39;<br>
make[1]: *** [CMakeFiles/omap.dir/all] Error 2<br>make[1]: Leaving directory `/home/x0148488/omapflash/cmake_build&#39;<br>make: *** [all] Error 2<br><br>Also the compiler command generated only shows the first file. What could be the problem? Do I have to fix the warnings?<br>
<br>Thanks<br><br>Enrique<br><br><br><br><div class="gmail_quote">2011/3/14 Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Monday 14 March 2011, Enrique Izaguirre wrote:<br>
&gt; Hello friends,<br>
&gt;<br>
&gt; I have a problem when I try to compile several files, for some reason it<br>
&gt; takes only the first of the list to build it.<br>
&gt; It displays a few warnings and at the end the following error:<br>
&gt;<br>
&gt; make[2]: *** [CMakeFiles/omap.dir/host/fastboot.c.o] Error 1<br>
&gt; make[2]: Leaving directory `/home/x0148488/omapflash/cmake_build&#39;<br>
&gt; make[1]: *** [CMakeFiles/omap.dir/all] Error 2<br>
&gt; make[1]: Leaving directory `/home/x0148488/omapflash/cmake_build&#39;<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt; Even before doing the add_executable ( ), I display first the variable that<br>
&gt; contains the list of files to build, and it indeed has all the files to<br>
&gt; compile; somehow it only compiles the first one and then leave. Running<br>
&gt; make with the VERVOSE=1 I can see the command, and it has only the first<br>
&gt; file of the list; so CMake is generating the command wrong.<br>
<br>
</div></div>No.<br>
The files are built one by one after each other.<br>
<div class="im"><br>
&gt; Can you explain why only one file is compiled and not the entire list?<br>
<br>
</div>Maybe I&#39;m missing something...<br>
Isn&#39;t the build simply stopping because of a compile error ?<br>
You cut away too much from the compiler output, the actual error is not<br>
visible in the part above.<br>
<br>
Alex<br>
</blockquote></div><br>