This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygwin SEGVs


At 02:03 PM 10/20/2000, DJ Delorie wrote:

> > There is a problem.  Someone changed the top level configure a while ago
> > and broke things.
>
>That would be me, so I guess I better explain ;-)
>
>GCC has a "-B" flag that *used* to be used just to find things like
>cc1, cpp, as, and ld.  However, the GCC team has been using that
>option for many other things.  One of those things is to find crt0.o
>(the libraries have their own options).  There is *no* other way to
>find crt0.o!  So, this switch is kinda mandatory if you want to link
>your programs with the right crt0.o.
>
>Unfortunately, gcc warns you if the -B option isn't used to find cc1,
>cpp, as, or ld.  The warning totally ignores other valid uses of -B,
>so the warning was removed from the gcc sources (by me).  If old
>versions didn't exist, we'd be all set.
>
>As for workarounds for old gccs, there are two:
>
>1. Binary-edit your gcc.exe to remove that warning.  Not for the feint
>    of heart.
>
>2. Remove that option in configure, and hope that the *installed*
>    crt0.o is compatible with the *built* crt0.o (or copy it).
>
>You could also go through all the Makefiles and add that -B option to
>the specific link lines, but that's a tricky thing to get right.

Hi DJ,

So what version of gcc is this NOT a problem for?  Is the current version
available for download affected?  It would be great if the answer to this
problem was simply, upgrade gcc to the latest!;-)





Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]