List Info

Thread: testsuite; Pass down --enable-auto-import.




testsuite; Pass down --enable-auto-import.
user name
2006-07-30 10:05:14
Hi guys,

I'm trying to run the testsuite for arm-wince-pe target.

I'm getting a bunch of these:
"Running 
/cygdrive/d/cegcc/trunk/cegcc/src/gdb-cvs/gdb/testsuite/gdb.
base/all-bin.exp 
...
gdb compile failed, Info: resolving _CRT_MT by linking to
__imp__CRT_MT 
(auto-import)
WARNING: Testcase compile failed, so all tests in this file
will 
automatically fail."

Since ld's --enable-auto-import removes that warning, I've
tried:
 >make check 'CFLAGS_FOR_TARGET=-Wl,--enable-auto-import

LDFLAGS_FOR_TARGET=--enable-auto-import'

  and also:

 >export CFLAGS_FOR_TARGET=-Wl,--enable-auto-import
 >export LDFLAGS_FOR_TARGET=--enable-auto-import
 >make check

But still, I get the error.

Any hints (, besides hacking ld to remove the warning)?

Cheers,
Pedro Alves

testsuite; Pass down --enable-auto-import.
user name
2006-07-30 22:24:56
On Sun, Jul 30, 2006 at 11:05:14AM +0100, Pedro Alves wrote:
> >export CFLAGS_FOR_TARGET=-Wl,--enable-auto-import
> >export LDFLAGS_FOR_TARGET=--enable-auto-import
> >make check
> 
> But still, I get the error.
> 
> Any hints (, besides hacking ld to remove the warning)?

You've got a board file, right?  Try 'set_board_info
ldflags
"-Wl,--enable-auto-import"'.


-- 
Daniel Jacobowitz
CodeSourcery
testsuite; Pass down --enable-auto-import.
user name
2006-07-31 12:51:05
Daniel Jacobowitz wrote:
> On Sun, Jul 30, 2006 at 11:05:14AM +0100, Pedro Alves
wrote:
>>> export
CFLAGS_FOR_TARGET=-Wl,--enable-auto-import
>>> export LDFLAGS_FOR_TARGET=--enable-auto-import
>>> make check
>> But still, I get the error.
>>
>> Any hints (, besides hacking ld to remove the
warning)?
> 
> You've got a board file, right?  Try 'set_board_info
ldflags
> "-Wl,--enable-auto-import"'.
> 
> 

I have now, and your suggestion works.
Many thanks for the push.

Cheers,
Pedro Alves
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )