[Sussex] newbie -> ./configure problems - LD not finding libc library
Clive Chapman
anbeyon at btinternet.com
Mon May 16 14:43:26 UTC 2005
Hi
I am afraid I'm still having problems resolving this;
I'm not sure what I should be specifying or how !
Justy to re-cap - my original email is below.....
Clive Chapman wrote:
> I'm pretty new to compiling using ./configure.
It isn't actually an autoconf problem, it's a compiler thing. You are not
telling the compiler where some needed lib is (or it's missing). You have
specified the header (inc) file location and it's presumably finding those
and the dev libs are normally part of the same package.
> So do I need to add more parameters tothe command line - assuming I can
> fin the -dev lib.
yes, It looks like you need something extra in the way of --libdir
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original mail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I want to cross compile GTK and all of the associated libraries so that I
can use them on the CM-X255.
I am currently trying to cross compile the glib library and I am having some
problems. I've obviously not got something quite right.
Are you able to help ?
I have downloaded all of the libraries and have them unpacked into sub
directores of;
/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/glib-2.6.4
if in a terminal window list all sub-dirs I get
. Archives atk-1.9.0 gtk+-2.6.7 libpng-1.2.8 pkgconfig-0.15.0
.. GTKBuild glib-2.6.4 jpeg-6b pango-1.8.0 tiff-3.7.2
Archives is where I have all of the original .GZ etc... files. GTKBuild is
where I plan to build the compiled libs to. Each set of libs is to be built
into a subdirectory of GTKBuild. i.e. glib is to reside
in ..../GTKBuild/glib
I have the compiler installed as per the instructions on your web site
in /usr/local/arm/3.3.2
So I if we take glib in the first instance;
from the command line I change directory to
/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/glib-2.6.4/glib-
2.6.4 and invoke ./configure as below;
./configure CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc --host=arm-linux
--build=i686-linux
--prefix=/home/anbeyon/Documents/Projects/Chord/Pandora4/Software/GTK/GTKBuil
d/glib --libdir=/usr/local/arm/3.3.2/arm-linux/lib
--includedir=/usr/local/arm/3.3.2/arm-linux/include
Does that look correct ? Have I made any errors ?
I get the following in my terminal;
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for native Win32... no
checking for arm-linux-gcc... /usr/local/arm/3.3.2/bin/arm-linux-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
If I then examine config.log (Which is attached) part way through I get the
following message; ( se the line starting >>>>>)
gcc version 3.3.2
configure:2821: $? = 0
configure:2823: /usr/local/arm/3.3.2/bin/arm-linux-gcc -V </dev/null >&5
arm-linux-gcc: `-V' option must have argument
configure:2826: $? = 1
configure:2849: checking for C compiler default output file name
configure:2852: /usr/local/arm/3.3.2/bin/arm-linux-gcc conftest.c >&5
/usr/local/arm/3.3.2/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux
>>>>/bin/ld: cannot find /usr/local/arm-linux/lib/libc.so.6<<<<<
collect2: ld returned 1 exit status
configure:2855: $? = 1
configure: failed program was:
The linker cannot find the library. Howerver, It doesn't seem to be looking
in the right place for the libc.so.6 file. Is't not looking where I specify
them using --libdir when configure is invoked.
I have checked the Arm compiler lib path I specified in the command line and
libc.so.6 is there. (/usr/local/arm/3.3.2/arm-linux/lib)
Are you able to help me please ?
Thanks
More information about the Sussex
mailing list