Closed jschueller closed 8 years ago
The build fails when building packages (Wdate-time is enabled by debian packaging scripts and you add Werror). Is hmat_get_build_date really necessary ? Maybe Werror is a bad idea ? Maybe provide an option to disable werror ? What do you think ?
/usr/bin/x86_64-linux-gnu-g++ -D_GNU_SOURCE -Dhmat_oss_EXPORTS -I/tmp/hmat-oss-1.2.0/include -I/tmp/hmat-oss-1.2.0/obj-x86_64-linux-gnu -I/tmp/hmat-oss-1.2.0/src -fopenmp -Werror -Wall -Wno-unused-result -Wno-sign-compare -Wno-literal-suffix -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -funsafe-math-optimizations -fopenmp -fPIC -o CMakeFiles/hmat-oss.dir/src/c_default_interface.cpp.o -c /tmp/hmat-oss-1.2.0/src/c_default_interface.cpp /usr/src/packages/BUILD/src/c_default_interface.cpp:257:22: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] [ 617s] return "Built on " __DATE__ " at " __TIME__ "" ; [ 617s] ^ [ 617s] /usr/src/packages/BUILD/src/c_default_interface.cpp:257:38: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] [ 617s] return "Built on " __DATE__ " at " __TIME__ "" ;
The build fails when building packages (Wdate-time is enabled by debian packaging scripts and you add Werror). Is hmat_get_build_date really necessary ? Maybe Werror is a bad idea ? Maybe provide an option to disable werror ? What do you think ?