This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: heapgen.cpp: C++ compiler not installed on this system


hi John,

Yes, the toolchain I download was configured for C only.
I tried rebuilding the Tool chain according to link you have given,

1. The web page was updated in 2004, most of packages mentioned in
link were not available for download, and OpenCore is moved to SVN.
2. I modified to the Tool chain build script to configure GCC build,
by adding --enabled-languages=c,c++. Then I got below error,
   It looks the looks GCC code avialble at SVN of OpenCore doenst
configured for C++ at all.

I am now stuck, looking how to proceed further,


creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... or32-unknown-elf
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp
--ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
configure: error:
The following requested languages could not be built: c++
Recognised languages are: c,treelang



On Mon, Nov 30, 2009 at 1:32 PM, John Dallaway <john@dallaway.org.uk> wrote:
> Hi Vinay
>
> Vinay R Patil wrote:
>
>> i got eCOS, version from OpenRISC repository, and tool chains also from same
>>
>> i ran below command to do
>>
>> ecosconfig target orp
>> ecosconfig tree
>> make
>>
>> then i stuck with below error, after browsing through some forums
>> found that, Open RISC doesnt support C++,
>>
>> Any idea for the source of error?
>
> [ snip ]
>
>> `/opt/OR1x00/trunk/ecos-2.0/or32/services/memalloc/common/v2_0'
>> or32-elf-gcc -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes
>> -Winline -Wundef -Woverloaded-virtual -g -O2 -fno-omit-frame-pointer
>> -fno-rtti -fno-exceptions -fvtable-gc -finit-priority
>> -I/opt/OR1x00/trunk/ecos-2.0/or32/install/include
>> -I/opt/OR1x00/trunk/ecos-2.0/packages/services/memalloc/common/v2_0
>> -I/opt/OR1x00/trunk/ecos-2.0/packages/services/memalloc/common/v2_0/src
>> -I/opt/OR1x00/trunk/ecos-2.0/packages/services/memalloc/common/v2_0/tests
>> -I. -Wp,-MD,heapgen.tmp -E
>> /opt/OR1x00/trunk/ecos-2.0/packages/services/memalloc/common/v2_0/src/heapgen.cpp
>> -o heapgeninc.tcl
>> or32-elf-gcc: /opt/OR1x00/trunk/ecos-2.0/packages/services/memalloc/common/v2_0/src/heapgen.cpp:
>> C++ compiler not installed on this system
>> make[1]: *** [heapgeninc.tcl] Error 1
>> make[1]: Leaving directory
>
> I expect the toolchain you are using was configured without C++ language
> support. You can confirm this using the following command:
>
> ?or32-elf-gcc -v
>
> There are some notes for building an or32-elf toolchain (based on GCC
> 3.2.3) for use with eCos at:
>
> ?http://www.zubira.com/openrisc/or1kecos.html
>
> I hope that helps...
>
> John Dallaway
> eCos maintainer
>

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]