I'm trying to compile tensorflow with EasyBuild on CentOs6, but Bazel is catching the wrong binutils dir, unfortunately a hardcoded one, ending with the wrong Assembler.
If I try to patch the hardcoded "-B/usr/bin" for the linker bazel tells me later the error below ...
"find %(builddir)s/ -type f | grep \"cpp/CROSSTOOL\" | xargs -n 1 sed -i \"s|-B/usr/bin/|-B$EBROOTBINUTILS|\"
Error: corrupt installation: file _embedded_binaries/embedded_tools/tools/cpp/CROSSTOOL' modified. Please remove 'install/c3fbdea9fb934f1ff0d8172c25d0dab2' and try again. (at easybuild/tools/run.py:469 in parse_cmd_output)
I've spent some time to see if there is a way to skip those stupid checksum tests, or to recalculate the checksums, but it's really not transparent to the user.
Any ideas how this can be solved ?
Yes, set the mtime of the file to 10 years into the future (it must be >10 years in the future; not just in the future):
touch -m -t 203712120101 path/to/file
EDIT: the reason Bazel checks the mtimes of the installation files is to avoid accidental changes to them. If you know what you're doing, i.e. deliberately patching the CROSSTOOL file, then this is the way to circumvent the check.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With