[Clfs-support] eglibc and atlas problem on c{b}lfs

bv bvl at btconnect.com
Wed Mar 30 11:22:37 PDT 2011


Greetings,

I seem to have run up against linker problems on a newly minted cblfs setup 
regarding  latter versions of atlas3.9.3x.  
Th cblfs setup is derived from a new clfs build.

My setup has these
--amd64 cpu (2 cores) kernel-2.6.35.7
--gcc-4.5.2(with gfortran), eglibc-2.12.2 atlas3.9.3{3,9}

I compiled   the said versions of atlas on a setup with 
gcc-4.4.2/eglibc-2.10.1  many times.  Bit for the new setup I only obtain 
partial builds.  I found  this in the   build logs:-


#########--(C) first reported error ############ ~  probably ~ 25%  the wway 
of a complete buildhalf way
gcc -DL2SIZE=4194304 -I~/ATLAS/build/include -I~/ATLAS/build/..//include -
I~/ATLAS/build/..//include/contrib -DAdd_ -DF77_INTEGER=int -DStringSunStyle -
DATL_OS_Linux -DATL_ARCH_AMD64K10h -DATL_CPUMHZ=2693 -DATL_SSE3 -DATL_SSE2 -
DATL_SSE1 -DATL_3DNow -DATL_USE64BITS -DATL_GAS_x8664 -DPentiumCPS=2900 -
DATL_DYLIBS -DATL_FULL_LAPACK -fomit-frame-pointer -mfpmath=sse -msse3 -O2 -
falign-loops=32 -fPIC -m64 -fPIC -o xfindNT findNT.o ATL_walltime.o -lm
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../lib/crt1.o: In 
function `_start':
/sources-28810/eglibc-2.12/csu/../sysdeps/x86_64/elf/start.S:109: undefined 
reference to `main'
collect2: ld returned 1 exit status
make[4]: *** [xfindNT] Error 1
make[4]: Leaving directory `~/ATLAS/build/tune/sysinfo'
make[3]: *** [~/ATLAS/build/include/atlas_pthreads.h] Error 2
make[3]: Leaving directory `~/ATLAS/build/src/auxil'
make[2]: *** [IBuildPtlibs0] Error 2



##########--(D) then stuttering like tis  (more or less unil thend)

make[7]: Entering directory `~/ATLAS/build/lib'
gcc -fPIC -m64 -fPIC -shared -o libtatlas.so -Wl,"rpath-link 
/usr/local/atlas3933/lib" \
           -Wl,--whole-archive libptlapack.a libptf77blas.a libptcblas.a 
libatlas.a -Wl,--no-whole-archive -L/usr/lib/gcc/x86_64-unknown-linux-
gnu/4.5.2 -lgfortran -lc -lm -lgcc
gcc: libptlapack.a: No such file or directory
gcc: libptf77blas.a: No such file or directory
gcc: libptcblas.a: No such file or directory
make[7]: *** [GCCTRY] Error 1
make[7]: Leaving directory `~/ATLAS/build/lib'
make[7]: Entering directory `~/ATLAS/build/lib'
ld -melf_x86_64 -shared -soname /usr/local/atlas3933/lib/libtatlas.so -o 
libtatlas.so \
           -rpath-link /usr/local/atlas3933/lib \
           --whole-archive libptlapack.a libptf77blas.a libptcblas.a 
libatlas.a --no-whole-archive -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2 -
lgfortran -lc -lm -lgcc
ld: cannot find libptlapack.a: No such file or directory
ld: cannot find libptf77blas.a: No such file or directory
ld: cannot find libptcblas.a: No such file or directory



From -(C) above there seems to be a problem with the linker.  but I only 
noticed this  with building atlas.

#-----------------------
this line 
function `_start':
/sources-28810/eglibc-2.12/csu/../sysdeps/x86_64/elf/start.S:109: undefined 
reference to `main'

referes to the the source tree of glibc  which was built in a dedicated  
directory out of the source tree.
#---------------------------------------

I would  be  grateful for   advice.

sincerely
bv



More information about the Clfs-support mailing list