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: narender.rao at nuelight.com<narender.rao@n...>
    Date: Fri Dec 16 11:11:46 CET 2005
    Subject: [openrisc] building the gcc for c++ support with --enable-languages=c, c++
    Top
    Hi all,

    Yes the tool chain for c++ is working .
    one of the mistakes I made ( may be one can make) is to invoke the
    wrong compiler tool for the c++ program. one should invoke or32-elf-
    g++ instead of or32-elf-gcc ( initially I thought the gcc will take care
    and do whatever required to be done for c++ , but no). another problem
    i overcome was some how the the libraries were not linking . so I had to
    use -L and -l options in the linker command or32-elf-ld .... to point to
    the library directories and the libraries built for the target. I used gcclib
    which is under one folder and libc which is under another folder . after
    all this now the tool chain is working fine.

    Thank you

    Narender


    ----- Original Message -----
    From: Robert Cragie<rcc@j...>
    To:
    Date: Tue Dec 13 11:19:06 CET 2005
    Subject: [openrisc] building the gcc for
    c++ support with --enable-languages=c, c++

    > I can tell you that these options work fine for eCos using GCC
    > 3.2.3 are
    > as follows:
    > -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline
    > -Wundef
    > -Woverloaded-virtual -g -O -fno-omit-frame-pointer -fno-rtti
    > -fno-exceptions -fvtable-gc -finit-priority
    > narender.rao at nuelight.com wrote:
    > >Hi Robert !
    > >Thank you very much for your reply
    > >
    > >before I got your reply. I built it with instructions from
    > >
    > >http://www.doc.ic.ac.uk/~jab00/or32-newlib/
    > >
    > >this called for adding some patch to the gcc before building
    > it.
    > >the compiler got built allright and exited with success.
    > >but I could not compile my sample c++ program.
    > >
    > >now I will follow your instructions and post my progress soon.
    > >
    > >Thank you very much.
    > >
    > >Narender Rao Saineni
    > >
    > >
    > >
    > >
    > >----- Original Message -----
    > >From: Robert Cragie<rcc at j...>
    > >To:
    > >Date: Sat Dec 10 13:04:21 CET 2005
    > >Subject: [openrisc] building the gcc for c++ support
    > > with --enable-languages=c, c++
    > >
    > >
    > >
    > >>Hi Narender,
    > >>
    > >>I followed the instructions for building a cross-compiler
    > for eCos
    > >>(mostly written in C++), which includes using newlib and
    > didn't
    > >>have too
    > >>many problems. My step-by-step guide for GCC 3.4.2 can be
    > found
    > >>here:
    > >>/http://www.asisi.co.uk/or1kecos_0_5.html
    > >>I will update this shortly for the new GCC 3.4.4 which I
    > have built
    > >>and
    > >>used successfully. I did do an older one for uClinux, which
    > can be
    > >>found
    > >>here:
    > >>http://www.asisi.co.uk/or1kecos.html
    > >>I would also recommend looking at the ATS scripts on the
    > OpenCores
    > >>website:
    > >>
    > >>http://www.opencores.org/projects.cgi/web/or1k/ats/or32-
    > >>
    > >>
    > >uclinux/or1k_ats_uclinux.txt
    > >
    > >
    > >>Robert
    > >>Narender Rao wrote:
    > >>
    > >>
    > >>>Hi all,
    > >>>
    > >>>When I am trying to build the gcc 3.2.3 for c++, I am
    > getting
    > >>>
    > >>>
    > >>the > >> > >> > >>>following error, Could some one point me towards the > solution. > >>> > >>>I am getting this error after > >>> > >>>Make all install > >>> > >>>….. > >>> > >>>…… > >>> > >>>… > >>> > >>>configure: error: installation or configuration > problem: C > >>> > >>> > >>compiler > >> > >> > >>>cannot create executables. > >>> > >>>make: *** [configure-target-libiberty] Error 1 > >>> > >>>I could compile for c support successfully, I am > getting this > >>> > >>> > >>error > >> > >> >>>only for c++ support >>> > >>>My configure script is >>> > >>>../gcc-3.2.3/configure --target=or32-elf >>> > >>> >>--prefix=/home/ns/or32-elfcc >> >> > >>>--with-gnu-as –with-gnu-ld > –enable-languages=c,c++ >>> >>>Can the c++ > compiler work for my target without any os on it ? >>> > >>>I do not need multithreading on the target. No library > or os >>> >>> >>is built >> >> > >>>so far , I tried C successfully and now trying c++ > followed >>> >>> >>exactly >> > >> >>>the same procedure as followed for c > >>> >>>Except for the enable-languages flag. > >>> >>>I am able to run the C programs downloaded > to my target >>> >>> >>through jtag > >> >> >>>and run them successfully. > >>> >>>Thank you >>> > >>>/*/Narender Rao Saineni/*//*//*/ >>> > >>> >>> > >>>--------------------------------------------------------------- --- > >>> >>> >------ > > > >>>_______________________________________________ > >>>http://www.opencores.org/mailman/listinfo/openrisc > >>> >>> >>> >> >> > >_______________________________________________ > >http://www.opencores.org/mailman/listinfo/openrisc > > > > > >

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