* PATH_MAX missing cross building gmon-sol2.c
@ 2008-06-15 15:05 Jay
2008-06-15 16:51 ` Eric Botcazou
0 siblings, 1 reply; 2+ messages in thread
From: Jay @ 2008-06-15 15:05 UTC (permalink / raw)
To: gcc
I am crossing from i686-cygwin to sparc-solaris (my Sun cc won't compile gcc
due to macros with empty parameters like in c-common.c):
/src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c: In function '_mcleanup':
/src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: error: 'PATH_MAX' undeclared (first use in this function)
/src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: error: (Each undeclared identifier is reported only once
/src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: error: for each function it appears in.)
/src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: warning: unused variable 'buf'
make[3]: *** [/cygdrive/d/obj/cross-gcc/sparc-solaris/libgcc/gmon.o] Error 1
make[3]: Leaving directory `/cygdrive/d/obj/cross-gcc/gcc'
make[2]: *** [gcc-extra-parts] Error 2
Could be my /usr/local/sparc-solaris/include is old.
just add #define PATH_MAX 1024
D:\src\gcc-4.3.1\gcc\config\sparc>diff -u gmon-sol2.c.orig gmon-sol2.c
--- gmon-sol2.c.orig 2008-06-15 07:55:53.296875000 -0700
+++ gmon-sol2.c 2008-06-15 07:55:57.671875000 -0700
@@ -37,6 +37,8 @@
#include /* for creat() */
#include "coretypes.h"
#include "tm.h"
+
+#define PATH_MAX 1024
#if 0
#include "sparc/gmon.h"
I deliberately didn't put #ifndef in so that if it is defined, and this mismatches, will error.
Thanks,
- Jay
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATH_MAX missing cross building gmon-sol2.c
2008-06-15 15:05 PATH_MAX missing cross building gmon-sol2.c Jay
@ 2008-06-15 16:51 ` Eric Botcazou
0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2008-06-15 16:51 UTC (permalink / raw)
To: gcc; +Cc: Jay
> I am crossing from i686-cygwin to sparc-solaris (my Sun cc won't compile
> gcc due to macros with empty parameters like in c-common.c):
>
> /src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c: In function '_mcleanup':
> /src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: error: 'PATH_MAX'
> undeclared (first use in this function)
> /src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: error: (Each undeclared
> identifier is reported only once
> /src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: error: for each function
> it appears in.) /src/gcc-4.3.1/gcc/config/sparc/gmon-sol2.c:182: warning:
> unused variable 'buf' make[3]: ***
> [/cygdrive/d/obj/cross-gcc/sparc-solaris/libgcc/gmon.o] Error 1 make[3]:
> Leaving directory `/cygdrive/d/obj/cross-gcc/gcc'
> make[2]: *** [gcc-extra-parts] Error 2
>
> Could be my /usr/local/sparc-solaris/include is old.
Or a configuration problem, see PR target/28097.
--
Eric Botcazou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-15 16:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-15 15:05 PATH_MAX missing cross building gmon-sol2.c Jay
2008-06-15 16:51 ` Eric Botcazou
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).