public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-17 19:04 Suhaib Siddiqi
  0 siblings, 0 replies; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-17 19:04 UTC (permalink / raw)
  To: Tzafrir Cohen; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]

I forwarded your message to cygwin list.  That is
appropriate place to ask.  I am not a binutils expert,
rather binutil layman.

Suhaib

------------------------------------------------
--- Tzafrir Cohen <tzafrir@technion.ac.il> wrote:
> Hi
> 
> I saw your message on the cygwin list.
> 
> I have run into the same problem while trying to
> compile PostgreSQL on an
> NT4 station. I use cigwin from "latest" as well. I
> get the same error
> message (even after adding --oformat pe-i386): 
> 
> ld -r --oformat pe-i386 -o SUBSYS.o hash.o
> hashfunc.o hashinsert.o
> hashovfl.o ha shpage.o hashscan.o hashsearch.o
> hashstrat.o hashutil.o
> Unsupported PEI architecture: pe-i386
> make: *** [SUBSYS.o] Error 1
> 
> Any idea?
> 
> Another small annoyance is that I get a zero-sized
> output file (SUBSYS.o),
> and thus running "make" again gives "nothing to do".
> 
> -- 
> Tzafrir Cohen
> mailto:tzafrir@technion.ac.il 
> http://www.technion.ac.il/~tzafrir
> 


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-18 16:49 Suhaib Siddiqi
@ 2000-07-18 17:01 ` DJ Delorie
  0 siblings, 0 replies; 17+ messages in thread
From: DJ Delorie @ 2000-07-18 17:01 UTC (permalink / raw)
  To: s_m_siddiqi; +Cc: cygwin

> Thanks.  Your patch for ld, fixed the ld -r problem.  Thanks a lot.

Great!

> Do you plan to update the binutils distribution archive?

Chris has been doing that, so I don't know.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-18 16:49 Suhaib Siddiqi
  2000-07-18 17:01 ` DJ Delorie
  0 siblings, 1 reply; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-18 16:49 UTC (permalink / raw)
  To: cygwin; +Cc: dj

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

DJ, 

Thanks.  Your patch for ld, fixed the ld -r problem.
Thanks a lot.  Do you plan to update the binutils
distribution archive, one other person reported same
problem, whose e-mail I forwarded to list yesterday.

Thanks a lot for your help.

Suhaib

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16 16:34 ` Chris Faylor
  2000-07-16 19:37   ` DJ Delorie
@ 2000-07-17 14:00   ` DJ Delorie
  1 sibling, 0 replies; 17+ messages in thread
From: DJ Delorie @ 2000-07-17 14:00 UTC (permalink / raw)
  To: cygwin; +Cc: ssiddiqi

> On Sun, Jul 16, 2000 at 12:59:59PM -0700, Suhaib Siddiqi wrote:
> >Yes, 
> >That was it.  Now I need to adapt Imake.rules files
> >or I will be manually issuing this command 130 times.
> 
> Hmm.  It should be possible to change one of the linker scripts to
> accomodate this shouldn't it?  DJ?

Try this:

2000-07-17  DJ Delorie  <dj@cygnus.com>

	* pe-dll.c (pe_dll_id_target): check object target name also

Index: pe-dll.c
===================================================================
RCS file: /cvs/src/src/ld/pe-dll.c,v
retrieving revision 1.13
diff -p -2 -r1.13 pe-dll.c
*** pe-dll.c	2000/07/17 18:40:47	1.13
--- pe-dll.c	2000/07/17 20:58:57
*************** pe_dll_id_target (target)
*** 138,142 ****
    int i;
    for (i=0; pe_detail_list[i].target_name; i++)
!     if (strcmp (pe_detail_list[i].target_name, target) == 0)
        {
  	pe_details = pe_detail_list+i;
--- 138,143 ----
    int i;
    for (i=0; pe_detail_list[i].target_name; i++)
!     if (strcmp (pe_detail_list[i].target_name, target) == 0
! 	|| strcmp (pe_detail_list[i].object_target, target) == 0)
        {
  	pe_details = pe_detail_list+i;

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16 16:34 ` Chris Faylor
@ 2000-07-16 19:37   ` DJ Delorie
  2000-07-17 14:00   ` DJ Delorie
  1 sibling, 0 replies; 17+ messages in thread
