kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

don't rebuild after move #525

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. r8256, x86/nonvga_debug
2. build project
3.
$ make
Build complete
$ echo "" > src/tests/net/parser/url_parser_test.c
$ svn status
M       src/tests/net/parser/url_parser_test.c
$ make
...build process...
Build complete
$ cp src/tests/net/parser/url_parser_test.c .
$ svn revert src/tests/net/parser/url_parser_test.c
Reverted 'src/tests/net/parser/url_parser_test.c'
$ svn status
?       url_parser_test.c
$ make
...build process...
Build complete
$ mv url_parser_test.c src/tests/net/parser/url_parser_test.c
$ svn status
M       src/tests/net/parser/url_parser_test.c
$ make
Build complete

What is the expected output? What do you see instead?
After last make command the project must be rebuilt

Please use labels and text to provide additional information.
I use:
1.
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
2.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.7.2-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs 
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.7 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object 
--enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) 

Original issue reported on code.google.com by ki.stfu on 22 Jan 2013 at 9:43

GoogleCodeExporter commented 9 years ago
Thanks for reporting.

This is a known issue for any Make-driven build system. The reason is that Make 
only compares file timestamps, not their contents.

This will gone after switching to next version of Mybuild based on Waf, which 
does not have such problems.

Original comment by Eldar.Abusalimov on 22 Jan 2013 at 9:50

GoogleCodeExporter commented 9 years ago
ok, thx

Original comment by ki.stfu on 22 Jan 2013 at 9:57