This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


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: error while loading shared libraries: libstdc++.so ------ confused ..???


I have added raspbian image like this :-----
sudo debootstrap --verbose --arch armhf --foreign wheezy \
$HOME/sbox2/rootfs/armhf http://archive.raspbian.org/raspbian/

Key add :--
http://www.raspbian.org/RaspbianRepository
wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -


//Allan

On Mon, Feb 4, 2013 at 2:22 PM, allan George <gorge.alan.sw@gmail.com> wrote:
> I have attached my compiler configuration file, for cross-tool ng :----
>
> Any help will be appreciable.
>
> //Allan
>
> On Mon, Feb 4, 2013 at 1:48 PM, allan George <gorge.alan.sw@gmail.com> wrote:
>> when i run this command :---------  >>>    whereis libstdc++.so
>> it shows the library
>> [SB2 simple armhf] ignite@ignite testing $ whereis libstdc++.so
>> libstdc++:
>> [SB2 simple armhf] ignite@ignite testing $
>>
>>
>>
>>
>>
>> Even i run ldconfig -v same error is there :-----
>>
>> [SB2 simple armhf] ignite@ignite testing $ ldconfig -v
>> /home/ignite/sbox2/rootfs/armhf/sbin/ldconfig: Can't open
>> configuration file /home/ignite/sbox2/rootfs/armhf/etc/ld.so.conf: No
>> such file or directory
>> /lib/arm-linux-gnueabihf:
>>         libpcprofile.so -> libpcprofile.so
>>         libcrypt.so.1 -> libcrypt-2.13.so
>>         libdl.so.2 -> libdl-2.13.so
>>         libSegFault.so -> libSegFault.so
>>         libmount.so.1 -> libmount.so.1.1.0
>>         libnsl.so.1 -> libnsl-2.13.so
>>         libncurses.so.5 -> libncurses.so.5.9
>>         libmemusage.so -> libmemusage.so
>>         libpamc.so.0 -> libpamc.so.0.82.1
>>         libz.so.1 -> libz.so.1.2.7
>>         libuuid.so.1 -> libuuid.so.1.3.0
>>         libattr.so.1 -> libattr.so.1.1.0
>>         libresolv.so.2 -> libresolv-2.13.so
>>         libncursesw.so.5 -> libncursesw.so.5.9
>>         libprocps.so.0 -> libprocps.so.0.0.1
>>         libcom_err.so.2 -> libcom_err.so.2.1
>>         libsepol.so.1 -> libsepol.so.1
>>         libbz2.so.1.0 -> libbz2.so.1.0.4
>>         libnss_files.so.2 -> libnss_files-2.13.so
>>         libpthread.so.0 -> libpthread-2.13.so
>>         libss.so.2 -> libss.so.2.0
>>         libdbus-1.so.3 -> libdbus-1.so.3.7.2
>>         libacl.so.1 -> libacl.so.1.1.0
>>         libpam.so.0 -> libpam.so.0.83.0
>>         libBrokenLocale.so.1 -> libBrokenLocale-2.13.so
>>         liblzma.so.5 -> liblzma.so.5.0.0
>>         librt.so.1 -> librt-2.13.so
>>         libudev.so.0 -> libudev.so.0.13.0
>>         libgcc_s.so.1 -> libgcc_s.so.1
>>         libanl.so.1 -> libanl-2.13.so
>>         libm.so.6 -> libm-2.13.so
>>         libnss_hesiod.so.2 -> libnss_hesiod-2.13.so
>>         libselinux.so.1 -> libselinux.so.1
>>         libpam_misc.so.0 -> libpam_misc.so.0.82.0
>>         libext2fs.so.2 -> libext2fs.so.2.4
>>         libnss_nisplus.so.2 -> libnss_nisplus-2.13.so
>>         libkmod.so.2 -> libkmod.so.2.1.3
>>         ld-linux-armhf.so.3 -> ld-2.13.so
>>         libply-splash-core.so.2 -> libply-splash-core.so.2.1.0
>>         libnss_compat.so.2 -> libnss_compat-2.13.so
>>         libslang.so.2 -> libslang.so.2.2.4
>>         libtinfo.so.5 -> libtinfo.so.5.9
>>         libnss_nis.so.2 -> libnss_nis-2.13.so
>>         libnss_dns.so.2 -> libnss_dns-2.13.so
>>         libc.so.6 -> libc-2.13.so
>>         libblkid.so.1 -> libblkid.so.1.1.0
>>         libutil.so.1 -> libutil-2.13.so
>>         libthread_db.so.1 -> libthread_db-1.0.so
>>         libcidn.so.1 -> libcidn-2.13.so
>>         libe2p.so.2 -> libe2p.so.2.3
>>         libply.so.2 -> libply.so.2.1.0
>> /usr/lib/arm-linux-gnueabihf:
>>         libpanel.so.5 -> libpanel.so.5.9
>>         libformw.so.5 -> libformw.so.5.9
>>         libsemanage.so.1 -> libsemanage.so.1
>>         libtic.so.5 -> libtic.so.5.9
>>         libustr-1.0.so.1 -> libustr-1.0.so.1.0.4
>>         libmenu.so.5 -> libmenu.so.5.9
>>         libmenuw.so.5 -> libmenuw.so.5.9
>>         libply-boot-client.so.2 -> libply-boot-client.so.2.1.0
>>         libdb-5.1.so -> libdb-5.1.so
>>         libform.so.5 -> libform.so.5.9
>>         libpanelw.so.5 -> libpanelw.so.5.9
>> /lib:
>>         libnih-dbus.so.1 -> libnih-dbus.so.1.0.0
>>         libnih.so.1 -> libnih.so.1.0.0
>> /usr/lib:
>>         libperl.so.5.14 -> libperl.so.5.14.2
>> [SB2 simple armhf] ignite@ignite testing $ g++ new.cpp
>> [SB2 simple armhf] ignite@ignite testing $ ./a.out
>> ./a.out: error while loading shared libraries: libstdc++.so.6: cannot
>> open shared object file: No such file or directory
>> [SB2 simple armhf] ignite@ignite testing $
>>
>>
>> On Mon, Feb 4, 2013 at 11:36 AM, allan George <gorge.alan.sw@gmail.com> wrote:
>>> Hi,
>>>
>>> I have build my toolchain using following link it have , crosscompiler
>>> c++ support enabled :-----
>>> http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/
>>>
>>>
>>> Now i am compiling my code in Scratchbox2, c++ code is compiling but
>>> not able to run it throws this error :-------
>>> ./a.out: error while loading shared libraries: libstdc++.so
>>>
>>>
>>>
>>> Compiler version :------------------
>>> [SB2 simple armhf] ignite@ignite testing $ g++ version
>>> arm-unknown-linux-gnueabi-g++: error: version: No such file or directory
>>> arm-unknown-linux-gnueabi-g++: fatal error: no input files
>>> compilation terminated.
>>> [SB2 simple armhf] ignite@ignite testing $ g++ --version
>>> arm-unknown-linux-gnueabi-g++ (crosstool-NG 1.17.0) 4.7.3 20121001 (prerelease)
>>> Copyright (C) 2012 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.  There is NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>>
>>> compiling successful :---------------
>>> [SB2 simple armhf] ignite@ignite testing $ g++ new.cpp
>>>
>>> output file format :----------------
>>> [SB2 simple armhf] ignite@ignite testing $ file a.out
>>> a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
>>> linked (uses shared libs), for GNU/Linux 3.6.3, not stripped
>>>
>>>
>>> Error thrown :---------
>>> [SB2 simple armhf] ignite@ignite testing $ ./a.out
>>> ./a.out: error while loading shared libraries: libstdc++.so.6: cannot
>>> open shared object file: No such file or directory
>>>
>>>
>>> Any suggestion why this error is. Please suggest.
>>>
>>> Regards,
>>>
>>> //Allan

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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