public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: GDB for PC windows NT
@ 2000-04-19 14:19 Sudhanshu_Tewari
  2000-04-19 16:39 ` Chris Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Sudhanshu_Tewari @ 2000-04-19 14:19 UTC (permalink / raw)
  To: Michael Meissner; +Cc: gdb

Hi Michael,

Sorry for not writing clearly.
I gave the configurartion as ppc-ibm-eabi and it took that configuration
the configure command was successful.

when i gave make
i got the same error as i mensioned yerterday i.e.

when it was trying to link all .o and libraries to get gdb.exe
it got unresolved reference to "_ _imp_ _ _ctype_ "
in file "readline.o"
this error is repeated many times for the same file.

I checked the file readline.c there is no refrence to "_ _imp_ _
 _ctype_ " present there. This symbol is generated by compiler while compiling
readline .c

Just now i tried the configuration with ppc-unknown-eabi and
i am getting same error after make.

i.e. unresolved refrence to "_ _imp_ _ _ctype".

Is the version gdb4.18 is compiling ? properly for pc as host and powerpc as
target ?.
Should i use some other release !!!


Thanks
Sudhanshu






Michael Meissner <meissner@cygnus.com> on 04/19/2000 02:07:06 PM

Sent by:  Michael Meissner <meissner@cygnus.com>


To:   Sudhanshu Tewari/US/3Com
cc:   Michael Meissner <meissner@cygnus.com>
Subject:  Re: GDB for PC windows NT




On Wed, Apr 19, 2000 at 10:43:59AM -0600, Sudhanshu_Tewari@3com.com wrote:
>
>
> Hi,
>
> Thanks for the information.
>
> Actually i just gave configurartion as
> powerpc-ibm
> It took ppc-ibm-aix automatically.
>
> I tried with ppc-ibm-eabi still getting same message.

Try:

     powerpc-eabi

or

     powerpc-unknown-eabi

since as you noted powerpc-ibm is treated as powerpc-ibm-aix.

> undefined reference to __imp___ctype_     in  readline.o
>
> Thanks
> Sudhanshu
>
>

--
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:       meissner@redhat.com          phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org    fax:   +1 978-692-4482




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB for PC windows NT
  2000-04-19 14:19 GDB for PC windows NT Sudhanshu_Tewari
@ 2000-04-19 16:39 ` Chris Faylor
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Faylor @ 2000-04-19 16:39 UTC (permalink / raw)
  To: Sudhanshu_Tewari; +Cc: Michael Meissner, gdb

You are having a problem with mismatched libraries due to downloading of
a cygwin snapshot.  You should either search the cygwin mailing list
archives to find out how to resolve this or send mail to
cygwin@sourceware.cygnus.com.

