I'm trying to install hack on my mac using:
brew tap hhvm/hhvm
brew install hhvm
But there is an error:
==> Downloading https://dl.hhvm.com/source/hhvm-4.159.0.tar.gz
Already downloaded: /Users/yunchenliu/Library/Caches/Homebrew/downloads/9f3bb772946eb6414a33caaa1e22184c29cdd8c69efa1d5b5b68f7275ca1225f--hhvm-4.159.0.tar.gz
==> Installing hhvm-4.159 from hhvm/hhvm
==> cmake -DCMAKE_INSTALL_SYSCONFDIR=/opt/homebrew/etc -DDEFAULT_CONFIG_DIR=/opt/homebrew/etc/hhvm -DSYSTEM_PCRE_HAS_JIT=0 -DENABLE_MCROUTER=OFF -DENABLE_EXTENSION_MCROUTER=OFF -DENABLE_EXTENSION_IMAP=OFF -DMYSQL
==> make -j1 hack_rust_ffi_bridge_targets
Last 15 lines from /Users/yunchenliu/Library/Logs/Homebrew/hhvm-4.159/02.make:
"_sqlite3_backup_pagecount", referenced from:
rusqlite::backup::Backup::progress::h93278a90a6b51c36 in librusqlite-00a8c3b5c05ca5e6.rlib(rusqlite-00a8c3b5c05ca5e6.rusqlite.7f871c8f-cgu.12.rcgu.o)
"_sqlite3_backup_init", referenced from:
rusqlite::backup::Backup::new_with_names::h49fd44cb204e52d2 in librusqlite-00a8c3b5c05ca5e6.rlib(rusqlite-00a8c3b5c05ca5e6.rusqlite.7f871c8f-cgu.12.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `hack_macro` due to previous error
error: build failed
cp: /tmp/hhvm-4.159-20220429-21361-1x6cjav/hhvm-4.159.0/hphp/hack/_build/rust_ffi/hphp/hack/src/hackc/ffi_bridge/release/libcompiler_ffi.a: No such file or directory
make[3]: *** [hphp/hack/_build/rust_ffi/hphp/hack/src/hackc/ffi_bridge/compiler_ffi.cpp] Error 1
make[2]: *** [hphp/hack/CMakeFiles/compiler_cxx.dir/all] Error 2
make[1]: *** [hphp/hack/CMakeFiles/hack_rust_ffi_bridge_targets.dir/rule] Error 2
make: *** [hack_rust_ffi_bridge_targets] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/hhvm/homebrew-hhvm/issues
I didn't find the solution and could someone help me? Thanks so much.
Related
Running mac osx 10.14.6 and have previously successfully built 3.0.10 and 3.0.11. Trying to build VLC 3.0.12 & 3.0.14 from source downloaded from here: http://www.videolan.org/vlc/download-sources.html
and using recommended build from here: https://wiki.videolan.org/MacOSCompile/ AND using the recommended:
../extras/package/macosx/build.sh -c
Build runs for about 20 minutes and then stops here (snip of output):
CCLD libprefetch_plugin.la
CCLD libhds_plugin.la
CCLD librecord_plugin.la
ld: library not found for -lzstd
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libarchive_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
mysystem:build xx$
What am I missing or doing wrong?
Note: in previous builds I could find a cmake/Utilities/cmzstd/lib directory in vlc-3.0.x/extras/tools that had various zstd files however it is not there in either 3.0.12 or 3.0.14 - only a cmake-enable-ALPN-support-on-macOS-109.14.patch file.
Where do I find zstd? Thanks.
Seems the issue is related to how macOS and packagers (homebrew, etc.) load components. macOS provides a compiled version of libarchive but no headers, so you are unable in trying to compile. You will either need to pass the location of your libarchive respository with headers via your build script or set an environment variable telling the compiler or linker where to look for them. Perhaps someone more familiar with your VLC package can weigh in.
I`m trying to install filosottile/musl-cross/musl-cross via brew and facing an error at this stage:
==> /opt/homebrew/opt/make/bin/gmake install TARGET=x86_64-linux-musl
Last 15 lines from /Users/galshalom/Library/Logs/Homebrew/musl-cross/01.gmake:
"_host_hooks", referenced from:
gt_pch_save(__sFILE*) in libbackend.a(ggc-common.o)
gt_pch_restore(__sFILE*) in libbackend.a(ggc-common.o)
toplev::main(int, char**) in libbackend.a(toplev.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [../../src_gcc/gcc/lto/Make-lang.in:81: lto1] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm gcc.pod
gmake[3]: Leaving directory '/private/tmp/musl-cross-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl/obj_gcc/gcc'
gmake[2]: *** [Makefile:4361: all-gcc] Error 2
gmake[2]: Leaving directory '/private/tmp/musl-cross-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl/obj_gcc'
gmake[1]: *** [Makefile:222: obj_gcc/gcc/.lc_built] Error 2
gmake[1]: Leaving directory '/private/tmp/musl-cross-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl'
gmake: *** [Makefile:183: install] Error 2
Cant find appropriate solution on web.
brew edit musl-cross
patch do # Apple Silicon build fix for gcc-10.3.0 and below
url "https://github.com/richfelker/musl-cross-make/commit/3dd050fa.patch?full_index=1"
sha256 "6ecb5d306b2307e058ec0538862bbddec9fcb7a1c4f9cae5c55d29fb39dc34d8"
end
brew reinstall musl-cross
I am using macOS 10.12.3.
Yesterday I successfully installed thrift but it could not work correctly with python. So I re-make it today and get this err. Could someone tell me what's wrong. Thx
Making all in perl
../../compiler/cpp/thrift --gen perl ../../test/ThriftTest.thrift
dyld: Symbol not found: _GENERAL_NAME_free
Referenced from: /Users/sara/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.dylib
Expected in: flat namespace
in /Users/sara/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.dylib
make[3]: *** [gen-perl/ThriftTest/Constants.pm] Abort trap: 6
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I have had the same problem, but now I solve it. when you had the error, I think /usr/local/bin/thrift is already existed in you macOS. Then run
$ sudo chmod -R 777 /usr/local/include/thrift/
$ brew link --overwrite thrift
then you will find the command /usr/local/bin/thrift is ok.
When I tried to install Octave (brew install octave --with-gui --HEAD) on OS X 10.11.2 I got this error:
==> ./configure --prefix=/usr/local/Cellar/octave/HEAD --enable-dependency-tracking --enable-link-al
==> make all DOC_TARGETS=
Last 15 lines from /Users/macbookpro/Library/Logs/Homebrew/octave/03.make:
GEN scripts/plot/util/gnuplot_binary.m
GEN doc/interpreter/contributors.texi
GEN etc/icons/octave-logo-256.png
./build-aux/missing: line 81: rsvg-convert: command not found
WARNING: 'rsvg-convert' is missing on your system.
You might have modified some files without having the proper
tools for further handling them. Check the 'README' file, it
often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in
case some other package contains this missing 'rsvg-convert' program.
make[2]: *** [etc/icons/octave-logo-256.png] Error 127
make[2]: *** Waiting for unfinished jobs....
Updating ./doc/liboctave/version-liboctave.texi
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Just install this lib:
brew install librsvg
I updated my mac to mountain lion. Now when i try to install ruby rvm install 1.9.3 i am getting this error
linking shared-object tcltklib.bundle
ld: in /usr/local/lib/libbz2.1.0.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64) for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [../../.ext/x86_64-darwin12.0.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2
How I cane update libbz2 to correct architecture?
Update Xcode (to 4.4). Once done, install Command Line Tools from Xcode => Preferences => Downloads => Command Line Tools. Then try installing ruby and you'll be good.