> 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.
> 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.
Maybe I am misunderstanding something, but this does not seem correct. It works fine to simply switch between setting EPICS_HOST_ARCH to linux-x86_64 (for 64-bit builds) and linux-x86 (for 32-bit builds) on the same 64-bit Linux host.
I have been doing this for many years in many versions of base.
Mark
From: [email protected] [mailto:[email protected]] On Behalf Of Michael Davidsaver
Sent: Wednesday, December 09, 2015 12:23 PM
To: Cusick, Martin-Lee; [email protected]
Subject: Re: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine
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.
- References:
- EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Cusick, Martin-Lee
- Re: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Michael Davidsaver
- Navigate by Date:
- 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 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>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine Michael Davidsaver
- Next:
Re: EPICS BASE-3.14.12.3 32-bit Binaries on 64-bit host Machine 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>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|