Thanks guys. It is doing it right.<br><br>Best Regards<br><br>Enrique<br><br><div class="gmail_quote">On Mon, Mar 14, 2011 at 3:22 PM, Enrique Izaguirre <span dir="ltr">&lt;<a href="mailto:enrique.izaguirre@gmail.com">enrique.izaguirre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">OK, I couldn&#39;t even imagine that.<br><br>Really appreciate, I&#39;ll make another try.<br>
<br>Best Regards<br><font color="#888888"><br>Enrique</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Mon, Mar 14, 2011 at 3:09 PM, Tyler <span dir="ltr">&lt;<a href="mailto:tyler@cryptio.net" target="_blank">tyler@cryptio.net</a>&gt;</span> wrote:<br>

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