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

Subject: RE: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error
From: "Madden, Timothy J." <[email protected]>
To: "Rivers, Mark L." <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 31 Mar 2016 15:44:46 +0000
Mark

I guess so. I wasn't sure about the cross compiler stuff. Thanks, I will try.
It seemed that the build did not know we were using a cross compiler.

T


From: Mark Rivers [[email protected]]
Sent: Thursday, March 31, 2016 10:42 AM
To: Madden, Timothy J.; [email protected]
Subject: RE: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error

Don’t you want to do

 

EPICS_HOST_ARCH linux-x86_64

 

and in

 

base/configure/CONFIG_SITE

 

set

 

CROSS_COMPILER_TARGET_ARCHS=linux-arm

CROSS_COMPILER_HOST_ARCHS=linux-x86_64

 

From: [email protected] [mailto:[email protected]] On Behalf Of Madden, Timothy J.
Sent: Thursday, March 31, 2016 10:38 AM
To: [email protected]
Subject: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error

 

Folks

I am attempting to build EPICS into Xilinx Zynq FPGA. I am using petalinux tools (the xilinx distro of linux) to build in EPICS base.

First I go through setting up the Xilinx petalinux compiler etc. All my tools work fine. Next I attempt to cross compile epics base using the Xilinx cross compiler. It works about half way then stops at antelope.

I do this:
setenv EPICS_HOST_ARCH linux-arm

I edit configure/CONFIG_SITE and add the following lines:
GNU_DIR = /localc/Xilinx/petalinux-v2015.2-final/tools/linux-i386/arm-xilinx-linux-gnueabi

CMPLR_PREFIX =  arm-xilinx-linux-gnueabi-

(I tried putting this into the os/CONFIG.blah blah files, but no success.)

I then run make in base.xx.xx.xx

The build mostly works, running the correct compiler. .
It stops at antelope/parse.c

Error below. Any ideas how to get past antelope?

Tim Madden



/localc/Xilinx/petalinux-v2015.2-final/tools/linux-i386/arm-xilinx-linux-gnueabi/bin/arm-xilinx-linux-gnueabi-gcc -c  -D_GNU_SOURCE -D_DEFAULT_SOURCE         -DDEFAULT_SKELETON_FILE=include/flex.skel.static    -DUNIX  -Dlinux     -O3 -g   -w            -MMD -I. -I../O.Common -I. -I.. -I../../../../include/os/Linux -I../../../../include         ../tblcmp.c
rm -f parse.c y.tab.c
rm -f parse.h y.tab.h
../../../../bin/linux-arm/antelope -l -d ../parse.y
../../../../bin/linux-arm/antelope: ../../../../bin/linux-arm/antelope: cannot execute binary file
make[4]: *** [parse.c] Error 126
make[4]: Leaving directory `/localc/Xilinx/petalinux/faspaxGBArm/build/linux/rootfs/apps/epicsbase/base-3.14.12.5/src/toolsComm/flex/O.linux-arm'
make[3]: *** [install.linux-arm] Error 2
make[3]: Leaving directory `/localc/Xilinx/petalinux/faspaxGBArm/build/linux/rootfs/apps/epicsbase/base-3.14.12.5/src/toolsComm/flex'
make[2]: *** [flex.install] Error 2
make[2]: Leaving directory `/localc/Xilinx/petalinux/faspaxGBArm/build/linux/rootfs/apps/epicsbase/base-3.14.12.5/src/toolsComm'
make[1]: *** [toolsComm.install] Error 2
make[1]: Leaving directory `/localc/Xilinx/petalinux/faspaxGBArm/build/linux/rootfs/apps/epicsbase/base-3.14.12.5/src'
make: *** [src.install] Error 2







Replies:
Re: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Andrew Johnson
References:
Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Madden, Timothy J.
RE: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Mark Rivers

Navigate by Date:
Prev: RE: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Mark Rivers
Next: Re: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Mark Rivers
Next: Re: Cross compiling EPICS Base for ARM processor- Xilinx ARM Petalinux- Antelope Error Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·