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

Subject: Re: compiling EPICS R7 base on macOS Big Sur as fat binaries for x86_64 and arm64.
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: Noboru Yamamoto <noboru.yamamoto at kek.jp>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Tue, 6 Apr 2021 15:30:04 +0000
Hi Noboru,

On Apr 5, 2021, at 11:03 PM, Noboru Yamamoto wrote:
> 
> Hi, friends in EPICS community.
> 
> Recently I got Apple Macbook pro with Apple M1 CPU, running macOS Big Sur.
> Today, I successfully built fat binaries for EPICS R7 base software.
> So far I tested softIOC and ca_get command in both x86_64 and arm64 architectures using clang/clang++ compilers from Apple.

Thank-you for checking and confirming that fat binaries build and work properly, I don’t have access to an M1 CPU yet to do that myself (although this laptop will need replacing soon as it can’t be upgraded beyond macOS Catalina).

- Andrew


> To build these binraries, I just needed to modify Makefiles as shown below.
> 
> 1) In base/configure/os/CONFIG_SITE.Common.darwin-x86, set the ARCH_CLASS variable as
> 	ARCH_CLASS = x86_64 arm64
> 
> 2)  Rebuild "libreadline.dylib" in /usr/local/lib ( or where you installed it) as a fat binary.
> To build it,  I modified  readline-8.1/Makefile:
> 
> 	CFLAGS = -arch x86_64 -arch arm64 -g -O2 -Wno-parentheses -Wno-format-security
> 
> and readline-8.1/shlib/Makefile:
> 
> 	SHOBJ_LDFLAGS = -arch x86_64 -arch arm64 -dynamiclib -dynamic -undefined dynamic_lookup
> 
> 
> Regards,
> 
> Noboru Yamamoto
> J-PARC accelerator control group
> KEK, JAPAN

-- 
Complexity comes for free, simplicity you have to work for.


References:
compiling EPICS R7 base on macOS Big Sur as fat binaries for x86_64 and arm64. Noboru Yamamoto via Tech-talk

Navigate by Date:
Prev: VisualDCT doesnt load .dbd or .db files Marco A. Barra Montevechi Filho via Tech-talk
Next: Re: VisualDCT doesnt load .dbd or .db files Kyle Hesse via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: compiling EPICS R7 base on macOS Big Sur as fat binaries for x86_64 and arm64. Noboru Yamamoto via Tech-talk
Next: Handling Ethernet-to-Serial Connection when vendor SDK expects tty device Wlodek, Jakub via Tech-talk
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  <20212022  2023  2024 
ANJ, 06 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·