Closed cho-m closed 3 years ago
Do you have a link to your linux environment. I'll try and reproduce and fix.
Currently this builds on travis-ci.com (Linux version) which is where I test Linux builds.
This is on Homebrew's CI node using GitHub actions
ubuntu-latest
GitHub VM, but uses a Docker container for build ghcr.io/homebrew/ubuntu16.04:master (should be possible to locally run the image)./home/linuxbrew/.linuxbrew
rather than /usr/local
CPU: dual-core 64-bit skylake
Clang: N/A
Git: 2.32.0 => /usr/bin/git
Curl: 7.47.0 => /usr/bin/curl
Kernel: Linux 5.8.0-1036-azure x86_64 GNU/Linux
OS: Ubuntu 16.04.7 LTS (xenial)
Host glibc: 2.23
/usr/bin/gcc: 5.4.0
gcc
, gcc@10
, ..., llvm
, llvm@11
, ...).I have a fork of the homebrew-core. Are there instructions on how to get this build working using "Github Workflow"
I have pushed an update that I think should fix your issues.
Not sure how to get the Workflows actions to build it.
I saw your PR and labeled it for Linux CI run.
I am not aware of how to get CI running in a fork. I also had some issues trying this due to some brew test-bot
failures. Probably need Homebrew maintainer who worked on the CI to comment.
There is still an issue. I need to tinker with the autotools files to prevent a check for python (when vera is not being used).
Sure, no rush.
We had worked around that by just adding Python as build dependency in https://github.com/Homebrew/homebrew-core/pull/81472/files, e.g.
on_linux do
depends_on "python@3.9" => :build
end
...
def install
ENV["COV"] = "gcov"
on_linux do
ENV["PYTHON"] = Formula["python@3.9"].opt_bin/"python3"
end
If fixed most issues. The one that remains is because you are trying to compile with C++11.
There is a minimum requirement of C++17. Is there a way to express this in the formula file?
You need to disable the default compiler (gcc 5) and add dependency to another compiler. For Linux, we usually try latest gcc
(11).
on_linux do
depends_on "gcc" # uses C++17
end
fails_with gcc: "5"
Latest update now seems to build on all environments.
Thanks for the support. Closing as issue is resolved and bottle is now built for Linux.
Describe the bug Issue is building ThorsSerializer for Linux as part of Homebrew/Linuxbrew distribution.
Attempt here: https://github.com/Homebrew/homebrew-core/pull/81472
Trying with GCC-11 fails on coverage test linking BsonPrinter:
Also, GCC doesn't like copyright character and we needed to strip that out of file:
We also tried with LLVM-12, but it also had issues.
Expected behavior Successfully build for Linux via Linuxbrew since it is documented installation method in repo. We are also trying to merge Linuxbrew into Homebrew and want to bottle (pre-build) everything for Linux.
Environment: GitHub CI: https://github.com/Homebrew/homebrew-core/runs/3111009018
Can't run command, but general details are:
This is a Docker container running on GitHub ubuntu-latest
Running Homebrew/Linuxbrew GCC-11 https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcc.rb
Additional context