From: DJ Delorie @ 2000-07-16 19:37 UTC (permalink / raw)
  To: cygwin

> Hmm.  It should be possible to change one of the linker scripts to
> accomodate this shouldn't it?  DJ?

We shouldn't need to change anything; it's all there.  It just doesn't
work.  Looks like a bug.  I'll investigate.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-16 17:42 Suhaib Siddiqi
  0 siblings, 0 replies; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-16 17:42 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

>I was referring to one of the scripts >in
/usr/lib/ldscripts.  I'm only
>barely literate with these myself so I don't know if
>this is even possible.

>It sounds like we should just change binutils to work
>correctly.

>cgf

It used to work before, after June 25 changes to
binutils, it does not.  

Suhaib



__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16 17:27 Suhaib Siddiqi
@ 2000-07-16 17:39 ` Chris Faylor
  0 siblings, 0 replies; 17+ messages in thread
From: Chris Faylor @ 2000-07-16 17:39 UTC (permalink / raw)
  To: cygwin

On Sun, Jul 16, 2000 at 05:27:16PM -0700, Suhaib Siddiqi wrote:
>
>On Sun, Jul 16, 2000 at 12:59:59PM -0700, Suhaib
>Siddiqi wrote:
>>>Yes, That was it.  Now I need to adapt Imake.rules files or I will be
>>>manually issuing this command 130 times.
>
>>Hmm.  It should be possible to change one of the linker scripts to
>>accomodate this shouldn't it?  DJ?
>
>Which one?  I am illiterate when it comes to hacking gcc and binutils

I was referring to one of the scripts in /usr/lib/ldscripts.  I'm only
barely literate with these myself so I don't know if this is even possible.

It sounds like we should just change binutils to work correctly.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-16 17:27 Suhaib Siddiqi
  2000-07-16 17:39 ` Chris Faylor
  0 siblings, 1 reply; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-16 17:27 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]

On Sun, Jul 16, 2000 at 12:59:59PM -0700, Suhaib
Siddiqi wrote:
>>Yes, 
>>That was it.  Now I need to adapt Imake.rules files
>>or I will be manually issuing this command 130
times.

> Hmm.  It should be possible to change one of the 
> linker scripts to
> accomodate this shouldn't it?  DJ?

Which one?  I am illiterate when it comes to hacking
gcc and binutils
-sms



__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16 17:24 Suhaib Siddiqi
@ 2000-07-16 17:26 ` Chris Faylor
  0 siblings, 0 replies; 17+ messages in thread
From: Chris Faylor @ 2000-07-16 17:26 UTC (permalink / raw)
  To: cygwin

On Sun, Jul 16, 2000 at 05:23:44PM -0700, Suhaib Siddiqi wrote:
>
>On Sun, Jul 16, 2000 at 11:01:35AM -0700, Suhaib
>cgf wrote:
>>The 7/14 snapshot had some problems with shared libraries.  I've made
>>some changes to cygwin's antiquated startup code and I'm trying to make
>>sure that everything is backwards compatible but it's been tough.
>
>>I've started another snapshot building now.  It will be interesting to
>>see if things work better with this one.
>
>>Can I assume that this is failing on Windows NT?
>
>Yes.  On Windows NT 4.0 SP6a and Windows2000 SP1 (SP1 from MSDN
>Subscription), both give same error.
>
>I will try the new snapshot when it available.

I just checked and the change that I thought would fix this is already
in the 7/14 snapshot.  I'm downloading the latest X stuff now to see
what's going on.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-16 17:24 Suhaib Siddiqi
  2000-07-16 17:26 ` Chris Faylor
  0 siblings, 1 reply; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-16 17:24 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

On Sun, Jul 16, 2000 at 11:01:35AM -0700, Suhaib
Siddiqi wrote:

>The 7/14 snapshot had some problems with shared
>libraries.  I've made
>some changes to cygwin's antiquated startup code and
>I'm trying to make
>sure that everything is backwards compatible but it's
>been tough.

>I've started another snapshot building now.  It will
>be interesting to
>see if things work better with this one.

> Can I assume that this is failing on Windows NT?

Yes. On Windows NT 4.0 SP6a and Windows2000 SP1 (SP1
from MSDN Subscription), both give same error.

I will try the new snapshot when it available.


>cgf


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-16 17:05 Suhaib Siddiqi
  0 siblings, 0 replies; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-16 17:05 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

> 
> Thanks, DJ. I *did* say that my response was only a
> guess. :-) I'll bow
> out now and leave it to the experts. Sorry for
> adding to the confusion.

Well, we live and learn.  Thanks for your help :-)

Suhaib

> 
> --Chuck


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16 13:00 Suhaib Siddiqi
@ 2000-07-16 16:34 ` Chris Faylor
  2000-07-16 19:37   ` DJ Delorie
  2000-07-17 14:00   ` DJ Delorie
  0 siblings, 2 replies; 17+ messages in thread
From: Chris Faylor @ 2000-07-16 16:34 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

On Sun, Jul 16, 2000 at 12:59:59PM -0700, Suhaib Siddiqi wrote:
>Yes, 
>That was it.  Now I need to adapt Imake.rules files
>or I will be manually issuing this command 130 times.

Hmm.  It should be possible to change one of the linker scripts to
accomodate this shouldn't it?  DJ?

cgf

>--- DJ Delorie <dj@delorie.com> wrote:
>> 
>> > Unsupported PEI architecture: pe-i386
>> > 
>> > Any suggestions?  I am using Cygwin 1.1.2 and the
>> > binutils from the "latest"
>> 
>> I think the problem is that the linker is using PEI
>> instead of PE.
>> PEI is *only* for executables, PE is *only* for
>> objects.  When you do
>> "ld -r" it's trying to produce an object, but if it
>> doesn't
>> know to switch formats, it will have a problem.
>> 
>> Try "ld -r --oformat pe-i386 ..."
>
>
>__________________________________________________
>Do You Yahoo!?
>Get Yahoo! Mail – Free email you can access from anywhere!
> http://mail.yahoo.com/
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourceware.cygnus.com/         http://www.redhat.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16 12:44 ` DJ Delorie
@ 2000-07-16 14:06   ` Charles Wilson
  0 siblings, 0 replies; 17+ messages in thread
From: Charles Wilson @ 2000-07-16 14:06 UTC (permalink / raw)
  To: egcs; +Cc: s_m_siddiqi, cygwin

DJ Delorie wrote:
> 
> > Unsupported PEI architecture: pe-i386
> >
> > Any suggestions?  I am using Cygwin 1.1.2 and the
> > binutils from the "latest"
> 
> I think the problem is that the linker is using PEI instead of PE.
> PEI is *only* for executables, PE is *only* for objects.  When you do
> "ld -r" it's trying to produce an object, but if it doesn't
> know to switch formats, it will have a problem.
> 
> Try "ld -r --oformat pe-i386 ..."
> 

Thanks, DJ. I *did* say that my response was only a guess. :-) I'll bow
out now and leave it to the experts. Sorry for adding to the confusion.

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
@ 2000-07-16 13:00 Suhaib Siddiqi
  2000-07-16 16:34 ` Chris Faylor
  0 siblings, 1 reply; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-16 13:00 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

Yes, 
That was it.  Now I need to adapt Imake.rules files
or I will be manually issuing this command 130 times.

Suhaib