Alternatively, you could try downloading the new net release (check the
cygwin web page:  http://sourceware.cygnus.com/cygwin/ )

On Wed, Apr 19, 2000 at 03:20:38PM -0600, Sudhanshu_Tewari@3com.com wrote:
>Sorry for not writing clearly.
>I gave the configurartion as ppc-ibm-eabi and it took that configuration
>the configure command was successful.
>
>when i gave make
>i got the same error as i mensioned yerterday i.e.
>
>when it was trying to link all .o and libraries to get gdb.exe
>it got unresolved reference to "_ _imp_ _ _ctype_ "
>in file "readline.o"
>this error is repeated many times for the same file.
>
>I checked the file readline.c there is no refrence to "_ _imp_ _
> _ctype_ " present there. This symbol is generated by compiler while compiling
>readline .c
>
>Just now i tried the configuration with ppc-unknown-eabi and
>i am getting same error after make.
>
>i.e. unresolved refrence to "_ _imp_ _ _ctype".
>
>Is the version gdb4.18 is compiling ? properly for pc as host and powerpc as
>target ?.
>Should i use some other release !!!
>
>
>Thanks
>Sudhanshu
>
>
>
>
>
>
>Michael Meissner <meissner@cygnus.com> on 04/19/2000 02:07:06 PM
>
>Sent by:  Michael Meissner <meissner@cygnus.com>
>
>
>To:   Sudhanshu Tewari/US/3Com
>cc:   Michael Meissner <meissner@cygnus.com>
>Subject:  Re: GDB for PC windows NT
>
>
>
>
>On Wed, Apr 19, 2000 at 10:43:59AM -0600, Sudhanshu_Tewari@3com.com wrote:
>>
>>
>> Hi,
>>
>> Thanks for the information.
>>
>> Actually i just gave configurartion as
>> powerpc-ibm
>> It took ppc-ibm-aix automatically.
>>
>> I tried with ppc-ibm-eabi still getting same message.
>
>Try:
>
>     powerpc-eabi
>
>or
>
>     powerpc-unknown-eabi
>
>since as you noted powerpc-ibm is treated as powerpc-ibm-aix.
>
>> undefined reference to __imp___ctype_     in  readline.o
-- 
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourcware.cygnus.com/          http://www.redhat.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB for PC windows NT
@ 2000-04-20 14:16 Sudhanshu_Tewari
  0 siblings, 0 replies; 6+ messages in thread
From: Sudhanshu_Tewari @ 2000-04-20 14:16 UTC (permalink / raw)
  To: Chris Faylor; +Cc: meissner, gdb

I could solve this problem.
There were some .h files make was picking up from /usr/local/include
that was causing the problem.

Thanks for the information.

Sudhanshu






Chris Faylor <cgf@cygnus.com> on 04/19/2000 05:39:05 PM

Sent by:  Chris Faylor <cgf@cygnus.com>


To:   Sudhanshu Tewari/US/3Com
cc:   Michael Meissner <meissner@cygnus.com>, gdb@sourceware.cygnus.com
Subject:  Re: GDB for PC windows NT




You are having a problem with mismatched libraries due to downloading of
a cygwin snapshot.  You should either search the cygwin mailing list
archives to find out how to resolve this or send mail to
cygwin@sourceware.cygnus.com.

Alternatively, you could try downloading the new net release (check the
cygwin web page:  http://sourceware.cygnus.com/cygwin/ )

On Wed, Apr 19, 2000 at 03:20:38PM -0600, Sudhanshu_Tewari@3com.com wrote:
>Sorry for not writing clearly.
>I gave the configurartion as ppc-ibm-eabi and it took that configuration
>the configure command was successful.
>
>when i gave make
>i got the same error as i mensioned yerterday i.e.
>
>when it was trying to link all .o and libraries to get gdb.exe
>it got unresolved reference to "_ _imp_ _ _ctype_ "
>in file "readline.o"
>this error is repeated many times for the same file.
>
>I checked the file readline.c there is no refrence to "_ _imp_ _
> _ctype_ " present there. This symbol is generated by compiler while compiling
>readline .c
>
>Just now i tried the configuration with ppc-unknown-eabi and
>i am getting same error after make.
>
>i.e. unresolved refrence to "_ _imp_ _ _ctype".
>
>Is the version gdb4.18 is compiling ? properly for pc as host and powerpc as
>target ?.
>Should i use some other release !!!
>
>
>Thanks
>Sudhanshu
>
>
>
>
>
>
>Michael Meissner <meissner@cygnus.com> on 04/19/2000 02:07:06 PM
>
>Sent by:  Michael Meissner <meissner@cygnus.com>
>
>
>To:   Sudhanshu Tewari/US/3Com
>cc:   Michael Meissner <meissner@cygnus.com>
>Subject:  Re: GDB for PC windows NT
>
>
>
>
>On Wed, Apr 19, 2000 at 10:43:59AM -0600, Sudhanshu_Tewari@3com.com wrote:
>>
>>
>> Hi,
>>
>> Thanks for the information.
>>
>> Actually i just gave configurartion as
>> powerpc-ibm
>> It took ppc-ibm-aix automatically.
>>
>> I tried with ppc-ibm-eabi still getting same message.
>
>Try:
>
>     powerpc-eabi
>
>or
>
>     powerpc-unknown-eabi
>
>since as you noted powerpc-ibm is treated as powerpc-ibm-aix.
>
>> undefined reference to __imp___ctype_     in  readline.o
--
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourcware.cygnus.com/          http://www.redhat.com/




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB for PC windows NT
  2000-04-18 23:42 ` Eric Christopher
@ 2000-04-19  7:01   ` Michael Meissner
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Meissner @ 2000-04-19  7:01 UTC (permalink / raw)
  To: Eric Christopher; +Cc: Sudhanshu_Tewari, gdb

On Tue, Apr 18, 2000 at 11:44:37PM -0700, Eric Christopher wrote:
> \
> > Set2:
> > config
> > host = i686-pc-cygwin
> > target = powerpc-ibm-aix
> > _
> > I am getting undefined refrence to aix_process_lineos
> > multiple undefined refrence to __imp__ctype  in readline.c ( Here problem is
> > that this __imp___ctype is generated by gcc it is present only in .o file )
> > So set2 is the one i require and i am stuck here.
>
> 
> This isn't quite right.  Hopefully you aren't trying to run aix on your
> target board (I really hope not).  The configuration you want is
> target=powerpc-eabi, e.g. --target=powerpc-eabi.

Cross compilation with AIX as a target has never been supported in the GNU
tools (mainly due to nobody contributing the code).  What I suspect is
happening is the AIX tools are expecting to find the shared library information
in a fixed location, and since it doesn't find it, it assumes you have no
shared libraries.

As Eris says, powerpc-eabi is the mode for embedded PowerPC.  Note, it uses a
completely different ABI than the AIX compilers.  It also has the quirk that it
doesn't include newlib by default when linking unless you use one of the
supported board options such as -mmvme.

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB for PC windows NT
  2000-04-18 15:29 Sudhanshu_Tewari
@ 2000-04-18 23:42 ` Eric Christopher
  2000-04-19  7:01   ` Michael Meissner
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Christopher @ 2000-04-18 23:42 UTC (permalink / raw)
  To: Sudhanshu_Tewari; +Cc: gdb

\
> Set2:
> config
> host = i686-pc-cygwin
> target = powerpc-ibm-aix
> _
> I am getting undefined refrence to aix_process_lineos
> multiple undefined refrence to __imp__ctype  in readline.c ( Here problem is
> that this __imp___ctype is generated by gcc it is present only in .o file )
> So set2 is the one i require and i am stuck here.
> 

This isn't quite right.  Hopefully you aren't trying to run aix on your
target board (I really hope not).  The configuration you want is
target=powerpc-eabi, e.g. --target=powerpc-eabi.

-eric

^ permalink raw reply	[flat|nested] 6+ messages in thread

* GDB for PC windows NT
@ 2000-04-18 15:29 Sudhanshu_Tewari
  2000-04-18 23:42 ` Eric Christopher
  0 siblings, 1 reply; 6+ messages in thread
From: Sudhanshu_Tewari @ 2000-04-18 15:29 UTC (permalink / raw)
  To: gdb

Hi ,
Is anybody aware of any working release of
GDB for PC windows NT as host and IBM-powerpc as target board.

As with 4.18  I  tried compiling but getting some compilation as follows errors.

Set1:

config :
host = i686-pc-cygwin
target = i686-pc-cygwin

Then i got error at final linking stating some clipbpard functions are
unresolved.
I commented those functions and i could get working executable.

Set2:
config
host = i686-pc-cygwin
target = powerpc-ibm-aix
_
I am getting undefined refrence to aix_process_lineos
multiple undefined refrence to __imp__ctype  in readline.c ( Here problem is
that this __imp___ctype is generated by gcc it is present only in .o file )
So set2 is the one i require and i am stuck here.

Thanks
Sudhanshu


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-04-20 14:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-19 14:19 GDB for PC windows NT Sudhanshu_Tewari
2000-04-19 16:39 ` Chris Faylor
  -- strict thread matches above, loose matches on Subject: below --
2000-04-20 14:16 Sudhanshu_Tewari
2000-04-18 15:29 Sudhanshu_Tewari
2000-04-18 23:42 ` Eric Christopher
2000-04-19  7:01   ` Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).