Re: Does libstdc++ come with GCC installation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Andrew Haley wrote:
> 
> Jeffi Edward.J wrote:
>> 
>> When I did make all, the folowing error occurs.
>> 
>> Link tests are not allowed after GCC_NO_EXECUTABLES.
>> 
>> I applied the fix given in the following link.
>> http://gcc.gnu.org/ml/gcc/2007-11/msg00790.html
>> 
>> Still the same error occurs :(
>> 
>> How to overcome this problem?
> 
> Please don't top post.
> 
> If you want a full compiler including the target libraries, you need to
> do
> 
> make
> make install
> 
> It looks to me as though you may not have a working set of target binutils
> in your path.
> 
> Andrew.
> 
> 
>> Andrew Haley wrote:
>>> Jeffi Edward.J wrote:
>>>> Hi,
>>>>
>>>> Does libstdc++ library come with GCC?
>>> Yes.
>>>
>>>> I build powerpc-eabi cross tool chain
>>>> (GCC version 4.1.0).
>>>> Although I enabled languages c and C++ during GCC configuration, I
>>>> couldn't
>>>> find the libstdc++ library in my tool chain installation directory.
>>> That is very strange.
>>>
>>>
>>>> I used following commands to build the tool chain.
>>>>
>>>> ../binutils-2.19.1/configure --prefix=/home/project/ppc-cross-tools
>>>> --host=i686-pc-linux-gnu --target=powerpc-eabi make all make install
>>>>
>>>> ../gcc-4.1.0/configure  --prefix=/home/project/ppc-cross-tools
>>>> --host=i686-pc-linux-gnu --target=powerpc-eabi --enable-languages=c
>>>> --without-headers --with-newlib --disable-shared --disable-threads
>>>> --disable-libssp --disable-libgomp --disable-libmudflap make all-gcc
>>>> make
>>>> install-gcc
>>>>
>>>> ../newlib-1.17.0/configure --prefix=/home/project/ppc-cross-tools
>>>> --host=i686-pc-linux-gnu --target=powerpc-eabi make all make install
>>>>
>>>> ../gcc-4.1.0/configure  --prefix=/home/project/ppc-cross-tools
>>>> --host=i686-pc-linux-gnu --target=powerpc-eabi --enable-languages=c,c++
>>>> --enable-__cxa-atexit --enable-cxx-flags='-fno-exceptions' make all-gcc
>>>> make
>>>> install-gcc
>>>>
>>>> Have I missed any option in configuration? Could anyone please tell how
>>>> to
>>>> install libstdc++(static version)?
>>> At the end "make install", not "make install-gcc"
>>>
>>> Andrew.
>>>
>>>
>> 
> 
> 
> 

Hi,

The binutils have been installed properly. When i did "make", the same error
occured in creating shared library version of libgcc. So I used
--disable-shared option. The next error 'can not create executable' occued
while building 'libssp'. So i used disable-libssp.

My final GCC building configuration command is:

../gcc-4.1.0/configure  --prefix=/home/tellabs/ppc-cross-tools
--host=i686-pc-linux-gnu --target=powerpc-eabi --enable-languages=c,c++
--enable-__cxa-atexit --enable-cxx-flags='-fno-exceptions' --disable-shared
--disable-libssp --disable-libgomp --disable-libmudflap

make
make install

Now the libstdc++.a was installed successfully :).

Thanks a lot!

Regards,
Jeffi

-- 
View this message in context: http://old.nabble.com/Does-libstdc%2B%2B-come-with-GCC-installation--tp26711116p26724418.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux