EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Solais 10 3.14.10 build problem
From: torben lauritsen <[email protected]>
To: [email protected]
Cc: tl <[email protected]>, "Michael P. Carpenter" <[email protected]>
Date: Thu, 04 Nov 2010 14:12:57 -0500
Hi,

I'm trying to compile EPICS base 3.14.10 on a Sun 
Solaris 10 machine. But the .a files in 
lib/solaris-sparc ends up being links to themselves
and not copied/installed as they should, so the compilation
fails. I cannot figure out what causes this problem!

I do this:

cd /dk/bgo41/tl/EPICS/base-3.14.10
setenv EPICS_HOST_ARCH solaris-sparc
setenv PATH /usr/bin:/opt/SUNWspro/bin:/usr/dt/bin:/usr/openwin/bin
setenv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/local/lib
alias make /usr/local/bin/make
make distclean
make

It goes for quite a while, but then I see this

.
.
o devLibOSD.o taskwd.o epicsTimer.o timer.o timerQueue.o timerQueueActive.o timerQueueActiveMgr.o timerQueuePassive.o tsDefs.o     -lposix4 -lpthread     -lm -lsocket -lnsl -lumem -lCrun -lc -lCstd 
Installing shared library ../../../lib/solaris-sparc/libCom.so.3.14
mkdir ../../../lib/solaris-sparc
ln -s libCom.so.3.14 ../../../lib/solaris-sparc/libCom.so
Installing shared library ../../../lib/solaris-sparc/libCom.a
ln -s libCom.a ../../../lib/solaris-sparc/libCom.a
make[3]: stat: ../../../lib/solaris-sparc/libCom.a: Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
Installing html ../../../html//freeList/freeList.html
mkdir ../../../html
mkdir ../../../html/freeList
Installing html ../../../html//gpHash/gpHash.html
mkdir ../../../html/gpHash
make[3]: Leaving directory `/dk/bgo41/tl/EPICS/base-3.14.10/src/libCom/O.solaris-sparc'
.
.

and some time later it fails completely when it tries to use libCom.a



/usr/local/bin/make -C O.solaris-sparc -f ../Makefile TOP=../../.. T_A=solaris-sparc install
make[3]: Entering directory `/dk/bgo41/tl/EPICS/base-3.14.10/src/libCom/O.solaris-sparc'
make[3]: stat: ../../../lib/solaris-sparc/libCom.a: Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
Installing shared library ../../../lib/solaris-sparc/libCom.a
Copy failed at ../../../bin/solaris-sparc/installEpics.pl line 88.
make[3]: *** [../../../lib/solaris-sparc/libCom.a] Error 90
make[3]: Leaving directory `/dk/bgo41/tl/EPICS/base-3.14.10/src/libCom/O.solaris-sparc'
make[2]: *** [install.solaris-sparc] Error 2
make[2]: Leaving directory `/dk/bgo41/tl/EPICS/base-3.14.10/src/libCom'
make[1]: *** [libCom.install] Error 2
make[1]: Leaving directory `/dk/bgo41/tl/EPICS/base-3.14.10/src'
make: *** [src.install] Error 2

------------------------------------------

and, indeed, when I look

ls -l lib/solaris-sparc
total 1208
lrwxrwxrwx   1 tl       tl             8 Nov  4 13:40 libCom.a -> libCom.a
lrwxrwxrwx   1 tl       tl            14 Nov  4 13:40 libCom.so -> libCom.so.3.14
-rw-r--r--   1 tl       tl        614976 Nov  4 13:40 libCom.so.3.14

I see libCom.a is a link to itself and was not copied as it should have been
[libCom.a was actually compiled OK, I think it is just the installation
that fail]

-----------------------------------------
FYI:
> make -version
GNU Make 3.82
Built for sparc-sun-solaris2.10
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

------------------------------------------
FYI:
> perl -version

This is perl 5, version 12, subversion 0 (v5.12.0) built for sun4-solaris

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
------------------------------------------
FYI:
> printenv
USER=tl
LOGNAME=tl
HOME=/home3/tl
PATH=/usr/bin:/opt/SUNWspro/bin:/usr/dt/bin:/usr/openwin/bin
MAIL=/var/mail//tl
SHELL=/bin/tcsh
TERM=xterm
DISPLAY=bohr:15.0
HOSTTYPE=sun4
VENDOR=sun
OSTYPE=solaris
MACHTYPE=sparc
SHLVL=1
PWD=/home3/tl
GROUP=tl
HOST=bohr
REMOTEHOST=halfpint.phy.anl.gov
EPICS_HOST_ARCH=solaris-sparc
LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/usr/local/lib
------------------------------------------
FYI:
> alias
make    /usr/local/bin/make
------------------------------------------
FYI:
> echo $PATH
/usr/bin:/opt/SUNWspro/bin:/usr/dt/bin:/usr/openwin/bin
------------------------------------------

If I compile under Linux, all works well

EPICS_HOST_ARCH="linux-x86"
cd /home/tl/d6/EPICS/base-3.14.10
make

It compiles flawlessly and I see

ls -l lib/linux-x86/libCom*
-rw-r--r--. 1 tl tl 1649508 Nov  4 13:48 lib/linux-x86/libCom.a
lrwxrwxrwx. 1 tl tl      14 Nov  4 13:48 lib/linux-x86/libCom.so -> libCom.so.3.14
-rw-r--r--. 1 tl tl 1017267 Nov  4 13:48 lib/linux-x86/libCom.so.3.14

This time libCom.a is installed correctly and is NOT just a link to itself

------------------------------------------

What can I do to fix this problem?



-- 
Torben Lauritsen
9700 S. Cass Av.
Argonne, IL 60439
phone: 630.252.4026


Replies:
RE: Solais 10 3.14.10 build problem Allison, Stephanie

Navigate by Date:
Prev: iOS EPICS Channel Access Pelaia II, Tom
Next: RE: Solais 10 3.14.10 build problem Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: iOS EPICS Channel Access Pelaia II, Tom
Next: RE: Solais 10 3.14.10 build problem Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 04 Nov 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·