Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-19 Thread Martin Jansa
On Sat, Mar 16, 2024 at 9:02 AM Martin Jansa via lists.openembedded.org
 wrote:

> I'm seeing the same errors with gcc :)
>
> libtool: compile:  ccache arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon
> -mfloat-abi=softfp -mcpu=cortex-a9 -mtune=cortex-a9
> -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
> -Werror=format-security -Werror=return-type -funwind-tables -D_TIME_BITS=64
> -D_FILE_OFFSET_BITS=64
> --sysroot=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot
> -DHAVE_CONFIG_H -I. -I../../git/src -I.. -DNDEBUG -Wunused-but-set-variable
> -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden
> -DHAVE_VISIBILITY=1 -O2 -pipe -g -feliminate-unused-debug-types
> -fcanon-prefix-map
> -fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
> -fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/recipe-sysroot-native=
> -c ../../git/src/t38_terminal.c  -fPIC -DPIC -o .libs/t38_terminal.o
> ../../git/src/ademco_contactid.c:449:110: error: expected ')' before ';'
> token
>   449 | static const int detection_threshold=
> goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
>   |
>^
> In file included from ../../git/src/ademco_contactid.c:66:
> ../../git/src/spandsp/tone_detect.h:63:55: note: to match this '('
>63 | #define goertzel_threshold_dbm0(len,thresh) (int)
> ((len*len*256.0*256.0/2.0*pow(10.0, (thresh - DBM0_MAX_SINE_POWER)/10.0))
>   |   ^
> ../../git/src/ademco_contactid.c:449:51: note: in expansion of macro
> 'goertzel_threshold_dbm0'
>   449 | static const int detection_threshold=
> goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
>   |
> ^~~
> ../../git/src/ademco_contactid.c:449:18: warning: 'detection_threshold'
> defined but not used [-Wunused-const-variable=]
>   449 | static const int detection_threshold=
> goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
>   |  ^~~
> ../../git/src/ademco_contactid.c:210:35: warning: 'ademco_codes' defined
> but not used [-Wunused-const-variable=]
>   210 | static const struct ademco_code_s ademco_codes[] =
>   |   ^~~~
> make[2]: *** [Makefile:1091: ademco_contactid.lo] Error 1
>
> This is with master-next meta-oe from yesterday in build with multilib
> (night not be important)
>

The failure on gcc was caused by arm build using SPANDSP_USE_FIXED_POINT
and missing ')' in one of the macros, see comments in:
https://github.com/freeswitch/spandsp/commit/5394b2cae6c482ccb835335b769469977e6802ae#commitcomment-139934289
and the fix:
https://github.com/freeswitch/spandsp/pull/75

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109473): 
https://lists.openembedded.org/g/openembedded-devel/message/109473
Mute This Topic: https://lists.openembedded.org/mt/104933829/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-17 Thread Khem Raj

On Thu, 14 Mar 2024 20:43:17 +0100, joerg.som...@navimatix.de wrote:
> 


Applied, thanks!

[1/1] spandsp: new telephony DSP library
  commit: 6a2b29e98d77de46a2885eff15bc8e4bc42e9396

Best regards,
-- 
Khem Raj 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109385): 
https://lists.openembedded.org/g/openembedded-devel/message/109385
Mute This Topic: https://lists.openembedded.org/mt/104933829/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-16 Thread Khem Raj
On Sat, Mar 16, 2024 at 1:23 AM Jörg Sommer 
wrote:

> I've found this bug report upstream
> https://github.com/freeswitch/spandsp/issues/67. It builds fine for me
> with the older version df1282eb9af538ab1aadb6d66146e258451d4fe4.
>
>
right. I have commented on the commit which is causing the issue.


