-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pugz 0.8.0 #644
pugz 0.8.0 #644
Conversation
I assume this in OpenMP related; will depend on gcc and see. |
Now with
|
g++-5 -o gunzip -std=c++14 -I. -Icommon -lpthread -Iexternal/type_safe/include -Iexternal/type_safe/external/debug_assert -Wall -Wundef -Wrestrict -Wnull-dereference -Wuseless-cast -Wshadow -Weffc++ -Wpedantic -Wvla -O4 -flto -march=native -mtune=native -g -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H programs/gunzip.o programs/prog_util.o programs/tgetopt.o libdeflate.a -lrt The |
A hack fix for now would be either inreplace "Makefile", "-lpthread", "-pthread" or inreplace "Makefile", "-lrt", "-lpthread -lrt" |
It'd be good to report this bug upstream. It should be easily reproducible on any Ubuntu system. |
@tseemann reported upstream, added hack w/ note - thank you! |
Fails on macos now:
|
The (empty) static lib is now disabled on master. Imho, it is a bit early for a distributed release. But at least this will allow to sort out bugs on macos. I didn't try at all to build on macos, nor do I have the hardware to do so. Edit: I think I got this pass in CircleCI diff --git a/Formula/pugz.rb b/Formula/pugz.rb
index 2b4d60e..94c54c3 100644
--- a/Formula/pugz.rb
+++ b/Formula/pugz.rb
@@ -1,19 +1,12 @@
class Pugz < Formula
desc "Truly parallel gzip decompression"
homepage "https://github.com/Piezoid/pugz"
- url "https://github.com/Piezoid/pugz/archive/recombseq19-demo.tar.gz"
+ url "https://github.com/Piezoid/pugz/archive/97be6839c48878b498112933655506800af3b8e2.tar.gz"
version "0.8.0"
- sha256 "1005519d7ea80c4f59593b0e9bd2e9337c02a2b5c52dfe1732c16f75e4eeecb3"
-
- depends_on "gcc" if OS.mac? # for openmp
-
- fails_with :clang # needs openmp
+ sha256 "e0ec4763a9aa64d7ebf333ec333ba72ebfc5797c051a56fd9dd1ce6fca040dc8"
def install
- # https://github.com/Piezoid/pugz/issues/10
- inreplace "Makefile", "-lrt", "-lpthread -lrt"
-
- system "make", "V=1"
+ system "make", "asserts=0", "V=1"
bin.install "gunzip" => "pugz"
pkgshare.install "example"
doc.install "paper/paper.pdf" Not sure why you put a requirement on gcc for openmp, pugz uses plain pthread and compile fine with clang on linux. |
Thanks for your help, Maël!
In your opinion, should we close this PR, and wait for a stable release? |
I would just add |
@tseemann Could you please remove the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
brew install --build-from-source FORMULA
, whereFORMULA
is the name of the formula you're submitting?brew audit --strict FORMULA
(after doingbrew install FORMULA
)?