Hi all,
For Don Reid, compile of SVN 3995 on the ARM system here ran smoothly.
Question for Jeroen, what advantages does OpenBSD give us?
Linux is well supported on most ARM boards, Raspberry Pi etc..
System here: "uname -a"
Linux taitbox 3.10.108-BPI-M2U-Kernel #1 SMP Sat Nov 11 19:20:49 CST 2017
armv7l armv7l armv7l GNU/Linux
Though with the introduction of Power Management in kernels 4.15.xx onward
it's definitely caused me grief. Hence the above 3.10.xx kernel.
Systems that run for days then just stop, no logs are my worst nightmare.
And it's not limited to ARM systems, My ASRock Q1900-ITX failed similarly
until I disabled the GUI. I used systemctl to set default multiuser, no
graphics.
Alan VK2ZIW
On Tue, 15 Jan 2019 06:15:01 +1030, David Rowe wrote
> Thank you Sasano your patch has been applied, the ctests pass, and it
> has been checked into svn.
>
> Thanks Jeroen, I removed the #include <malloc.h> and OS-specific
> logic in freedv_api.c and it worked just fine.
>
> Cheers,
>
> David
>
> On 14/01/19 19:08, SASANO Takayoshi wrote:
> > Hello,
> >
> > I am trying to support codec2 to OpenBSD.
> > At least three files to be modified.
> >
> > misc/CmakeLists.txt
> > to tell the directory of libsamplerate, use ${LIBSAMPLERATE} instead
> > of samplerate in target_link_libraries()
> > src/freedv_api.c
> > <malloc.h> is at <sys/malloc.h>, other *BSDs are same.
> > unittest/CMakeLists.txt
> > -fstack-usage option can be used with GCC only,
> > avoid it when using other compiler (OpenBSD/amd64 uses clang).
> >
> > Here is the diff.
> >
> > Index: misc/CMakeLists.txt
> > ===================================================================
> > --- misc/CMakeLists.txt (revision 3986)
> > +++ misc/CMakeLists.txt (working copy)
> > @@ -28,7 +28,7 @@
> > target_link_libraries(raw2h codec2)
> >
> > add_executable(tsrc tsrc.c)
> > -target_link_libraries(tsrc samplerate)
> > +target_link_libraries(tsrc ${LIBSAMPLERATE})
> >
> > add_executable(tlininterp tlininterp.c)
> > add_executable(tdec tdec.c)
> > Index: src/freedv_api.c
> > ===================================================================
> > --- src/freedv_api.c (revision 3986)
> > +++ src/freedv_api.c (working copy)
> > @@ -33,8 +33,10 @@
> > #include <string.h>
> > #include <math.h>
> >
> > -#ifdef __APPLE__
> > +#if defined(__APPLE__)
> > #include <malloc/malloc.h>
> > +#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
> > +#include <sys/malloc.h>
> > #else
> > #include <malloc.h>
> > #endif /* __APPLE__ */
> > Index: unittest/CMakeLists.txt
> > ===================================================================
> > --- unittest/CMakeLists.txt (revision 3986)
> > +++ unittest/CMakeLists.txt (working copy)
> > @@ -32,7 +32,11 @@
> > add_library(function_trace STATIC ../unittest/function_trace.c)
> >
> > add_executable(ofdm_stack ofdm_stack.c ../src/ofdm.c ../src/octave.c
../src/kiss_fft.c ../src/modem_probe.c ../src/mpdecode_core.c ../src/phi0.c
../src/filter.c)
> > -target_compile_options(ofdm_stack PUBLIC -fstack-usage -finstrument-
functions -no-pie)
> > +if (CMAKE_C_COMPILER MATCHES "gcc$")
> > + target_compile_options(ofdm_stack PUBLIC -fstack-usage -finstrument-
functions -no-pie)
> > +else()
> > + target_compile_options(ofdm_stack PUBLIC -finstrument-functions -no-
pie)
> > +endif()
> > target_link_libraries(ofdm_stack function_trace m -no-pie "-Wl,-
Map=ofdm_stack.map")
> > add_definitions(-D__UNITTEST__)
> >
>
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Alan
Evil flourishes when good men do nothing.
Consider the Christmas child.
---------------------------------------------------------------------------
Alan Beard Unix Support Technician from 1984 to today
70 Wedmore Rd. Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS
Emu Heights N.S.W. 2750 Routers, terminal servers, printers, terminals etc..
+61 2 47353013 (h) Support Programming, shell scripting, "C", assembler
0414 353013 (mobile) After uni, electronics tech
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2