Tiny patch for error reporting of bundled extension configuration
Posted: 05 Aug 2016, 18:46
We had a misconfiguration in shared libraries, which caused the bundled extension configuration to fail with the following output:
Our misconfiguration is now solved, but I think these errors should rather show up in the bundled log. I attach a patch.
(also available as a commit on https://github.com/mkoeppe/polymake/tree/sage-package)
By the way, it would be great if the tempfiles that configure creates were kept around when there's an error. This would make debugging easier.
Code: Select all
bundled extension bliss ... /tmp/polymake_21906_configure: error while loading shared libraries: libgmp.so.16: cannot open shared object file: No such file or directory
bundled extension cdd ... /tmp/polymake_21906_configure: error while loading shared libraries: libgmp.so.16: cannot open shared object file: No such file or directory
Code: Select all
diff --git a/perllib/Polymake/Configure.pm b/perllib/Polymake/Configure.pm
index fc3f08a..fa121ee 100644
--- a/perllib/Polymake/Configure.pm
+++ b/perllib/Polymake/Configure.pm
@@ -422,7 +422,7 @@ sub compile_test_program {
# Run the program previously build with `build_test_program'.
sub run_test_program {
- `$tempdir/polymake_${$}_configure`
+ `$tempdir/polymake_${$}_configure 2>&1`
}
END {
By the way, it would be great if the tempfiles that configure creates were kept around when there's an error. This would make debugging easier.