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

Subject: Re: Compiling alh, MEDM on Snow Leopard (10.6.2)
From: Steve Shoaf <[email protected]>
To: EPICS tech-talk <[email protected]>
Date: Mon, 21 Dec 2009 08:08:54 -0600
Bertrand,

gcc on Snow Leopard defaults to 64-bit compiling, Xcode projects apparently default to 32-bit.  As of R3.14.11 EPICS base does not have support in the build files for darwin-x86_64.  The "file is not of required architecture" came up when I was compiling some of my darwin R3.14.11 soft ioc's at the APS when I was upgraded to Snow Leopard.  If you add the following to your CONFIG_SITE file, then gcc will build and link for 32-bit.

ARCH_DEP_CFLAGS += -m32 -arch i386
ARCH_DEP_LDFLAGS += -arch i386

Hope that resolves your issue,

Steve Shoaf

On Dec 20, 2009, at 9:58 AM, Bertrand H.J. Biritz wrote:

> Dear Tech-Talk,
> 
> It's the holiday season which means new computer (for my dad this time) and also compiling code :)
> 
> So I tried installing EPICS et al. on a MacBook Pro (2.53 GHz) running 10.6.2 with MacPorts 1.8.1.
> EPICS 3.14.11 went fine, although I needed to deactivate readline (6.0.000_2+darwin) as it caused an error – hopefully a problem on their end as the package is still in dev, but just in case here is the error message
> 
> <snip>
> ../../../../bin/darwin-x86/antelope -l -d ../parse.y
> dyld: Symbol not found: _rl_insert
>  Referenced from: /Users/Superior/Documents/EPICS/base-3-14-11/lib/darwin-x86/libCom.3.14.11.dylib
>  Expected in: flat namespace
> <snip>
> 
> When I try to compile the latest version of the alarm handler or MEDM I get the following error message:
> 
> <snip>
> ld: warning: in /opt/local/lib/libXmu.dylib, file is not of required architecture
> ld: warning: in /opt/local/lib/libXm.dylib, file is not of required architecture
> ld: warning: in /opt/local/lib/libXt.dylib, file is not of required architecture
> ld: warning: in /opt/local/lib/libX11.dylib, file is not of required architecture
> Undefined symbols:
>  "_XtAppAddActions", referenced from:
>      _awRowWidgets in awAlh.o
> <snip>
> 
> I double checked the CONFIG_SITE.darwin-x86.darwin-x86 file to make sure it is looking in the correct locations:
> 
> #
> # XDarwin
> #
> X11_LIB=/usr/X11R6/lib
> X11_INC=/usr/X11R6/include/X11
> XPM_LIB=/usr/X11R6/lib
> XPM_INC=/usr/X11R6/include/X11
> 
> #
> # Fink OpenMotif
> #
> #MOTIF_LIB=/sw/lib
> #MOTIF_INC=/sw/include
> 
> #
> # DarwinPorts OpenMotif
> #
> MOTIF_LIB=/opt/local/lib
> MOTIF_INC=/opt/local/include
> 
> Looking in the XDarwin directory there are three of the four .dylib libraries (libXm.dylib isn't there).
> 
> Does someone have an idea of why the compilation is failing? Is it due to the X11 not being the latest version? On my PowerBook I have XQuartz 2.4.0 installed, but the XQuartz project said there would be a separate release called 2.4.1 for Snow Leopard.
> 
> Thanks,
> Bertrand



Replies:
Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Pelaia II, Tom
References:
Compiling alh, MEDM on Snow Leopard (10.6.2) Bertrand H.J. Biritz

Navigate by Date:
Prev: Compiling alh, MEDM on Snow Leopard (10.6.2) Bertrand H.J. Biritz
Next: Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Pelaia II, Tom
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Compiling alh, MEDM on Snow Leopard (10.6.2) Bertrand H.J. Biritz
Next: Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Pelaia II, Tom
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·