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"><<a href="mailto:enrique.izaguirre@gmail.com">enrique.izaguirre@gmail.com</a>></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't even imagine that.<br><br>Really appreciate, I'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"><<a href="mailto:tyler@cryptio.net" target="_blank">tyler@cryptio.net</a>></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>
"-Werror<br>
Make all warnings into errors."<br>
<br>
hth,<br>
tyler<br>
<div><div></div><div><br>
On Mon, Mar 14, 2011 at 2:04 PM, Enrique Izaguirre<br>
<<a href="mailto:enrique.izaguirre@gmail.com" target="_blank">enrique.izaguirre@gmail.com</a>> wrote:<br>
> 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<br>
> -D_DEBUG -D_CONSOLE -I/home/x0148488/omapflash/cmake_build<br>
> -I/home/x0148488/omapflash -I/home/x0148488/omapflash/comdriver/inc<br>
> -I/home/x0148488/omapflash/target/src/boot<br>
> -I/home/x0148488/omapflash/../../../usr/include/LinuxAPI<br>
> -I/home/x0148488/omapflash/../../../usr/include/OtherLinuxFiles<br>
> -I/home/x0148488/omapflash/common/inc -Wall -Werror -o<br>
> CMakeFiles/omap.dir/host/fastboot.c.o -c<br>
> /home/x0148488/omapflash/host/fastboot.c<br>
><br>
> /home/x0148488/omapflash/host/fastboot.c:125: warning: missing braces around<br>
> initializer<br>
> /home/x0148488/omapflash/host/fastboot.c:125: warning: (near initialization<br>
> for `parity_names[5]')<br>
> /home/x0148488/omapflash/host/fastboot.c: In function `find_named_value':<br>
> /home/x0148488/omapflash/host/fastboot.c:206: warning: implicit declaration<br>
> of function `stricmp'<br>
> /home/x0148488/omapflash/host/fastboot.c: In function `open_device':<br>
> /home/x0148488/omapflash/host/fastboot.c:397: warning: unused variable<br>
> `timeremaining'<br>
> /home/x0148488/omapflash/host/fastboot.c: In function<br>
> `offset_and_chip_name':<br>
> /home/x0148488/omapflash/host/fastboot.c:749: warning: unused variable<br>
> `addr'<br>
> /home/x0148488/omapflash/host/fastboot.c: In function `arg':<br>
> /home/x0148488/omapflash/host/fastboot.c:1143: warning: unused variable<br>
> `mem_addr'<br>
> /home/x0148488/omapflash/host/fastboot.c:1201: warning: implicit declaration<br>
> of function `_snprintf'<br>
> /home/x0148488/omapflash/host/fastboot.c: At top level:<br>
> /home/x0148488/omapflash/host/fastboot.c:76: warning: `wipe_data' defined<br>
> 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'<br>
> make[1]: *** [CMakeFiles/omap.dir/all] Error 2<br>
> make[1]: Leaving directory `/home/x0148488/omapflash/cmake_build'<br>
> make: *** [all] Error 2<br>
><br>
> Also the compiler command generated only shows the first file. What could be<br>
> the problem? Do I have to fix the warnings?<br>
><br>
> Thanks<br>
><br>
> Enrique<br>
><br>
><br>
><br>
> 2011/3/14 Alexander Neundorf <<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>><br>
>><br>
>> On Monday 14 March 2011, Enrique Izaguirre wrote:<br>
>> > Hello friends,<br>
>> ><br>
>> > I have a problem when I try to compile several files, for some reason it<br>
>> > takes only the first of the list to build it.<br>
>> > It displays a few warnings and at the end the following error:<br>
>> ><br>
>> > make[2]: *** [CMakeFiles/omap.dir/host/fastboot.c.o] Error 1<br>
>> > make[2]: Leaving directory `/home/x0148488/omapflash/cmake_build'<br>
>> > make[1]: *** [CMakeFiles/omap.dir/all] Error 2<br>
>> > make[1]: Leaving directory `/home/x0148488/omapflash/cmake_build'<br>
>> > make: *** [all] Error 2<br>
>> ><br>
>> > Even before doing the add_executable ( ), I display first the variable<br>
>> > that<br>
>> > contains the list of files to build, and it indeed has all the files to<br>
>> > compile; somehow it only compiles the first one and then leave. Running<br>
>> > make with the VERVOSE=1 I can see the command, and it has only the first<br>
>> > file of the list; so CMake is generating the command wrong.<br>
>><br>
>> No.<br>
>> The files are built one by one after each other.<br>
>><br>
>> > Can you explain why only one file is compiled and not the entire list?<br>
>><br>
>> Maybe I'm missing something...<br>
>> Isn'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>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
</blockquote></div><br>
</div></div></blockquote></div><br>