On Wed, Sep 1, 2010 at 2:49 AM, Deepti Thite <[email protected]> wrote:
> Hi Garrett,
>
> The actual error messages which I got were:
>
> + diff -iw /tmp/ld-6569/errmsg.out /tmp/ld-6569/errmsg.exp
> --- /tmp/ld-6569/errmsg.out     Fri Aug 27 15:42:16 2010
>
> +++ /tmp/ld-6569/errmsg.exp     Fri Aug 27 15:42:16 2010
> @@ -1,3 +1,3 @@
> -arm-none-linux-gnueabi-gcc: x.obj: No such file or directory
> -arm-none-linux-gnueabi-gcc: y.obj: No such file or directory
> -arm-none-linux-gnueabi-gcc: no input files
>
> +gcc: x.obj: No such file or directory
> +gcc: y.obj: No such file or directory
> +gcc: No input files
> + [ 1 -eq 0 ]
> + echo FAIL -  ld failed to give expected error msg
> FAIL -  ld failed to give expected error msg
>
> We are getting this issue as the native gcc is actually a shell script which
> calls
> arm-none-linux-gnueabi-gcc with compiler flags.
> So we are getting the actual output but as the two files dont match ld01
> fails.
> The patch attached in previous mail will not compare two files but will grep
> the expected output.
>
> Regards
> Deepti Thite <[email protected]>
>
> On Tue, Aug 31, 2010 at 9:18 PM, Garrett Cooper <[email protected]> wrote:
>>
>> On Tue, Aug 31, 2010 at 2:47 AM, Deepti Thite <[email protected]>
>> wrote:
>> > ld01 test fails as native compilers don’t match in the expected and
>> > output
>> > file.
>> >
>> > The attached patch will grep expected results from the output file
>> > generated
>> > and will not create an expected results file.
>>
>> What is the actual error message that gets printed out by ld(1)?
>> Thanks,

Here's a solution that doesn't require any change:

export CC='absolute-path-to-gcc'
export LD='absolute-path-to-ld'
runltp # ...

this equals zero change in our code, and ensures that the absolute
name for the compiler is correct.

Thanks,
-Garrett

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to