All -
Adding support for the program_transform_name (sed-style expression to convert the names of executables under test) would simplify the testing of gcc cross-compilers, since the runtest.exp procedure "transform" is unable to find binaries created with a transformed name.
For example, if my binutils are installed with the prefix "arm-elf-", gcc tracks this by applying a program transform name of "s,^,arm-elf-,". And, when I run the g++ tests, I get the error:
ERROR: g++.dg/abi/rtti1.C: error executing dg-final: couldn't execute "arm-none-elf-c++filt": no such file or directory
This happens because runtest.exp looks for the prefix "$target_alias-" (which in this case is "arm-none-elf-"), but not the transformed name. Of course, for this to all work together, the site.exp files that gcc generates would also have to be changed to set this value.
Any chance of applying a patch along these lines?
Thanks -
Josh ~~~~ Josh Conner
Index: runtest.exp =================================================================== RCS file: /cvsroot/dejagnu/dejagnu/runtest.exp,v retrieving revision 1.21 diff -r1.21 runtest.exp 89a90 > set program_transform_name "" 213a215 > global program_transform_name 214a217,224 > if [info exists program_transform_name] { > if [catch "exec echo $name | sed $program_transform_name" tmp] { > verbose "Transform failed: $tmp" > } else { > verbose "Transforming $name to $tmp" > return $tmp > } > }
_______________________________________________ DejaGnu mailing list DejaGnu@gnu.org http://lists.gnu.org/mailman/listinfo/dejagnu