Making all in rate-lavc make[2]: Entering directory '/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_64.amd64/rate-lavc' /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc -I.. -DNDEBUG -DNDEBUG -Wall -g -I/usr/include/alsa -DAVCODEC_HEADER="<libavcodec/avcodec.h>" -march=native -O2 -pipe -c -o rate_lavcrate.lo /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc -I.. -DNDEBUG -DNDEBUG -Wall -g -I/usr/include/alsa "-DAVCODEC_HEADER=<libavcodec/avcodec.h>" -march=native -O2 -pipe -c /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c -fPIC -DPIC -o .libs/rate_lavcrate.o /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c: In function ‘pcm_src_free’: /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:70:3: warning: implicit declaration of function ‘av_resample_close’; did you mean ‘av_frame_clone’? [-Wimplicit-function-declaration] av_resample_close(rate->context); ^~~~~~~~~~~~~~~~~ av_frame_clone /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c: In function ‘pcm_src_init’: /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:96:19: warning: implicit declaration of function ‘av_resample_init’; did you mean ‘av_get_sample_fmt’? [-Wimplicit-function-declaration] rate->context = av_resample_init(info->out.rate, info->in.rate, ^~~~~~~~~~~~~~~~ av_get_sample_fmt /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:96:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion] rate->context = av_resample_init(info->out.rate, info->in.rate, ^ /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c: In function ‘pcm_src_convert_s16’: /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:186:9: warning: implicit declaration of function ‘av_resample’; did you mean ‘av_rescale’? [-Wimplicit-function-declaration] ret = av_resample(rate->context, rate->out[i], ^~~~~~~~~~~ av_rescale /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194:2: warning: implicit declaration of function ‘av_resample_compensate’; did you mean ‘av_get_sample_fmt_name’? [-Wimplicit-function-declaration] av_resample_compensate(rate->context, ^~~~~~~~~~~~~~~~~~~~~~ av_get_sample_fmt_name /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -g -I/usr/include/alsa -DAVCODEC_HEADER="<libavcodec/avcodec.h>" -march=native -O2 -pipe -module -avoid-version -export-dynamic -no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -o libasound_module_rate_lavcrate.la -rpath /usr/lib64/alsa-lib rate_lavcrate.lo -lasound -lavcodec -lavutil -lasound libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/rate_lavcrate.o -Wl,--as-needed -lavcodec -lavutil -lasound -g -march=native -O2 -Wl,--no-undefined -Wl,-O1 -Wl,-soname -Wl,libasound_module_rate_lavcrate.so -o .libs/libasound_module_rate_lavcrate.so .libs/rate_lavcrate.o: In function `pcm_src_free': /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:70: undefined reference to `av_resample_close' .libs/rate_lavcrate.o: In function `pcm_src_init': /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:96: undefined reference to `av_resample_init' .libs/rate_lavcrate.o: In function `pcm_src_convert_s16': /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:186: undefined reference to `av_resample' /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate' /tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:423: libasound_module_rate_lavcrate.la] Error 1 make[2]: Leaving directory '/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_64.amd64/rate-lavc' make[1]: *** [Makefile:434: all-recursive] Error 1 make[1]: Leaving directory '/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_64.amd64' make: *** [Makefile:366: all] Error 2 * ERROR: media-plugins/alsa-plugins-1.1.6::gentoo failed (compile phase): * emake failed
I just ran into the same bug. media-libs/alsa-plugins is getting pulled in when I run `emerge @preserved-rebuild`. Turning off the ffmpeg USE flag seems to let it get past this error.
Created attachment 558434 [details] emerge --info
I'm having the same issue with alsa-plugins 1.1.6 not compiling. I keep getting a POST data truncated when I try to attach my build log (32k in size). Here is the tail end of it --- av_resample_close(rate->context); ^~~~~~~~~~~~~~~~~ av_frame_clone /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c: In function ‘pcm_src_init’: /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:96:19: warning: implicit declaration of function ‘av_resample_init’; did you mean ‘av_get_sample_fmt’? [-Wimplicit-function-declaration] rate->context = av_resample_init(info->out.rate, info->in.rate, ^~~~~~~~~~~~~~~~ av_get_sample_fmt /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:96:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion] rate->context = av_resample_init(info->out.rate, info->in.rate, ^ /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c: In function ‘pcm_src_convert_s16’: /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:186:9: warning: implicit declaration of function ‘av_resample’; did you mean ‘av_rescale’? [-Wimplicit-function-declaration] ret = av_resample(rate->context, rate->out[i], ^~~~~~~~~~~ av_rescale /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194:2: warning: implicit declaration of function ‘av_resample_compensate’; did you mean ‘av_get_sample_fmt_name’? [-Wimplicit-function-declaration] av_resample_compensate(rate->context, ^~~~~~~~~~~~~~~~~~~~~~ av_get_sample_fmt_name /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -m32 -Wall -g -I/usr/include/alsa -DAVCODEC_HEADER="<libavcodec/avcodec.h>" -O3 -pipe -march=native -module -avoid-version -export-dynamic -no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -o libasound_module_rate_lavcrate.la -rpath /usr/lib32/alsa-lib rate_lavcrate.lo -lasound -lavcodec -lavutil -lasound libtool: link: x86_64-pc-linux-gnu-gcc -m32 -shared -fPIC -DPIC .libs/rate_lavcrate.o -Wl,--as-needed -lavcodec -lavutil -lasound -m32 -g -O3 -march=native -Wl,--no-undefined -Wl,-O1 -Wl,-soname -Wl,libasound_module_rate_lavcrate.so -o .libs/libasound_module_rate_lavcrate.so .libs/rate_lavcrate.o: In function `pcm_src_free': /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:70: undefined reference to `av_resample_close' .libs/rate_lavcrate.o: In function `pcm_src_convert_s16': /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:186: undefined reference to `av_resample' /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate' /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate' .libs/rate_lavcrate.o: In function `pcm_src_free': /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:70: undefined reference to `av_resample_close' /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:70: undefined reference to `av_resample_close' .libs/rate_lavcrate.o: In function `pcm_src_init': /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:96: undefined reference to `av_resample_init' .libs/rate_lavcrate.o: In function `pcm_src_free': /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:70: undefined reference to `av_resample_close' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:423: libasound_module_rate_lavcrate.la] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_32.x86/rate-lavc' make[1]: *** [Makefile:434: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_32.x86' make: *** [Makefile:366: all] Error 2 * ERROR: media-plugins/alsa-plugins-1.1.6::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-plugins/alsa-plugins-1.1.6::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-plugins/alsa-plugins-1.1.6::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/temp/environment'. * Working directory: '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_32.x86' * S: '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6' >>> Failed to emerge media-plugins/alsa-plugins-1.1.6, Log file: >>> '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/temp/build.log'
I have the same issue and it was caused by upgrading ffmpeg to 4.1. Unmasking the two packages below will allow you to build it with ffmpeg 4.1: media-libs/alsa-lib-1.1.7::gentoo media-plugins/alsa-plugins-1.1.7-r1::gentoo So the following line should be changed to: > Require media-video/ffmpeg<4 https://gitweb.gentoo.org/repo/gentoo.git/tree/media-plugins/alsa-plugins/alsa-plugins-1.1.6.ebuild?id=7235ad145cb9ba7af7b42d724c0dc6ca1c2482df#n20
*** This bug has been marked as a duplicate of bug 619486 ***