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: Balint Cristian<rezso@r...>
    Date: Mon Aug 29 19:34:21 CEST 2005
    Subject: [openrisc] Problem with building GDB 5.0 of GNU Toolchain
    Top
    On Friday 19 August 2005 18:59, kmschoen@n... wrote:
    > Hello,
    >
    > Following the tutorial on:
    > http://www.asisi.co.uk/or1k.html
    >
    > changes: trying to install gcc-3.2.3 instead of gcc-3.1
    >
    > As the tutorial directs, I make sure that I have all the proper versions
    > of autoconf, automake, etc installed. I do this by installing the ones
    > that I need in my directory and making sure that the PATH env variable is
    > correct to find them. This is tested with 'which <program>' and '<program>
    > --version' to check for the correct version number. Everything works fine
    > up till this point.
    >
    > I then run the following commands the from or1k/ directory (I want
    > everything installed in /local2/muse/users/kmschoen/tools):
    >
    > mkdir b-b
    > cd b-b
    > ../binutils/configure --target=or32-uclinux
    > --prefix=/local2/muse/users/kmschoen/or1k/tools
    > make all install
    >
    > *WORKS FINE*
    >
    > setenv PATH /local2/muse/users/kmschoen/or1k/tools/bin:${PATH}
    >
    > *WORKS FINE -- new binaries are now accessible*
    >
    > mkdir b-gcc-3.2.3
    > cd b-gcc-3.2.3
    > ../gcc-3.2.3/configure --target=or32-uclinux
    > --prefix=/local2/muse/users/kmschoen/or1k/tools
    > --local-prefix=/local2/muse/users/kmschoen/or1k/tools/or32-uclinux
    > --with-gnu-as --with-gnu-ld --verbose --enable-languages=c
    > make all install
    >
    > *WORKS FINE -- CAN EXECUTE gcc now **
    >
    > I now make the change in gdb-5.0/gdb/utils.c that the author of the
    > tutorial suggests, then I try to compile gdb:
    >
    > mkdir b-gdb
    > cd b-gdb
    > ../gdb-5.0/configure --target=or32-uclinux
    > make all
    > cp gdb/gdb /local2/muse/users/kmschoen/or1k/tools/bin/or32-uclinux-gdb
    > cd ..
    >
    > **THIS PROCESS NEVER COMPLETES -- I get the following error information
    > (also attached as a text file)**
    >
    >
    > /usr/include/sys/stream.h:327: redefinition of `struct bcache'
    > make[1]: *** [jtag.o] Error 1
    > make[1]: Leaving directory `/local2/muse/users/kmschoen/or1k/b-gdb/gdb'
    > make: *** [all-gdb] Error 2
    > cp: gdb/gdb: No such file or directory

    What host compiler have ?
    If it is 4.x its a problem a patch needed for gdb.
    try comment out the definition of bcach struct in local source files.

    >
    >
    > Obviously, since building gdb did not work, the script won't be able to
    > copy gdb/gdb to the install directory. Please see the attach logfile of
    > the gdb build. Any suggestions? let me know if you need to see the logs of
    > the installs (binutils and gcc-3.2.3).
    >
    > Thank You,
    > Kory Schoenfliess
    >
    >
    >
    >

    ReferenceAuthor
    [openrisc] Problem with building GDB 5.0 of GNU ToolchainKmschoen

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