Install problem (Cross compile AVR32)

Jeremy Bowen jeremy.bowen at pertronic.co.nz
Tue Oct 21 22:58:09 UTC 2008


Hi 

Could someone please help with a basic installation. I've spent several days 
on this and I suspect I've overlooked something obvious and it's probably 
staring me in the face but I can't see it.

Here's my setup. I'm attempting to build a complete Linux development 
environment for the AVR32 target in order to diagnose an issue with a 
pre-compiled binary environment.

My main working environment should be installed in "/usr/local/avr32"

I successfully built and installed binutils-2.17.atmel.1.2.6

I can build the basic gcc-4.2.2.atmel.1.0.8 (with "--enable-languages=c" so no 
support for C++ at this point)

I have done a "make install" for the c compiler and updated my $PATH to 
prefix "/usr/local/avr32/bin" to it.

Next I built the linux kernel and installed it on my target system. (It boots 
linux and seems to run OK)

Next I did "make headers_install INSTALL_HDR_PATH=/usr/local/avr32"

Now I'm trying to build and install uClibc (from svn) and I'm getting confused 
about the various paths that I should use. 

I have the following in my .config
# Library Installation Options
#
SHARED_LIB_LOADER_PREFIX="/lib"
RUNTIME_PREFIX="/"
DEVEL_PREFIX="/usr/local/avr32"


uClibc appears to build OK. I have attempted to install this using:
make install PREFIX=/usr/local/avr32/ RUNTIME_PREFIX= DEVEL_PREFIX=

I'm trying to compile a simple "Hello world" test program but it cannot find 
lib/libc.so.0 (See appended verbose output from the compiler)

I have libc.so.0 in /usr/local/avr32/lib as the following "ls" shows:
/usr/local/avr32 # ls -al lib/libc.so.0
lrwxrwxrwx 1 root root 27 2008-10-22 11:29 lib/libc.so.0 -> 
libuClibc-0.9.30-rc2-svn.so

In summary:
===========
I'm not sure if this is a problem with my gcc configuration or uClibc 
installation/config.

I would really appreciate someone letting me know the suggested values for the 
various *_PREFIX settings, whether I should set these in my uClibc .config or 
if I should set them as variables in the "make install"  step (or both)
A general sanity check on the rest of my configuration would be appreciated.

Thanks in advance.
Jeremy


===================================================================
jeremy at phoenix:/tmp> avr32-linux-gcc -v test.c -o test
Using built-in specs.
Target: avr32-linux
Configured 
with: ../configure --prefix=/usr/local/avr32 --target=avr32-linux --with-mpfr=/opt/mpfr --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c
Thread model: single
gcc version 4.2.2-atmel.1.0.8
 /usr/local/avr32/libexec/gcc/avr32-linux/4.2.2/cc1 -quiet -v 
test.c -quiet -dumpbase test.c -auxbase test -version -o /tmp/ccDrWAgA.s
ignoring nonexistent 
directory "/usr/local/avr32/lib/gcc/avr32-linux/4.2.2/../../../../avr32-linux/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/include
 /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/../../../../avr32-linux/include
End of search list.
GNU C version 4.2.2-atmel.1.0.8 (avr32-linux)
        compiled by GNU C version 4.3.1 20080507 (prerelease) [gcc-4_3-branch 
revision 135036].
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: e6f508bfa35d3151ef9677b6890cd9b3
 /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/../../../../avr32-linux/bin/as --pic -o /tmp/cc6oCRC3.o /tmp/ccDrWAgA.s
 /usr/local/avr32/libexec/gcc/avr32-linux/4.2.2/collect2 --eh-frame-hdr -dynamic-linker /lib/ld-uClibc.so.0 -o 
test /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/../../../../avr32-linux/lib/crt1.o /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/crti.o /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/crtbegin.o -L/usr/local/avr32/lib/gcc/avr32-linux/4.2.2 -L/usr/lib/gcc/avr32-linux/4.2.2 -L/usr/local/avr32/lib/gcc/avr32-linux/4.2.2/../../../../avr32-linux/lib /tmp/cc6oCRC3.o -lgcc -lc -lgcc /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/crtend.o /usr/local/avr32/lib/gcc/avr32-linux/4.2.2/crtn.o
/usr/local/avr32/lib/gcc/avr32-linux/4.2.2/../../../../avr32-linux/bin/ld: 
cannot find lib/libc.so.0
collect2: ld returned 1 exit status





More information about the uClibc mailing list