EPICS Home

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  2021  2022  2023  2024  <2025 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  <2025
<== Date ==> <== Thread ==>

Subject: cross-compiling tirpc header
From: Pierrick M Hanlet via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 18 Apr 2025 17:31:42 +0000
Greetings all,
I've recently added the raspberrypi5 platform to my list of supported 
platforms and in attempting to build asyn
found that I've never correctly pointed my builds to pick up the correct 
header file for tirpc:

/usr/local/products/buildroot/raspberrypi5_generic/host/usr/bin/aarch64-linux-gcc 
-D_GNU_SOURCE -D_DEFAULT_SOURCE        -DUSE_TYPED_RSET -DUSE_TYPED_DSET 
-DUSE_TYPED_DRVET -DBUILDING_asyn_API   -DUNIX -Dlinux      -O3 -g   
-Wall -Werror-implicit-function-declaration -DUSE_TYPED_RSET 
-DUSE_TYPED_DSET -DUSE_TYPED_DRVET -DHAVE_LSREC -DHAVE_CALCMOD 
-DHAVE_DEVINT64       -D_FILE_OFFSET_BITS=64 -g -fPIC -I. -I../O.Common 
-I. -I. -I../../asyn/drvAsynSerial/os/Linux 
-I../../asyn/drvAsynSerial/os/default -I.. -I../../asyn/asynDriver 
-I../../asyn/asynGpib -I../../asyn/drvAsynSerial -I../../asyn/interfaces 
-I../../asyn/miscellaneous -I../../asyn/asynPortDriver/exceptions 
-I../../asyn/asynPortDriver -I../../asyn/asynPortClient 
-I../../asyn/devEpics -I../../asyn/asynRecord -I../../asyn/vxi11 
-I../../asyn/drvPrologixGPIB -I../../asyn/gsIP488 -I../../asyn/ni1014 
-I../../asyn/devGpib -I../../include/compiler/gcc 
-I../../include/os/Linux -I../../include 
-I/usr/local/epics/securePVA/Support/ipac/include 
-I/usr/local/epics/securePVA/Support/seq/include 
-I/usr/local/epics/securePVA/Support/calc/include 
-I/usr/local/epics/securePVA/Support/sscan/include 
-I/usr/local/epics/securePVA/base/include/compiler/gcc 
-I/usr/local/epics/securePVA/base/include/os/Linux 
-I/usr/local/epics/securePVA/base/include -I/usr/include/tirpc 
-I/usr/local/products/buildroot/raspberrypi5_generic/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include 
-I/usr/local/products/buildroot/raspberrypi5_generic/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/tirpc 
-MM -MF asynManager.d  ../../asyn/asynDriver/asynManager.c
aarch64-linux-gcc: ERROR: unsafe header/library path used in 
cross-compilation: '-I/usr/include/tirpc'

In configure/os/CONFIG_SITE.Common.linux-arm_raspberrypi5, I have:

OP_SYS_INCLUDES+=-I$(GNU_DIR)/$(ARCH_DIR)/sysroot/usr/include
OP_SYS_INCLUDES+=-I$(GNU_DIR)/$(ARCH_DIR)/sysroot/usr/include/tirpc
OP_SYS_LDLIBS += -ltirpc

Should I be using a different environment variable?

I'm using base-7.0.9 with C++20 on AL9 and asyn-R4-44

Many thanks,
Pierrick


-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile

"Whether you think you can or think you can't, you're right" -- Henry Ford


Replies:
Re: cross-compiling tirpc header Pierrick M Hanlet via Tech-talk

Navigate by Date:
Prev: CaLab - strange replies Dariush Hampai via Tech-talk
Next: Re: cross-compiling tirpc header Pierrick M Hanlet 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  <2025
Navigate by Thread:
Prev: CaLab - strange replies Dariush Hampai via Tech-talk
Next: Re: cross-compiling tirpc header Pierrick M Hanlet 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  <2025