Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Michael Davidsaver
FYI. Excluding the c++ part shows that acoshl() and friends are never defined. > $ cat mtest.c > #include > > long double x(long double a) { return acoshl(a); } From the newlib math.h: > /* Newlib doesn't fully support long double math functions so far. >On platforms where long double eq

Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Johnson, Andrew N.
On Feb 16, 2021, at 5:26 PM, Joel Sherrill mailto:j...@rtems.org>> wrote: Can you provide a cutdown? Sure, it’s 1 line of source: tux% cat m.cpp #include which when compiled: tux% /local/anj/RTEMS-5.1/rtems-5.1/bin/m68k-rtems5-g++ -B/local/anj/RTEMS-5.1/rtems-5.1/m68k-rtems5/uC5282/lib/ -sp

Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Johnson, Andrew N.
Hi Gedare, On Feb 16, 2021, at 4:42 PM, Gedare Bloom mailto:ged...@rtems.org>> wrote: Hi Andrew, On Tue, Feb 16, 2021 at 1:16 PM Johnson, Andrew N. mailto:a...@anl.gov>> wrote: I tried to build the in-progress port of EPICS for the uC5282 BSP last night against a release build of RTEMS-5.1 w

Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Chris Johns
On 17/2/21 7:16 am, Johnson, Andrew N. wrote: > I tried to build the in-progress port of EPICS for the uC5282 BSP last night > against a release build of RTEMS-5.1 with tools and BSP built using RSB. It > looks like the g++ cmath routines haven't been configured properly for this > target. It fa

Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Joel Sherrill
On Tue, Feb 16, 2021 at 5:50 PM Johnson, Andrew N. wrote: > On Feb 16, 2021, at 5:26 PM, Joel Sherrill wrote: > > > Can you provide a cutdown? > > > Sure, it’s 1 line of source: > > *tux% *cat m.cpp > #include > > I can confirm this one-liner compilers on every rtems 5 and 6 gcc target includin

RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Johnson, Andrew N.
I tried to build the in-progress port of EPICS for the uC5282 BSP last night against a release build of RTEMS-5.1 with tools and BSP built using RSB. It looks like the g++ cmath routines haven't been configured properly for this target. It failed at the first C++ source file includes math.h (oth

Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Joel Sherrill
Can you provide a cutdown? And any idea what those using statements are referring to? I know the methods in libm but so not understand what it means in the context of using On Tue, Feb 16, 2021, 4:42 PM Gedare Bloom wrote: > Hi Andrew, > > On Tue, Feb 16, 2021 at 1:16 PM Johnson, Andrew N. wro

Re: RTEMS 5.1: cmath compiler errors on m68k/uC5282

2021-02-16 Thread Gedare Bloom
Hi Andrew, On Tue, Feb 16, 2021 at 1:16 PM Johnson, Andrew N. wrote: > > I tried to build the in-progress port of EPICS for the uC5282 BSP last night > against a release build of RTEMS-5.1 with tools and BSP built using RSB. It > looks like the g++ cmath routines haven't been configured properl