Experimental Physics and Industrial Control System
|
Thanks Andrew for the info. It does indeed appear to be the same optimizer bug but rather than libcom/calc I am seeing it in the synapps calc modules transform record sCalcPostfix.c.
I guess the same fix would work but I will probably stick with using -fno_builtin compiler option for the calc module for now. So far its worked for me and seems a little easier than disabling optimization in individual source files.
Pete
Congratulations! I’m hoping we’ll get more RTEMS users to help test out the latest changes for RTEMS 6.
This issue sounds just like a problem that
we have traced to an optimizer bug in GCC. There was a workaround added to the postfix.c file in the 7.0.6 release (in commit 54f2d888) which you might be able to apply if you can’t
use a newer version of Base, it turns off optimization when compiling that memcpy(); you would also need to add
ARCH_DEP_CFLAGS += -DRTEMS_HAS_ALTIVEC
to your configure/os/CONFIG.Common.RTEMS-beatnik file to enable it (I assume you’re
using the beatnik BSP).
- Andrew
--
Complexity comes for free, Simplicity you have to work for.
I have built my first RTEMS 5.3 IOC. The IOC includes a transform record which when first tested crashed seemingly when a memcpy was encountered in the
transform record calc field parsing during iocInit. Addition of a ‘-fno_builtin’ to the compiler options seems to have sorted the problem. I was wondering if others had encountered this problem and whether the addition of this particular compiler flag is common
with RTEMS IOC’s or have I missed something?
I am using RTEMS 5.3, epics 7.0.7, compiler powerpc-rtems5-g++ (GCC) 7.5.0 20191114 (RTEMS 5, RSB 5.3, Newlib 7947581). To verify the issue I stripped
the IOC right back to just one transform record which was enough to show the problem.
Pete
Peter Leicester
Senior Software Systems Engineer
Diamond Light Source Ltd
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please
notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source
Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom.
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt
by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom.
|
- References:
- RTEMS compilation flag Leicester, Pete (DLSLtd, RAL, CEO) via Tech-talk
- Re: RTEMS compilation flag Johnson, Andrew N. via Tech-talk
- Navigate by Date:
- Prev:
Re: RTEMS compilation flag Johnson, Andrew N. via Tech-talk
- Next:
Windows static build Thomas, Patrick 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>
2026
- Navigate by Thread:
- Prev:
Re: RTEMS compilation flag Johnson, Andrew N. via Tech-talk
- Next:
Identifying ioc/machine accessing the PV Kuldeep Joshi 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>
2026
|
|
ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|