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  <20152016  2017  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine
From: Michael Davidsaver <[email protected]>
To: "Cusick, Martin-Lee" <[email protected]>, [email protected]
Date: Wed, 09 Dec 2015 13:23:24 -0500
On 12/09/2015 10:00 AM, Cusick, Martin-Lee wrote:
...

The build is successful for 64 bit binaries and the 32-bit cross compile, but I keep getting an error for x86:

 

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++

...

make[3]: Leaving directory `/usr/local/epics.bak/base-3.14.12.3/src/libCom/O.linux-x86'


It looks like your build host is 64-bit, so you need to set EPICS_HOST_ARCH to "linux-x86_64" instead of "linux-x86".  Or better yet, don't set it at all as the correct value should be picked automatically.

FYI, to compile 32-bit code on a 64-bit target it's probably better not to run "gcc", but rather the full prefixed versions like "i586-linux-gnu-gcc" or "x86_64-linux-gnu-gcc".  The EPICS makefiles don't come pre-configured to do this.

If you want to attempt this you'll need to create "configure/os/CONFIG.linux-x86_64.linux-x86" patterned on "configure/os/CONFIG.linux-x86_64.linux-arm".  This will include defining GNU_TARGET.  Then add linux-x86 to CROSS_COMPILER_TARGET_ARCHS.


Replies:
RE: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Mark Rivers
Re: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Andrew Johnson
References:
EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Cusick, Martin-Lee

Navigate by Date:
Prev: RE: [External] RE: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Cusick, Martin-Lee
Next: RE: [External] RE: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: [External] RE: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Mark Rivers
Next: RE: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·