This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Testing a Canadian cross
13/11/2012 11:33, Aurelien Buhrig:
> 10/11/2012 17:17, Ángel González:
>> On 07/11/12 11:38, Aurelien Buhrig wrote:
>> You could run the mingw32 compiler using wine.
>
>
> Sorry for my late reply. I was trying to install wine and make it
> work... but it does not run as expected. I can execute the canadian
> cross compiler when it is installed (using wine in command line), but I
> cannot make it work within dejagnu.
>
> My site.exp contains:
> set GCC_UNDER_TEST {wine /path/to/<target>-gcc}
>
> and I get:
> Executing on host: wine /path/to/<target>-gcc -O1 -w
> -DSTACK_SIZE=1024 -c -o 20000105-1.o
> /path/to/src/gcc/testsuite/gcc.c-torture/compile/20000105-1.c
> (timeout = 300)
> [[?1h^[=output is:
> ^[[?1h^[=
> FAIL: gcc.c-torture/compile/20000105-1.c -O0 (test for excess errors)
> Excess errors:
> ^[[?1h^[=
> FAIL: gcc.c-torture/compile/20000105-1.c
>
> It seems to be an output issue. Did you get such errors ?
Ok, it's a windows executable... so newlines contain \r and are not
misinterpreted in tcl. To workaround the issue, I made used a shell
script as GCC_UNDER_TEST :
#!/bin/sh
wine /path/to/<target>-gcc.exe $@ | sed -e "s#\r##"
Do you have a better solution?
Aurélien