--- DJ Delorie <dj@delorie.com> wrote:
> 
> > Unsupported PEI architecture: pe-i386
> > 
> > Any suggestions?  I am using Cygwin 1.1.2 and the
> > binutils from the "latest"
> 
> I think the problem is that the linker is using PEI
> instead of PE.
> PEI is *only* for executables, PE is *only* for
> objects.  When you do
> "ld -r" it's trying to produce an object, but if it
> doesn't
> know to switch formats, it will have a problem.
> 
> Try "ld -r --oformat pe-i386 ..."


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16  9:58 Suhaib Siddiqi
  2000-07-16 11:51 ` Charles Wilson
@ 2000-07-16 12:44 ` DJ Delorie
  2000-07-16 14:06   ` Charles Wilson
  1 sibling, 1 reply; 17+ messages in thread
From: DJ Delorie @ 2000-07-16 12:44 UTC (permalink / raw)
  To: s_m_siddiqi; +Cc: cygwin

> Unsupported PEI architecture: pe-i386
> 
> Any suggestions?  I am using Cygwin 1.1.2 and the
> binutils from the "latest"

I think the problem is that the linker is using PEI instead of PE.
PEI is *only* for executables, PE is *only* for objects.  When you do
"ld -r" it's trying to produce an object, but if it doesn't
know to switch formats, it will have a problem.

Try "ld -r --oformat pe-i386 ..."

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: ld -r Unsupported PEI arch pe-i386
  2000-07-16  9:58 Suhaib Siddiqi
@ 2000-07-16 11:51 ` Charles Wilson
  2000-07-16 12:44 ` DJ Delorie
  1 sibling, 0 replies; 17+ messages in thread
From: Charles Wilson @ 2000-07-16 11:51 UTC (permalink / raw)
  To: Suhaib Siddiqi; +Cc: cygwin

Suhaib Siddiqi wrote:
> 
> Compiling Xfree86 4.0.1, I ran into some problems.
> 
> ld -r return errors
> 
> bash-2.04$ ld  -r mga_driver.o mga_hwcurs.o
> mga_dac3026.o mga_dacG.o        mg
> a_storm8.o mga_storm16.o mga_storm24.o mga_storm32.o
> mga_arc.o        mga_dga.o
>  mga_shadow.o  mga_video.o  -o mga_drv.o
> Unsupported PEI architecture: pe-i386
> 
> Any suggestions?  I am using Cygwin 1.1.2 and the
> binutils from the "latest"

I'm not sure about this, but I *think* there is no such thing as
"relocatable" code on windows/pei386 per se. All code is relocatable(*),
so the '-r' option is pointless.

(*) because the object files that go into dll's are built exactly the
same as the object files that go into static libs. But dll's get special
'fixup' code to do the "relocation" when the dll is loaded into memory.
This fixup code is added when you do 'ld -shared *.o -o foo.dll' to
create the dll (or dlltool, whatever...)

I think you ought to be able to get a working loadable module for XF86 4
by removing the '-r' altogether, right?

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* ld -r Unsupported PEI arch pe-i386
@ 2000-07-16  9:58 Suhaib Siddiqi
  2000-07-16 11:51 ` Charles Wilson
  2000-07-16 12:44 ` DJ Delorie
  0 siblings, 2 replies; 17+ messages in thread
From: Suhaib Siddiqi @ 2000-07-16  9:58 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

Compiling Xfree86 4.0.1, I ran into some problems.  

ld -r return errors

bash-2.04$ ld  -r mga_driver.o mga_hwcurs.o 
mga_dac3026.o mga_dacG.o        mg
a_storm8.o mga_storm16.o mga_storm24.o mga_storm32.o
mga_arc.o        mga_dga.o
 mga_shadow.o  mga_video.o  -o mga_drv.o
Unsupported PEI architecture: pe-i386

Any suggestions?  I am using Cygwin 1.1.2 and the
binutils from the "latest"

Suhaib



__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-07-18 17:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-17 19:04 ld -r Unsupported PEI arch pe-i386 Suhaib Siddiqi
  -- strict thread matches above, loose matches on Subject: below --
2000-07-18 16:49 Suhaib Siddiqi
2000-07-18 17:01 ` DJ Delorie
2000-07-16 17:42 Suhaib Siddiqi
2000-07-16 17:27 Suhaib Siddiqi
2000-07-16 17:39 ` Chris Faylor
2000-07-16 17:24 Suhaib Siddiqi
2000-07-16 17:26 ` Chris Faylor
2000-07-16 17:05 Suhaib Siddiqi
2000-07-16 13:00 Suhaib Siddiqi
2000-07-16 16:34 ` Chris Faylor
2000-07-16 19:37   ` DJ Delorie
2000-07-17 14:00   ` DJ Delorie
2000-07-16  9:58 Suhaib Siddiqi
2000-07-16 11:51 ` Charles Wilson
2000-07-16 12:44 ` DJ Delorie
2000-07-16 14:06   ` Charles Wilson

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).