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  2010  2011  <20122013  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  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Building EPICS on Mac
From: Mark Rivers <[email protected]>
To: "[email protected]" <[email protected]>
Date: Sat, 11 Aug 2012 14:01:00 +0000
Folks,

I'm building EPICS on Mac for the first time.  I installed the XCode package, and the Command Line Tools within XCode.  When I try to build EPICs base it compiles libCom fine, but then fails when linking it:

make -C O.darwin-x86 -f ../Makefile TOP=../../.. T_A=darwin-x86 install
/usr/bin/c++ -o libCom.3.14.12.dylib -dynamiclib -flat_namespace -undefined suppress -install_name /corvette/usr/local/epics/base-3.14.12.2/lib/darwin-x86/libCom.3.14.12.dylib -compatibility_version 3.14 -current_version 3.14.12        -arch i386                  bucketLib.o epicsRingPointer.o epicsRingBytes.o postfix.o calcPerform.o cvtFast.o resourceLib.o epicsOnce.o epicsSingletonMutex.o dbmf.o ellLib.o envSubr.o envData.o errlog.o errSymLib.o errSymTbl.o fdmgr.o fdManager.o freeListLib.o gpHashLib.o iocsh.o registry.o libComRegister.o iocLog.o logClient.o macCore.o macEnv.o macUtil.o aToIPAddr.o adjustment.o cantProceed.o epicsConvert.o epicsExit.o epicsStdlib.o epicsString.o truncateFile.o ipAddrToAsciiAsynchronous.o epicsUnitTest.o epicsThread.o epicsMutex.o epicsEvent.o epicsTime.o epicsMessageQueue.o epicsMath.o epicsGeneralTime.o osiClockTime.o osdSock.o osdSockAddrReuse.o osiSock.o systemCallIntMech.o epicsSocketConvertErrnoToString.o osdAssert.o osdFindSymbol.o os!
 dInterrupt.o osdPoolStatus.o osdSignal.o osdEnv.o epicsReadline.o epicsTempFile.o epicsStdio.o osdStdio.o osdThread.o osdMutex.o osdEvent.o osdTime.o osdProcess.o osdNetIntf.o osdMessageQueue.o devLibVME.o devLibVMEOSD.o taskwd.o epicsTimer.o timer.o timerQueue.o timerQueueActive.o timerQueueActiveMgr.o timerQueuePassive.o tsDefs.o         -lreadline -lm -lgcc
ld: library not found for -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [libCom.3.14.12.dylib] Error 1
make[2]: *** [install.darwin-x86] Error 2
make[1]: *** [libCom.install] Error 2
make: *** [src.install] Error 2

So it can't find the gcc library.

I'm probably doing something stupid.  Am I supposed to use the XCode tools for development, or some other gcc based toolkit?  Is this documented somewhere?

Also, I suspect that once that is solved I will get an error because the Mac does not come with libreadline installed?

Thanks,
Mark




Replies:
RE: Building EPICS on Mac Mark Rivers

Navigate by Date:
Prev: Member of CLS Controls Group Elder Matias
Next: RE: Building EPICS on Mac Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Member of CLS Controls Group Elder Matias
Next: RE: Building EPICS on Mac Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·