How to troubleshoot this error? ("make check" failed when installing libunistring)

(axzxc1236) #1

I’m trying to install ffmpeg on my machine, one of the dependencies is libunistring, the error message isn’t really helpful.

The following is the error message I got.

==> make check
Last 15 lines from /home/control/.cache/Homebrew/Logs/libunistring/03.make:
make[5]: Leaving directory '/tmp/libunistring-20190502-5033-1tu7v3a/libunistring-0.9.10/tests'
Makefile:10224: recipe for target 'check-TESTS' failed
make[4]: *** [check-TESTS] Error 2
make[4]: Leaving directory '/tmp/libunistring-20190502-5033-1tu7v3a/libunistring-0.9.10/tests'
Makefile:13899: recipe for target 'check-am' failed
make[3]: *** [check-am] Error 2
make[3]: Leaving directory '/tmp/libunistring-20190502-5033-1tu7v3a/libunistring-0.9.10/tests'
Makefile:10011: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory '/tmp/libunistring-20190502-5033-1tu7v3a/libunistring-0.9.10/tests'
Makefile:13902: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory '/tmp/libunistring-20190502-5033-1tu7v3a/libunistring-0.9.10/tests'
Makefile:1559: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

And then I checked “03.make” file, but in the log it tells me “See tests/test-suite.log”, I can’t find test-suite.log anywhere (I used find command to try to find it but it must be in the tmp folder that’s removed.)

Is there something I can do to obtain that test-suite.log?

Full 03.make file: https://gist.githubusercontent.com/axzxc1236/45d10178613c1787e91bb2289ab420cf/raw/1704cd2ed9324bfc44bfbb75466fd6b662dc5cf2/03.make

(Shaun Jackman) #2

libunistring has a portable bottle, so there’s no need to compile it from source. Try brew update && brew install libunistring which should pour the precompiled bottle.

(axzxc1236) #3

My computer is a ARM single board computer and the bottle you mentioned is for “x86_64_linux”, so I have to compile it.

(Shaun Jackman) #4

There’s one test failure FAIL: test-thread_create. If you’re able to reproduce the test failure outside of Linuxbrew, report it to the upstream developers. To work around the test failure brew edit libunistring and delete or comment out the line system "make", "check".

(axzxc1236) #5

Looks like it isn’t linuxbrew’s bug, it’s in Ubuntu 18.04 itself.

From what I gathered from test-suite.log, I am able to find this thread.

https://bugs.launchpad.net/ubuntu/+source/libunistring/+bug/1813587

I don’t have enough knowledge to understand what the thread is talking about…

Edit: I also tried to change libunistring formula to get the source of “libunistring 0.9.9-0ubuntu2” which is suppose to have this issue fixed…but no, I still have that issue, I’m out of clues.

Edit2: I guess this is the only way I can get up-to-date ffmpeg on my computer, I downloaded static binary for armhf , extracted it to /home/control/ffmpeg-4.1.3-armhf-static/, and added “export PATH=$PATH:/home/control/ffmpeg-4.1.3-armhf-static” to the end of ~/.profile

(Shaun Jackman) #6

Try…

brew edit libunistring
# delete or comment out the line: system "make", "check"
HOMEBREW_NO_AUTO_UPDATE=1 brew install libunistring
(axzxc1236) #7

I don’t know if I should open another thread or not.

So I get libunistring installed, now I’m stuck at another dependency. (gobject-introspection)

compile failed because it cannot find “libpcre.so.1”, which is installed by brew and located at “/home/linuxbrew/.linuxbrew/Cellar/pcre/8.43/lib/libpcre.so.1” and “/home/linuxbrew/.linuxbrew/lib/libpcre.so.1”.

I tried to Google a solution, tried commands (mentioned in https://github.com/facebook/react-native/issues/6777 )but it doesn’t help.

Below is the terminal output when I tried to install gobject-introspection:

==> Downloading https://download.gnome.org/sources/gobject-introspection/1.60/go
Already downloaded: /home/control/.cache/Homebrew/downloads/b16353530b164701a91309d20465c471c057ae22cd42ba32f2092f1e464a7eb0--gobject-introspection-1.60.1.tar.xz
==> ./configure --prefix=/home/linuxbrew/.linuxbrew/Cellar/gobject-introspection
==> make
Last 15 lines from /home/control/.cache/Homebrew/Logs/gobject-introspection/02.make:
  GICOMP   gir/fontconfig-2.0.gir
  GICOMP   gir/DBus-1.0.gir
/tmp/gobject-introspection-20190503-19568-1x2atej/gobject-introspection-1.60.1/.libs/g-ir-compiler: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Makefile:3904: recipe for target 'gir/fontconfig-2.0.typelib' failed
make[2]: *** [gir/fontconfig-2.0.typelib] Error 127
make[2]: *** Waiting for unfinished jobs....
/tmp/gobject-introspection-20190503-19568-1x2atej/gobject-introspection-1.60.1/.libs/g-ir-compiler: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Makefile:3904: recipe for target 'gir/DBus-1.0.typelib' failed
make[2]: *** [gir/DBus-1.0.typelib] Error 127
make[2]: Leaving directory '/tmp/gobject-introspection-20190503-19568-1x2atej/gobject-introspection-1.60.1'
Makefile:3042: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/gobject-introspection-20190503-19568-1x2atej/gobject-introspection-1.60.1'
Makefile:1621: recipe for target 'all' failed
make: *** [all] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting