The usage of the unsupported -dumpspecs compiler option breaks the 'make check' in libffi-3.2.when it is built with clang...
Test run by fink-bld on Wed Dec 14 17:46:42 2016
Native configuration is x86_64-apple-darwin16.3.0
=== libffi tests ===
Schedule of variations:
unix
Running target unix
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../testsuite/config/default.exp as tool-and-target-specific interface file.
Running ../../testsuite/libffi.call/call.exp ...
ERROR: tcl error sourcing ../../testsuite/libffi.call/call.exp.
ERROR: clang: error: unsupported option '-dumpspecs'
clang: error: no input files
while executing
"exec $compiler -dumpspecs"
(procedure "get_multilibs" line 133)
invoked from within
"get_multilibs"
(procedure "g++_include_flags" line 9)
invoked from within
"g++_include_flags"
(procedure "default_target_compile" line 52)
invoked from within
"default_target_compile $source $destfile $type $options"
(procedure "target_compile" line 6)
invoked from within
"target_compile $source $dest $type $options"
(procedure "libffi_target_compile" line 57)
invoked from within
"libffi_target_compile "$prog" "$output_file" "$compile_type" $options"
(procedure "libffi-dg-test-1" line 52)
invoked from within
"libffi-dg-test-1 target_compile $prog $do_what $extra_tool_flags"
(procedure "libffi-dg-test" line 2)
invoked from within
"${tool}-dg-test $prog [lindex ${dg-do-what} 0] "$tool_flags ${dg-extra-tool-flags}""
(procedure "saved-dg-test" line 112)
invoked from within
"saved-dg-test ../../testsuite/libffi.call/unwindtest.cc {-W -Wall -O0} {}"
("eval" body line 1)
invoked from within
"eval saved-dg-test $args "
(procedure "dg-test" line 6)
invoked from within
"dg-test $test $options """
(procedure "run-many-tests" line 36)
invoked from within
"run-many-tests $tlist """
(file "../../testsuite/libffi.call/call.exp" line 25)
invoked from within
"source ../../testsuite/libffi.call/call.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source ../../testsuite/libffi.call/call.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
=== libffi Summary ===
# of expected passes 1780
make[3]: *** [check-DEJAGNU] Error 1
make[2]: *** [check-am] Error 2
Is there some permutation of compiler flags which would suppress the usage of -dumpspecs when runtest is invoked against the clang compiler? I tried using...
which was suggested in some google hits on this issue but it doesn't suppress the problem. Alternatively can the dejagnu developers suggest a patch that can be applied to the dejagnu 1.6 sources which would suppress the usage of -dumpspecs without breaking the runtest functionality?