Subject: |
compiling EPICS R7 base on macOS Big Sur as fat binaries for x86_64 and arm64. |
From: |
Noboru Yamamoto via Tech-talk <tech-talk at aps.anl.gov> |
To: |
Till Straumann via Tech-talk <tech-talk at aps.anl.gov> |
Date: |
Tue, 6 Apr 2021 13:03:43 +0900 |
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.
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
--
Noboru Yamamoto
Accelerator Control group
J-PARC center/KEK & JAEA
--------
web: http://www-acc.kek.jp/EPICS_Gr/default.html
- Replies:
- Re: compiling EPICS R7 base on macOS Big Sur as fat binaries for x86_64 and arm64. Johnson, Andrew N. via Tech-talk
- Navigate by Date:
- Prev:
Re: Documentation to program CSS Phoebus scripts using JS and Python Johnson, Andrew N. via Tech-talk
- Next:
Re: Thermo Radiation Detectors FHT 6020 Smith, Martin 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
<2021>
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Thermo Radiation Detectors FHT 6020 Smith, Martin via Tech-talk
- Next:
Re: compiling EPICS R7 base on macOS Big Sur as fat binaries for x86_64 and arm64. Johnson, Andrew N. 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
<2021>
2022
2023
2024
|