LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 02-28-2013, 07:43 AM   #1
mikeollie
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
Question Which GLIBC version is using my toolchain?


Hi everyone, im new here.
I would like to know which GLIBC version is using my builded toolchain. I know the C Library present in my embedded system but what i would like to know is the GLIBC version used by my toolchain. I cant use ldd against libc.so.6 since it is builded for ARM.

Furthermore, how can i know which PATH library is using by default the GNU linker of my toolchain?. Sometimes building an application i get some errors like:

Code:
warning: libx***.so.0, needed by needed by liby***.so, not found (try using -rpath or -rpath-link)
But libx***.so.0 and liby***.so are in the same directory, why there is not any ld.s0.conf in toolchains $PATH?

Thanks and regards.
 
Old 03-04-2013, 01:28 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I think this does what you want
Code:
/path/to/your/cross/gcc -print-file-name=libc.so
There is some other stuff that may be relevant. Run 'gcc --help', and look for the options that look like '-print-blah-blah'

--- rod.
 
1 members found this post helpful.
Old 03-27-2013, 05:10 AM   #3
mikeollie
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by theNbomr View Post
I think this does what you want
Code:
/path/to/your/cross/gcc -print-file-name=libc.so
There is some other stuff that may be relevant. Run 'gcc --help', and look for the options that look like '-print-blah-blah'

--- rod.
Thanks theNbomr, its the answer i was looking for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which version of glibc should i use for the toolchain...? manoj7410 Linux - Embedded & Single-board computer 0 06-15-2012 11:00 PM
[SOLVED] Version 6.7 - 5.8. Adjusting the Toolchain patrick.h Linux From Scratch 3 02-08-2011 12:38 AM
i have an error when i try to install Glibc(5.7. Glibc-2.8-20080929, Version 6.4) robineecc1 Linux From Scratch 0 12-14-2008 11:45 AM
GNU ToolChain for ARM, Linux 2.6.14-2/binutil-2.16/gcc 4.0.2/glibc-2.3.5 kumar_bst Linux - Software 0 01-22-2008 04:59 AM
having toolchain trouble (gcc/ld/glibc) zoomzoom Linux - Software 1 10-29-2003 06:21 PM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration