rdp/ffmpeg-windows-build-helpers

libsndfile fails to build on Ubuntu 20.04 with WSL

BeyondVertical opened this issue · 15 comments

make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'

Making /home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git as $ PATH=/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin:$PATH make  -j 32

touch src/test_endswap.def
touch tests/write_read_test.def
touch tests/pcm_test.def
touch tests/header_test.def
touch tests/utils.def
touch tests/scale_clip_test.def
touch tests/pipe_test.def
touch tests/rdwr_test.def
touch tests/floating_point_test.def
touch tests/benchmark.def
make  src/test_endswap.def
make  tests/write_read_test.def
make  tests/pcm_test.def
make  tests/header_test.def
make  tests/utils.def
make  tests/scale_clip_test.def
make  tests/pipe_test.def
make  tests/rdwr_test.def
make  tests/floating_point_test.def
make  tests/benchmark.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'src/test_endswap.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./src && autogen --writable test_endswap.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/write_read_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable write_read_test.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/pcm_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable pcm_test.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/header_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable header_test.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/utils.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable utils.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/scale_clip_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable scale_clip_test.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/pipe_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable pipe_test.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/rdwr_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable rdwr_test.def
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/floating_point_test.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: Entering directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
make[1]: 'tests/benchmark.def' is up to date.
make[1]: Leaving directory '/home/USER/ffmpeg/ffmpeg-windows-build-helpers/sandbox/win64/libsndfile_git'
cd ./tests && autogen --writable floating_point_test.def
cd ./tests && autogen --writable benchmark.def
Wrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pairWrong __data_start/_end pair

make: *** [Makefile:4050: tests/write_read_test.c] Aborted (core dumped)
make: *** Waiting for unfinished jobs....
make: *** [Makefile:4050: src/test_endswap.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/pcm_test.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/header_test.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/utils.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/scale_clip_test.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/pipe_test.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/rdwr_test.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/floating_point_test.c] Aborted (core dumped)
make: *** [Makefile:4050: tests/benchmark.c] Aborted (core dumped)
rdp commented

Tried that multiple times. Nuking the dir did not help. :(

I had the same issue.
autogen is the cause of the problem.

It only occurs on Ubuntu 20.04 LTS WSL.
On VMWare, not on WSL, it builds fine. Very weird...

(I'm suspecting WSL's bash compatibility.)

rdp commented

Ok. Cool. Looking forward to a solution. Thanks!

rdp commented

Seems to repro like this, any directory:

$ autogen
Wrong __data_start/_end pair
Aborted (core dumped)
rdp commented

OK appears autogen relies on "boehm gc" library which is apparently still an old version on 20.04. And has this bug [?] Go figure. I'm not sure which version "has it fixed" but the following seems to work around it:

$ sudo dpkg -r --force-depends "libgc1c2" # remove old libgc
$ git clone git://github.com/ivmai/bdwgc.git
$ cd bdwgc
$  ./autogen.sh
$ ./configure --prefix=/usr && make -j # its default is the wrong directory? huh?
$ sudo make install

refs: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/boehm-gc/Makefile https://teratail.com/questions/150464

Yes, the workaround is working for me. The whole compiling process went through fine.

I have tested with the six lines with WSL, It is ok, now, intel qsv is a problem...

P.S After removing wrong package, is running fine, I am now looking next result...

rdp commented

Let's hope this gets fixed upstream someday...come on debian guys...

After entering "cd bdwgc" I get this message:

./autogen.sh: 15: autoreconf: Permission denied.

Do you know what's going on?

rdp commented
rdp commented

Oops my own comment LOL. What if you just run "autoreconf" does it work? Maybe reinstall ubuntu?

The workaround is still necessary on WSL and Ubuntu 20.04 - just tried with a clean install.

ditto