EPICS 3.14.11 officially supports 32/64 bit X86 universal builds. In fact, I build 32/64 X86 bit universal binaries with R3.14.10 and I run EPICS applications (both command line and EDM) in 64 bit mode which is the default. In 3.14.10 it only required a change to the compile flags in the configuration file.
Check the section titled "Universal Binaries on Darwin" in
http://www.aps.anl.gov/epics/base/R3-14/11-docs/RELEASE_NOTES.html
best regards,
tom
On Dec 21, 2009, at 9:08 AM, Steve Shoaf wrote:
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
______________
Tom Pelaia, Ph.D.
Application Programming Team Leader
Accelerator Physics Group
Research Accelerator Division
Spallation Neutron Source
Oak Ridge National Lab
homepage: http://www.ornl.gov/~t6p
- References:
- Compiling alh, MEDM on Snow Leopard (10.6.2) Bertrand H.J. Biritz
- Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Steve Shoaf
- Navigate by Date:
- Prev:
Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Steve Shoaf
- Next:
Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Bertrand H.J. Biritz
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Steve Shoaf
- Next:
Re: Compiling alh, MEDM on Snow Leopard (10.6.2) Bertrand H.J. Biritz
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|