From: Jay <jayk123@hotmail.com>
To: <gcc@gcc.gnu.org>
Subject: PATH_MAX missing cross building gmon-sol2.c
Date: Sun, 15 Jun 2008 15:05:00 -0000 [thread overview]
Message-ID: <BAY139-W250BD86CCA596B3735B42BE6AE0@phx.gbl> (raw)
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
next reply other threads:[~2008-06-15 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-15 15:05 Jay [this message]
2008-06-15 16:51 ` Eric Botcazou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY139-W250BD86CCA596B3735B42BE6AE0@phx.gbl \
--to=jayk123@hotmail.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).