LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Robert Millan<rmh@a...>
    Date: Wed Jun 29 16:12:40 CEST 2005
    Subject: [openrisc] Oops when booting Linux
    Top
    On Wed, Jun 29, 2005 at 01:55:06PM +0200, Matjaz Breskvar wrote:
    > Hi Robert,
    >
    > i'm already aware of this problem when building linux 2.4 with gcc-3.4.2. at
    > the time i was looking at it i traced it to be related to gcc. kernel and
    > compiler should be of approx. the same version. i suggest you use gcc-3.2.3
    > with linux-2.4 (you shouldn't have any problems with it).

    Uhm it seems gcc-3.2 build was broken. Here's a patch that was already sent to
    this mailing list (I obtained it from
    http://www.opencores.org/forums.cgi/openrisc/2004/12/000990)

    --
    Robert Millan
    -------------- next part --------------
    Index: gcc/c-parse.in
    ===================================================================
    RCS file: /home/oc/cvs/or1k/gcc-3.2.3/gcc/c-parse.in,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 c-parse.in
    --- gcc/c-parse.in 14 Feb 2004 17:39:24 -0000 1.1.1.1
    +++ gcc/c-parse.in 29 Jun 2005 14:06:14 -0000
    @@ -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
    ===================================================================
    RCS file: /home/oc/cvs/or1k/gcc-3.2.3/gcc/tradcif.y,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 tradcif.y
    --- gcc/tradcif.y 14 Feb 2004 17:41:27 -0000 1.1.1.1
    +++ gcc/tradcif.y 29 Jun 2005 14:06:16 -0000
    @@ -28,6 +28,9 @@
    #include "tradcpp.h"
    #include <setjmp.h>

    +/* 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
    ===================================================================
    RCS file: /home/oc/cvs/or1k/gcc-3.2.3/gcc/cp/parse.y,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 parse.y
    --- gcc/cp/parse.y 14 Feb 2004 17:42:34 -0000 1.1.1.1
    +++ gcc/cp/parse.y 29 Jun 2005 14:06:26 -0000
    @@ -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. */

    ReferenceAuthor
    [openrisc] Oops when booting LinuxMatjaz Breskvar

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.