OpenCores
no use no use 1/1 no use no use
gcc-3.2.3 Fedora core 2 build issue
by Unknown on Oct 22, 2004
Not available!
The gcc-3.2.3 doesn't build on Fedora core 2. I think this is an issue with the version of 'bison' in that release of Fedora? Attached is a patchfile that allows the compiler to build. I'm not sure that this should go into the CVS database. I don't really understand the issue in depth, but it is a gcc-3.2.3 FC2 interaction issue unconnected with the or32 port. However, I thought it might be useful to others on this list... regards Adrian -------------- next part -------------- Index: gcc/c-parse.in =================================================================== --- gcc/c-parse.in (.../vendor/opencores/041016/or1k/gcc-3.2.3) (revision 64) +++ gcc/c-parse.in (.../software/trunk/opencores/or1k/gcc-3.2.3) (revision 64) @@ -62,6 +62,9 @@ /* Cause the "yydebug" variable to be defined. */ #define YYDEBUG 1 +/* malloc is poisoned in system.h. */ +#define YYMALLOC really_call_malloc + /* Rename the "yyparse" function so that we can override it elsewhere. */ #define yyparse yyparse_1 %} Index: gcc/tradcif.y =================================================================== --- gcc/tradcif.y (.../vendor/opencores/041016/or1k/gcc-3.2.3) (revision 64) +++ gcc/tradcif.y (.../software/trunk/opencores/or1k/gcc-3.2.3) (revision 64) @@ -28,6 +28,9 @@ #include "tradcpp.h" #include +/* malloc is poisoned in system.h. */ +#define YYMALLOC really_call_malloc + static int yylex PARAMS ((void)); static void yyerror PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN; Index: gcc/cp/parse.y =================================================================== --- gcc/cp/parse.y (.../vendor/opencores/041016/or1k/gcc-3.2.3) (revision 64) +++ gcc/cp/parse.y (.../software/trunk/opencores/or1k/gcc-3.2.3) (revision 64) @@ -45,6 +45,9 @@ #include "toplev.h" #include "ggc.h" +/* malloc is poisoned in system.h. */ +#define YYMALLOC really_call_malloc + extern struct obstack permanent_obstack; /* Like YYERROR but do call yyerror. */
gcc-3.2.3 Fedora core 2 build issue
by Unknown on Dec 20, 2004
Not available!
Dear adrian I used Redhat 9.0 platform to compile and simulate openrisc Recently I upgrade Redhat9.0 to Fedora core3. But openrisc toolcahin build met error. In case of gcc build, with the help of your patch, can biuld. But I met error when building gdb. Have you met no error when building bdg? ----- Original Message ----- From: Adrian Wiseadrian@a...> To: Date: Fri Oct 22 00:16:34 CEST 2004 Subject: [openrisc] gcc-3.2.3 Fedora core 2 build issue
The gcc-3.2.3 doesn't build on Fedora core 2. I think this
is an issue with the version of 'bison' in that release of
Fedora?
Attached is a patchfile that allows the compiler to build.
I'm not sure that this should go into the CVS database. I
don't really understand the issue in depth, but it is a
gcc-3.2.3 FC2 interaction issue unconnected with the
or32 port.
However, I thought it might be useful to others on this list...
regards
Adrian
-------------- next part --------------
Index: gcc/c-parse.in

======================================================
=============
---
gcc/c-parse.in (.../vendor/opencores/041016/or1k/gcc-3.2.3)

(revision
64)
+++
gcc/c-parse.in (.../software/trunk/opencores/or1k/gcc-3.2.3)

(revision
64)
@@ -62,6 +62,9 @@
/* Cause the "yydebug" variable to be defined. */
#define YYDEBUG 1

+/* malloc is poisoned in system.h. */
+#define YYMALLOC really_call_malloc
+
/* Rename the "yyparse" function so that we can override
it elsewhere. */
#define yyparse yyparse_1
%}
Index: gcc/tradcif.y

======================================================
=============
---
gcc/tradcif.y (.../vendor/opencores/041016/or1k/gcc-3.2.3)

(revision
64)
+++
gcc/tradcif.y (.../software/trunk/opencores/or1k/gcc-3.2.3)

(revision
64) @@ -28,6 +28,9 @@ #include "tradcpp.h" #include +/* malloc is poisoned in system.h. */ +#define YYMALLOC really_call_malloc + static int yylex PARAMS ((void)); static void yyerror PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN; Index: gcc/cp/parse.y

======================================================
=============
---
gcc/cp/parse.y (.../vendor/opencores/041016/or1k/gcc-3.2.3)

(revision
64)
+++
gcc/cp/parse.y (.../software/trunk/opencores/or1k/gcc-3.2.3)

(revision
64)
@@ -45,6 +45,9 @@
#include "toplev.h"
#include "ggc.h"

+/* malloc is poisoned in system.h. */
+#define YYMALLOC really_call_malloc
+
extern struct obstack permanent_obstack;

/* Like YYERROR but do call yyerror. */



no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.