Getting GCC 3.2.3 to compile on cygwin
Dan Kegel
dank@kegel.com
Tue Sep 23 04:03:00 GMT 2003
Thanks, Roland!
That sounds a lot like http://gcc.gnu.org/PR10198
I think the official-ish patch is a bit different from yours;
see http://gcc.gnu.org/ml/gcc/2003-04/msg00538.html
Supposedly that's fixed in gcc-3.3; what error do you get there?
Also, were you able to build binutils for cygwin? Someone said that was
a roadblock.
- Dan
rgm@rgm.nu wrote:
> Hi Dan. I'm trying to get GCC 3.2.3 to compile on cygwin.
> It's still going, but I had to add the following patch to get it to continue.
> Note that the same thing needs to happen to GCC 3.3 too, on cygwin at least.
>
> You should add it in your crosstool patches directory, as it shouldn't matter what arch it's applied to.
>
> -Roland
> =======================
> This is needed to compile on Cygwin.
>
> --- /tmp/gnu-regex.c 2003-09-22 17:03:12.000000000 -0400
> +++ gcc-3.2.3/gcc/fixinc/gnu-regex.c 2003-09-22 17:03:34.000000000 -0400
> @@ -5719,7 +5719,7 @@ regerror (errcode, preg, errbuf, errbuf_
> {
> if (msg_size > errbuf_size)
> {
> -#if defined HAVE_MEMPCPY || defined _LIBC
> +#if 0 // defined HAVE_MEMPCPY || defined _LIBC
> *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
> #else
> memcpy (errbuf, msg, errbuf_size - 1);
>
>
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list