windres testsuite failures on i686-pc-cygwin

Nick Clifton nickc@redhat.com
Mon Jun 22 17:55:00 GMT 2009
Hi Rainer,

> For me all windres tests fail:
> gcc: error trying to exec 'cc1': execvp: No such file or directory
> /home/rainer/software/build/i686-pc-cygwin/gcc-4.5.0/binutils/binutils/.libs/windres:
> preprocessing failed.

The windres program needs a C pre-processor in order to handle macros 
inside an rc file.  By default it will try to execute "gcc -E -xc 
-DRC_INVOKED" as the pre-processor command.  If this will not work on 
your system then you are going to need to add a --preprocessor=<...> 
command line switch to the invocations of windres.  Since this is being 
invoked from inside the testsuite you will have to modify the 
binutils/testsuite/binutils-all/windres/windres.exp file directly in 
order to do this.

Ideally there ought to be an info variable defined in the board 
description file loaded by the testsuite which specifies any extra 
parameters that should be passed to windres.  If you want to submit a 
patch that does this then I will be happy to review it ... :-)

Cheers
   Nick



More information about the Binutils mailing list