Blacksmoke16 / oq

A performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data.
https://blacksmoke16.github.io/oq/
MIT License
190 stars 15 forks source link

Error with brew install on Windows WSL #38

Closed evanxadkins closed 4 years ago

evanxadkins commented 4 years ago

Running Windows 10 WSLl: Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic

When installing with brew the process fails when attempting to install the dependency crystal:

Last 15 lines from /home/eadkins/.cache/Homebrew/Logs/crystal/03.make:
                 from /home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/Host.h:17,
                 from /home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/ADT/Hashing.h:49,
                 from /home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/ADT/ArrayRef.h:13,
                 from /home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/IR/DIBuilder.h:18,
                 from src/llvm/ext/llvm_ext.cc:1:
/home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/MathExtras.h: In instantiation of 'std::size_t llvm::countLeadingZeros(T, llvm::ZeroBehavior) [with T = unsigned int; std::size_t = long unsigned int]':
/home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/MathExtras.h:540:38:   required from here
/home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/MathExtras.h:190:16: error: 'static_assert' was not declared in this scope
   static_assert(std::numeric_limits<T>::is_integer &&
                ^
/home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/MathExtras.h: In instantiation of 'std::size_t llvm::countLeadingZeros(T, llvm::ZeroBehavior) [with T = long unsigned int; std::size_t = long unsigned int]':
/home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/MathExtras.h:546:38:   required from here
/home/eadkins/.linuxbrew/opt/llvm@8/include/llvm/Support/MathExtras.h:190:16: error: 'static_assert' was not declared in this scope
Makefile:135: recipe for target 'src/llvm/ext/llvm_ext.o' failed
make: *** [src/llvm/ext/llvm_ext.o] Error 1

Installing from source works successfully.

Blacksmoke16 commented 4 years ago

TIL you can use brew on other non mac OS.

Are you able to successfully install crystal itself via brew?

If I had to guess what's happening there isn't a bottle that works with that OS, so it's trying to build from source, which Crystal is required to do so. If you're not able to install Crystal itself then its most likely a Crystal issue. If you can install Crystal itself but not oq, then I messed something up in the formula :p

evanxadkins commented 4 years ago

Thanks for the reply, seems to be an issue with crystal.

Blacksmoke16 commented 4 years ago

@evanxadkins No problem. I'd maybe open an issue on their repo (https://github.com/crystal-lang/crystal) and see if they have any ideas.