audacity fails to build with '--param val=arg' in CFLAGS


gcc allows complex arguments like ‘–param arg=value’, e.g. ‘–param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512’ is valid gcc argument. But audacity fails to compile with such option at least from version 1.3.6 till current 1.3.10.

It complains about different libraries missing, but the real reason is detection test unit compilation failure because pkg-config --cflags errorneously strips --param argument when it encouter it the second time, so you get ‘–param l1-cache-line-size=64 l1-cache-size=64 l2-cache-size=512’ string instead of original option above.

Maybe this should be fix at pkg-config, but it is very easy to fix audacity to compile: just replace --cflags by --cflags-only-I and everything will be perfect.

More details and build logs are available here:
Thank you for your attention.

No reaction/comments so far?

Sorry, the developers don’t look at the forum much. You have a much better chance getting a response posting to one of the mailing lists.

As far as this problem goes, per the Gentoo report the whole thing is caused by flags being placed in /usr/lib/pkgconfig/*.pc that shouldn’t be there. I actually don’t know what packages or programs are responsible for creating these files, but I think that’s where the fix needs to be.

Or if you don’t want to subscribe to a mailing list in order to make a bug report, send an e-mail to our feedback address so that the report can be dealt with/forwarded to the most appropriate list.