Comments (7)
I think facebook/hhvm@1d99b20 did not change FindLibElf.cmake
. We need to apply similar approach to FindLibElf.cmake
from homebrew-hhvm.
We currently use FindLibElf.cmake
and FindLibDwarf.cmake
which use a specified list of paths instead of using pkg-config. While there is a copyright notice, it only mentions the original author, not project, so I can't find a newer version or history to understand why pkg-config is not being used here - or if it would be safe to switch.
It would be good to use pkg-config if possible, but testing this on all supported platforms would be very time consuming (there are 22 libraries with a similar setup which may also give you problems if this is resolved) - and it's unlikely we'll be able to spare that time soon.
That said, these two libraries check the CPATH
and LIBRARY_PATH
variables for includes and libraries respectively; if set to the paths in your homebrew prefix, you may be able to build, if there are not other dependencies with similar problems that do not respect those paths. If successful, the build may take several hours (depending on your computer) and will need a lot of RAM - 8GB may be insufficient.
from homebrew-hhvm.
Is this issue fixed by facebook/hhvm@1d99b20 ?
from homebrew-hhvm.
Yep
It would be good to use pkg-config if possible, but testing this on all supported platforms would be very time consuming
Ended up having to do this
from homebrew-hhvm.
It is not really fixed according to my test
==> Installing hhvm/hhvm/hhvm-nightly
==> cmake -DCMAKE_INSTALL_SYSCONFDIR=/Users/atry/homebrew/etc -DDEFAULT_CONFIG_DIR=/Users/atry/homebrew/etc/hhvm -DSYSTEM_PCRE_HAS_JIT=0 -DENABLE_MCROUTER=OFF -DENABLE_EXTENSION_MCROUTER=OFF -DENABLE_EXTENSION_IMAP=OFF -DMYSQL_UNIX_SOCK_ADDR=/tmp/mysql.sock -DCMAKE_C_FL
Last 15 lines from /Users/atry/Library/Logs/Homebrew/hhvm-nightly/01.cmake:
-- Could NOT find LibElf (missing: LIBELF_INCLUDE_DIRS)
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Failed
CMake Error at /Users/atry/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find LibDwarf (missing: LIBELF_FOUND)
Call Stack (most recent call first):
/Users/atry/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
CMake/FindLibDwarf.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMake/HPHPFindLibs.cmake:259 (find_package)
CMakeLists.txt:79 (include)
-- Configuring incomplete, errors occurred!
See also "/tmp/hhvm-nightly-20220202-9823-23ujv6/hhvm-nightly-2022.01.29/CMakeFiles/CMakeOutput.log".
See also "/tmp/hhvm-nightly-20220202-9823-23ujv6/hhvm-nightly-2022.01.29/CMakeFiles/CMakeError.log".
Do not report this issue to Homebrew/brew or Homebrew/core!
from homebrew-hhvm.
Have you installed libdwarf and libelf with brew? See https://docs.hhvm.com/hhvm/installation/building-from-source#installing-build-dependencies__homebrew
from homebrew-hhvm.
Also, see https://docs.hhvm.com/hhvm/installation/building-from-source#building-hhvm__macos for extra variables that need setting.
Though, in general, hhvm's mac build is only tested with homebrew using it's default paths (as that is required for the binaries to be reusable)
from homebrew-hhvm.
Related Issues (20)
- nightlies broken by implicit dependency on low-ptr-def.h
- segfaults with latest PCRE
- brew updated boost, new version gives linker errors. Rebuild needed
- HHVM 3.24 removed HOT 4
- HHVM 4.4 is not in formula directory
- (postgres) configure: error: header file <perl.h> is required for Perl HOT 1
- Broken Night Build: Merge Conflict
- [REQ] Fresh bottle for [email protected] HOT 4
- Drop support for MacOS High Sierra, add support for MacOS Catalina HOT 1
- Detect when rebuilds are needed
- Builds broken by MacOS SDK update HOT 4
- Brew upgrade leads to confusing hhvm state HOT 4
- HHVM Compile Fail: imagemagick/gd? HOT 1
- failed to install hhvm 4.110 on Mojave HOT 3
- dyld: Symbol not found while installing 3.27-lts on 10.14.6 HOT 3
- Unable to install hhvm using brew install command on ubuntu v22 HOT 2
- Can not find LibNuma when attempting to install into a custom prefix HOT 1
- Install Build Errors on MacOSX12 M1 chip HOT 2
- Error when install hack HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-hhvm.