>
> Mit freundlichen Grüßen
>
>
> Jörg Sommer
>
> Software Developer / Programmierer
> --
>
> Navimatix GmbH
>
> Tatzendpromenade 2
>
> 07745 Jena
>
> T: 03641 - 327 99 0
>
> F: 03641 - 526 306
>
> M: *joerg.som...@navimatix.de *
>
> *www.navimatix.de <http://www.navimatix.de/>*
>
>
>
> Geschäftsführer: Steffen Späthe, Jan Rommeley
>
> Registergericht: Amtsgericht Jena, HRB 501480
>
> --
> *From:* Martin Jansa 
> *Sent:* Saturday, 16 March 2024 09:02
> *To:* Jörg Sommer 
> *Cc:* Khem Raj ;
> openembedded-devel@lists.openembedded.org <
> openembedded-devel@lists.openembedded.org>
> *Subject:* Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony
> DSP library
>
> I'm seeing the same errors with gcc :)
>
> libtool: compile:  ccache arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon
> -mfloat-abi=softfp -mcpu=cortex-a9 -mtune=cortex-a9
> -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
> -Werror=format-security -Werror=return-type -funwind-tables -D_TIME_BITS=64
> -D_FILE_OFFSET_BITS=64
> --sysroot=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot
> -DHAVE_CONFIG_H -I. -I../../git/src -I.. -DNDEBUG -Wunused-but-set-variable
> -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden
> -DHAVE_VISIBILITY=1 -O2 -pipe -g -feliminate-unused-debug-types
> -fcanon-prefix-map
> -fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
> -fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
> -fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/recipe-sysroot-native=
> -c ../../git/src/t38_terminal.c  -fPIC -DPIC -o .libs/t38_terminal.o
> ../../git/src/ademco_contactid.c:449:110: error: expected ')' before ';'
> token
>   449 | static const int detection_threshold=
> goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
>   |
>^
> In file included from ../../git/src/ademco_contactid.c:66:
> ../../git/src/spandsp/tone_detect.h:63:55: note: to match this '('
>63 | #define goertzel_threshold_dbm0(len,thresh) (int)
> ((len*len*256.0*256.0/2.0*pow(10.0, (thresh - DBM0_MAX_SINE_POWER)/10.0))
>   |   ^
> ../../git/src/ademco_contactid.c:449:51: note: in expansion of macro
> 'goertzel_threshold_dbm0'
>   449 | static const int detection_threshold=
> goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
>   |
> ^~~
> ../../git/src/ademco_contactid.c:449:18: warning: 'detection_threshold'
> defined but not used [-Wunused-const-variable=]
>   449 | static const int detection_threshold=
> goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
>   |  ^~~
> ../../git/src/ademco_contactid.c:210:35: warning: 'ademco_codes' defined
> but not used [-Wunused-const-variable=]
>   210 | static const struct ademco_code_s ademco_codes[] =
>   |   ^~~~
> make[2]: *** [Makefile:1091: ademco_contactid.lo] Error 1
>
> This is with master-next meta-oe from yesterday in build with multilib
> (night not be important)
>
> On Fri, Mar 15, 2024 at 8:19 AM Jörg Sommer via lists.openembedded.org
>  wrote:
>
> Yes, I'm getting these errors, too, when compiling with clang; independent
> of the clang version up to 19. It seems to be a problem of `pow()`. gcc
> might have a built-in and can compute it at compile-time, while clang has
> no built-in of pow.
>
>
>
> Jörg Sommer
>
> Software Developer

Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-16 Thread Jörg Sommer via lists . openembedded . org
I've found this bug report 
upstreamhttps://github.com/freeswitch/spandsp/issues/67. It builds fine for me 
with the older version df1282eb9af538ab1aadb6d66146e258451d4fe4.


Mit freundlichen Grüßen


Jörg Sommer

Software Developer / Programmierer

--


Navimatix GmbH

Tatzendpromenade 2

07745 Jena

T: 03641 - 327 99 0

F: 03641 - 526 306

M: joerg.som...@navimatix.de

www.navimatix.de<http://www.navimatix.de/>



Geschäftsführer: Steffen Späthe, Jan Rommeley

Registergericht: Amtsgericht Jena, HRB 501480


From: Martin Jansa 
Sent: Saturday, 16 March 2024 09:02
To: Jörg Sommer 
Cc: Khem Raj ; openembedded-devel@lists.openembedded.org 

Subject: Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

I'm seeing the same errors with gcc :)

libtool: compile:  ccache arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon 
-mfloat-abi=softfp -mcpu=cortex-a9 -mtune=cortex-a9 -fstack-protector-strong 
-O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
-Werror=return-type -funwind-tables -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 
--sysroot=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot
 -DHAVE_CONFIG_H -I. -I../../git/src -I.. -DNDEBUG -Wunused-but-set-variable 
-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden 
-DHAVE_VISIBILITY=1 -O2 -pipe -g -feliminate-unused-debug-types 
-fcanon-prefix-map 
-fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
 
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
 
-fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
 
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
 
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
 
-fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
 
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/recipe-sysroot-native=
 -c ../../git/src/t38_terminal.c  -fPIC -DPIC -o .libs/t38_terminal.o
../../git/src/ademco_contactid.c:449:110: error: expected ')' before ';' token
  449 | static const int detection_threshold= 
goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
  | 
 ^
In file included from ../../git/src/ademco_contactid.c:66:
../../git/src/spandsp/tone_detect.h:63:55: note: to match this '('
   63 | #define goertzel_threshold_dbm0(len,thresh) (int) 
((len*len*256.0*256.0/2.0*pow(10.0, (thresh - DBM0_MAX_SINE_POWER)/10.0))
  |   ^
../../git/src/ademco_contactid.c:449:51: note: in expansion of macro 
'goertzel_threshold_dbm0'
  449 | static const int detection_threshold= 
goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
  |   
^~~
../../git/src/ademco_contactid.c:449:18: warning: 'detection_threshold' defined 
but not used [-Wunused-const-variable=]
  449 | static const int detection_threshold= 
goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
  |  ^~~
../../git/src/ademco_contactid.c:210:35: warning: 'ademco_codes' defined but 
not used [-Wunused-const-variable=]
  210 | static const struct ademco_code_s ademco_codes[] =
  |   ^~~~
make[2]: *** [Makefile:1091: ademco_contactid.lo] Error 1

This is with master-next meta-oe from yesterday in build with multilib (night 
not be important)

On Fri, Mar 15, 2024 at 8:19 AM Jörg Sommer via 
lists.openembedded.org<http://lists.openembedded.org> 
mailto:navimatix...@lists.openembedded.org>>
 wrote:
Yes, I'm getting these errors, too, when compiling with clang; independent of 
the clang version up to 19. It seems to be a problem of `pow()`. gcc might have 
a built-in and can compute it at compile-time, while clang has no built-in of 
pow.




Jörg Sommer

Software Developer / Programmierer

--


Navimatix GmbH

Tatzendpromenade 2

07745 Jena

T: 03641 - 327 99 0

F: 03641 - 526 306

M: joerg.som...@navimatix.de<mailto:joerg.som...@navimatix.de>

www.navimatix.de<http://www.navimatix.de/>



Geschäftsführer: Steffen Späthe, Jan Rommeley

Registergericht: Amtsgericht Jena, HRB 501480


From: Khem Raj mailto:raj.k...@gmail.com>>
Sent: Friday, 15 March 2024 06:13
To: Jörg Som

Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-16 Thread Martin Jansa
I'm seeing the same errors with gcc :)

libtool: compile:  ccache arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon
-mfloat-abi=softfp -mcpu=cortex-a9 -mtune=cortex-a9
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security -Werror=return-type -funwind-tables -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64
--sysroot=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot
-DHAVE_CONFIG_H -I. -I../../git/src -I.. -DNDEBUG -Wunused-but-set-variable
-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden
-DHAVE_VISIBILITY=1 -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map
-fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/git=/usr/src/debug/lib32-spandsp/3.0.0+git
-fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/build=/usr/src/debug/lib32-spandsp/3.0.0+git
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
-fmacro-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/lib32-recipe-sysroot=
-fdebug-prefix-map=TOPDIR/BUILD/work/mach-oe-linux-gnueabi/lib32-spandsp/3.0.0+git/recipe-sysroot-native=
-c ../../git/src/t38_terminal.c  -fPIC -DPIC -o .libs/t38_terminal.o
../../git/src/ademco_contactid.c:449:110: error: expected ')' before ';'
token
  449 | static const int detection_threshold=
goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
  |
 ^
In file included from ../../git/src/ademco_contactid.c:66:
../../git/src/spandsp/tone_detect.h:63:55: note: to match this '('
   63 | #define goertzel_threshold_dbm0(len,thresh) (int)
((len*len*256.0*256.0/2.0*pow(10.0, (thresh - DBM0_MAX_SINE_POWER)/10.0))
  |   ^
../../git/src/ademco_contactid.c:449:51: note: in expansion of macro
'goertzel_threshold_dbm0'
  449 | static const int detection_threshold=
goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
  |
^~~
../../git/src/ademco_contactid.c:449:18: warning: 'detection_threshold'
defined but not used [-Wunused-const-variable=]
  449 | static const int detection_threshold=
goertzel_threshold_dbm0(GOERTZEL_SAMPLES_PER_BLOCK, -42.0f);
  |  ^~~
../../git/src/ademco_contactid.c:210:35: warning: 'ademco_codes' defined
but not used [-Wunused-const-variable=]
  210 | static const struct ademco_code_s ademco_codes[] =
  |   ^~~~
make[2]: *** [Makefile:1091: ademco_contactid.lo] Error 1

This is with master-next meta-oe from yesterday in build with multilib
(night not be important)

On Fri, Mar 15, 2024 at 8:19 AM Jörg Sommer via lists.openembedded.org
 wrote:

> Yes, I'm getting these errors, too, when compiling with clang; independent
> of the clang version up to 19. It seems to be a problem of `pow()`. gcc
> might have a built-in and can compute it at compile-time, while clang has
> no built-in of pow.
>
>
>
> Jörg Sommer
>
> Software Developer / Programmierer
> --
>
> Navimatix GmbH
>
> Tatzendpromenade 2
>
> 07745 Jena
>
> T: 03641 - 327 99 0
>
> F: 03641 - 526 306
>
> M: *joerg.som...@navimatix.de *
>
> *www.navimatix.de <http://www.navimatix.de/>*
>
>
>
> Geschäftsführer: Steffen Späthe, Jan Rommeley
>
> Registergericht: Amtsgericht Jena, HRB 501480
>
> --
> *From:* Khem Raj 
> *Sent:* Friday, 15 March 2024 06:13
> *To:* Jörg Sommer 
> *Cc:* openembedded-devel@lists.openembedded.org <
> openembedded-devel@lists.openembedded.org>
> *Subject:* Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony
> DSP library
>
> Not much to do with musl, it fails when I use clang on my desktop as
> well. you can see the same errors with clang on host
>
> CC=clang ./configure
> make
>
> On Thu, Mar 14, 2024 at 9:37 PM Khem Raj  wrote:
> >
> > fails to build with musl/clang
> >
> > https://snips.sh/f/qCR86Rwwz1
> >
> > On Thu, Mar 14, 2024 at 12:43 PM Jörg Sommer via
> > lists.openembedded.org
> >  wrote:
> > >
> > > From: Jörg Sommer 
> > >
> > > Signed-off-by: Jörg Sommer 
> > > ---
> > >  .../spandsp/spandsp/configure.patch   |  56 ++
> > >  .../spandsp/spandsp/makefile.

Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-15 Thread Jörg Sommer via lists . openembedded . org
Yes, I'm getting these errors, too, when compiling with clang; independent of 
the clang version up to 19. It seems to be a problem of `pow()`. gcc might have 
a built-in and can compute it at compile-time, while clang has no built-in of 
pow.




Jörg Sommer

Software Developer / Programmierer

--


Navimatix GmbH

Tatzendpromenade 2

07745 Jena

T: 03641 - 327 99 0

F: 03641 - 526 306

M: joerg.som...@navimatix.de

www.navimatix.de<http://www.navimatix.de/>



Geschäftsführer: Steffen Späthe, Jan Rommeley

Registergericht: Amtsgericht Jena, HRB 501480


From: Khem Raj 
Sent: Friday, 15 March 2024 06:13
To: Jörg Sommer 
Cc: openembedded-devel@lists.openembedded.org 

Subject: Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

Not much to do with musl, it fails when I use clang on my desktop as
well. you can see the same errors with clang on host

CC=clang ./configure
make

On Thu, Mar 14, 2024 at 9:37 PM Khem Raj  wrote:
>
> fails to build with musl/clang
>
> https://snips.sh/f/qCR86Rwwz1
>
> On Thu, Mar 14, 2024 at 12:43 PM Jörg Sommer via
> lists.openembedded.org
>  wrote:
> >
> > From: Jörg Sommer 
> >
> > Signed-off-by: Jörg Sommer 
> > ---
> >  .../spandsp/spandsp/configure.patch   |  56 ++
> >  .../spandsp/spandsp/makefile.patch| 161 ++
> >  .../recipes-multimedia/spandsp/spandsp_git.bb |  47 +
> >  3 files changed, 264 insertions(+)
> >  create mode 100644 
> > meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> >  create mode 100644 
> > meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
> >  create mode 100644 
> > meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb
> >
> > diff --git 
> > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch 
> > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> > new file mode 100644
> > index 0..af504be76
> > --- /dev/null
> > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> > @@ -0,0 +1,56 @@
> > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= 
> > +Date: Thu, 14 Mar 2024 09:41:57 +0100
> > +Subject: [PATCH 2/2] configure: Replace manual search for libxml by
> > + AC_CHECK_LIB
> > +MIME-Version: 1.0
> > +Content-Type: text/plain; charset=UTF-8
> > +Content-Transfer-Encoding: 8bit
> > +
> > +The manual search fails if the include directories (and build environment)
> > +are located somewhere else.
> > +
> > +Signed-off-by: Jörg Sommer 
> > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
> > +---
> > +
> > +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log 
> > indicates errors, it looked at host include and/or library paths while 
> > determining system capabilities.
> > +
> > + configure.ac | 22 +-
> > + 1 file changed, 5 insertions(+), 17 deletions(-)
> > +
> > +diff --git a/configure.ac b/configure.ac
> > +index 2140837..b5138d6 100644
> > +--- a/configure.ac
> >  b/configure.ac
> > +@@ -185,23 +185,11 @@ then
> > + fi
> > +
> > + # Determine XML2 include path
> > +-AC_MSG_CHECKING(for libxml/xmlmemory.h)
> > +-
> > +-# Can we include headers using system include dirs?
> > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], 
> > [[int a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=])
> > +-
> > +-# Hunt through several possible directories to find the includes for 
> > libxml2
> > +-if test "x$XML2_INCLUDE" = "x"; then
> > +-old_CPPFLAGS="$CPPFLAGS"
> > +-for i in $xml2_include_dir /usr/include /usr/local/include 
> > /usr/include/libxml2 /usr/local/include/libxml2 ; do
> > +-CPPFLAGS="$old_CPPFLAGS -I$i"
> > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include 
> > ]], [[int a = 
> > 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE=
> > +-])
> > +-if test "x$XML2_INCLUDE" != "x"; then
> > +-break;
> > +-fi
> > +-done
> > +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE"
> > ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes])
> > ++if test "$libxml2_found" = "yes" ; then
> > ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available])
> > ++else
> > ++AC_MSG_WARN([libxml2 not found. Disabling cache.])
> > + fi
> > +
> > + AC_CHECK_HEADERS([libxml/xmlmemory.h])
> > +--
> > +2.34.1

Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-14 Thread Khem Raj
Not much to do with musl, it fails when I use clang on my desktop as
well. you can see the same errors with clang on host

CC=clang ./configure
make

On Thu, Mar 14, 2024 at 9:37 PM Khem Raj  wrote:
>
> fails to build with musl/clang
>
> https://snips.sh/f/qCR86Rwwz1
>
> On Thu, Mar 14, 2024 at 12:43 PM Jörg Sommer via
> lists.openembedded.org
>  wrote:
> >
> > From: Jörg Sommer 
> >
> > Signed-off-by: Jörg Sommer 
> > ---
> >  .../spandsp/spandsp/configure.patch   |  56 ++
> >  .../spandsp/spandsp/makefile.patch| 161 ++
> >  .../recipes-multimedia/spandsp/spandsp_git.bb |  47 +
> >  3 files changed, 264 insertions(+)
> >  create mode 100644 
> > meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> >  create mode 100644 
> > meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
> >  create mode 100644 
> > meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb
> >
> > diff --git 
> > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch 
> > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> > new file mode 100644
> > index 0..af504be76
> > --- /dev/null
> > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> > @@ -0,0 +1,56 @@
> > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= 
> > +Date: Thu, 14 Mar 2024 09:41:57 +0100
> > +Subject: [PATCH 2/2] configure: Replace manual search for libxml by
> > + AC_CHECK_LIB
> > +MIME-Version: 1.0
> > +Content-Type: text/plain; charset=UTF-8
> > +Content-Transfer-Encoding: 8bit
> > +
> > +The manual search fails if the include directories (and build environment)
> > +are located somewhere else.
> > +
> > +Signed-off-by: Jörg Sommer 
> > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
> > +---
> > +
> > +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log 
> > indicates errors, it looked at host include and/or library paths while 
> > determining system capabilities.
> > +
> > + configure.ac | 22 +-
> > + 1 file changed, 5 insertions(+), 17 deletions(-)
> > +
> > +diff --git a/configure.ac b/configure.ac
> > +index 2140837..b5138d6 100644
> > +--- a/configure.ac
> >  b/configure.ac
> > +@@ -185,23 +185,11 @@ then
> > + fi
> > +
> > + # Determine XML2 include path
> > +-AC_MSG_CHECKING(for libxml/xmlmemory.h)
> > +-
> > +-# Can we include headers using system include dirs?
> > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], 
> > [[int a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=])
> > +-
> > +-# Hunt through several possible directories to find the includes for 
> > libxml2
> > +-if test "x$XML2_INCLUDE" = "x"; then
> > +-old_CPPFLAGS="$CPPFLAGS"
> > +-for i in $xml2_include_dir /usr/include /usr/local/include 
> > /usr/include/libxml2 /usr/local/include/libxml2 ; do
> > +-CPPFLAGS="$old_CPPFLAGS -I$i"
> > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include 
> > ]], [[int a = 
> > 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE=
> > +-])
> > +-if test "x$XML2_INCLUDE" != "x"; then
> > +-break;
> > +-fi
> > +-done
> > +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE"
> > ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes])
> > ++if test "$libxml2_found" = "yes" ; then
> > ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available])
> > ++else
> > ++AC_MSG_WARN([libxml2 not found. Disabling cache.])
> > + fi
> > +
> > + AC_CHECK_HEADERS([libxml/xmlmemory.h])
> > +--
> > +2.34.1
> > +
> > diff --git 
> > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch 
> > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
> > new file mode 100644
> > index 0..d3eb047fe
> > --- /dev/null
> > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
> > @@ -0,0 +1,161 @@
> > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= 
> > +Date: Thu, 14 Mar 2024 08:08:13 +0100
> > +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross 
> > compiling
> > +MIME-Version: 1.0
> > +Content-Type: text/plain; charset=UTF-8
> > +Content-Transfer-Encoding: 8bit
> > +
> > +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and
> > +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile
> > +time.
> > +
> > +[1]: 
> > https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
> > +[2]: 
> > https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587
> > +
> > +Signed-off-by: Jörg Sommer 
> > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
> > +---
> > + configure.ac| 49 +---
> > + src/Makefile.am | 54 +
> > + 2 files changed, 29 insertions(+), 74 deletions(-)
> > +
> > +diff --git a/configure.ac b/configure.ac
> > +index 96fd022..2140837 100644
> > +--- a/configure.ac

Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library

2024-03-14 Thread Khem Raj
fails to build with musl/clang

https://snips.sh/f/qCR86Rwwz1

On Thu, Mar 14, 2024 at 12:43 PM Jörg Sommer via
lists.openembedded.org
 wrote:
>
> From: Jörg Sommer 
>
> Signed-off-by: Jörg Sommer 
> ---
>  .../spandsp/spandsp/configure.patch   |  56 ++
>  .../spandsp/spandsp/makefile.patch| 161 ++
>  .../recipes-multimedia/spandsp/spandsp_git.bb |  47 +
>  3 files changed, 264 insertions(+)
>  create mode 100644 
> meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
>  create mode 100644 
> meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
>  create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb
>
> diff --git 
> a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch 
> b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> new file mode 100644
> index 0..af504be76
> --- /dev/null
> +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch
> @@ -0,0 +1,56 @@
> +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= 
> +Date: Thu, 14 Mar 2024 09:41:57 +0100
> +Subject: [PATCH 2/2] configure: Replace manual search for libxml by
> + AC_CHECK_LIB
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +The manual search fails if the include directories (and build environment)
> +are located somewhere else.
> +
> +Signed-off-by: Jörg Sommer 
> +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
> +---
> +
> +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log 
> indicates errors, it looked at host include and/or library paths while 
> determining system capabilities.
> +
> + configure.ac | 22 +-
> + 1 file changed, 5 insertions(+), 17 deletions(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 2140837..b5138d6 100644
> +--- a/configure.ac
>  b/configure.ac
> +@@ -185,23 +185,11 @@ then
> + fi
> +
> + # Determine XML2 include path
> +-AC_MSG_CHECKING(for libxml/xmlmemory.h)
> +-
> +-# Can we include headers using system include dirs?
> +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int 
> a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=])
> +-
> +-# Hunt through several possible directories to find the includes for libxml2
> +-if test "x$XML2_INCLUDE" = "x"; then
> +-old_CPPFLAGS="$CPPFLAGS"
> +-for i in $xml2_include_dir /usr/include /usr/local/include 
> /usr/include/libxml2 /usr/local/include/libxml2 ; do
> +-CPPFLAGS="$old_CPPFLAGS -I$i"
> +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include 
> ]], [[int a = 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE=
> +-])
> +-if test "x$XML2_INCLUDE" != "x"; then
> +-break;
> +-fi
> +-done
> +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE"
> ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes])
> ++if test "$libxml2_found" = "yes" ; then
> ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available])
> ++else
> ++AC_MSG_WARN([libxml2 not found. Disabling cache.])
> + fi
> +
> + AC_CHECK_HEADERS([libxml/xmlmemory.h])
> +--
> +2.34.1
> +
> diff --git 
> a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch 
> b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
> new file mode 100644
> index 0..d3eb047fe
> --- /dev/null
> +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch
> @@ -0,0 +1,161 @@
> +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= 
> +Date: Thu, 14 Mar 2024 08:08:13 +0100
> +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and
> +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile
> +time.
> +
> +[1]: https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
> +[2]: 
> https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587
> +
> +Signed-off-by: Jörg Sommer 
> +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
> +---
> + configure.ac| 49 +---
> + src/Makefile.am | 54 +
> + 2 files changed, 29 insertions(+), 74 deletions(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 96fd022..2140837 100644
> +--- a/configure.ac
>  b/configure.ac
> +@@ -55,54 +55,7 @@ AC_LANG([C])
> +
> + AX_COMPILER_VENDOR
> +
> +-if test "${build}" != "${host}"
> +-then
> +-# If we are doing a Canadian Cross, in which the host and build systems
> +-# are not the same, we set reasonable default values for the tools.
> +-
> +-CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
> +-CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
> +-CC=${CC-${host_alias}-gcc}
> +-CFLAGS=${CFLAGS-"-g -O2"}
> +-CXX=${CXX-${host_