Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Error when install hack #153

Open
mygit-cloud opened this issue Apr 30, 2022 · 6 comments
Open

Error when install hack #153

mygit-cloud opened this issue Apr 30, 2022 · 6 comments

Comments

@mygit-cloud
Copy link

mygit-cloud commented Apr 30, 2022

Description

There is an expected error when I install the hack and may I ask for help?

Context and Logs

==> Installing hhvm/hhvm/hhvm-4.159
==> cmake -DCMAKE_INSTALL_SYSCONFDIR=/opt/homebrew/etc -DDEFAULT_CONFIG_DIR=/opt/homebrew/etc/hhvm -DSYSTEM_PCRE_HAS_JIT=0 -DENABLE_MCR
==> 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-86242-10as29n/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

Parameter Value
OS X Version: 12.0.1
Homebrew Version: 3.4.9
Xcode Version: Nan

Output of clang -v:
Nan

Build logs: Link to public gist created with brew gist-logs hhvm
Nan

@Atry
Copy link
Contributor

Atry commented Apr 30, 2022

It looks like you are trying to build HHVM for ARM64 target, which is not supported.

@Vickershhh
Copy link

It looks like you are trying to build HHVM for ARM64 target, which is not supported.

Hi there,

I used following command to install and got same error:

brew tap hhvm/hhvm
brew install hhvm

If HHVM is not for ARM64 target, do I need to other command to install? Thanks

@Atry
Copy link
Contributor

Atry commented May 7, 2022

While I didn't test but some people successfully installed amd64 apps on M1 mac: https://medium.com/mkdir-awesome/how-to-install-x86-64-homebrew-packages-on-apple-m1-macbook-54ba295230f

Something like

arch -x86_64 /usr/local/homebrew/bin/brew tap hhvm/hhvm
arch -x86_64 /usr/local/homebrew/bin/brew install hhvm --force-bottle

@Vickershhh
Copy link

While I didn't test but some people successfully installed amd64 apps on M1 mac: https://medium.com/mkdir-awesome/how-to-install-x86-64-homebrew-packages-on-apple-m1-macbook-54ba295230f

Something like

arch -x86_64 /usr/local/homebrew/bin/brew tap hhvm/hhvm
arch -x86_64 /usr/local/homebrew/bin/brew install hhvm --force-bottle

Thanks Yang. The above command works for me, and hhvm is installed in my machine. However, after installed, I still cannot use the hhvm. Do I need to do something like change Path variable for that?
Screen Shot 2022-05-07 at 10 27 30 AM

Thanks in advance!
Victor

@Atry
Copy link
Contributor

Atry commented May 7, 2022

Maybe remove --force-bottle? Without --force-bottle, it would take hours to compile.

@Vickershhh
Copy link

Maybe remove --force-bottle? Without --force-bottle, it would take hours to compile.

Yeah it took hours to compile if I remove that command. However, I got same outcome as above... Still cannot run hhvm in my terminal.. Any other advices? Thanks.. Sorry for any inconvience..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants