-
Notifications
You must be signed in to change notification settings - Fork 120
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
ghostz: replace gcc with libomp #1140
Conversation
There's https://github.com/akiyamalab/ghostz but it doesn't seem to be updated to the latest version (akiyamalab/ghostz#6) https://web.archive.org/web/20190501080707/http://www.bi.cs.titech.ac.jp/ghostz/history
|
$ curl -s https://www.bi.cs.titech.ac.jp/ghostz/releases/ghostz-1.0.2.tar.gz | tar t | head -n3
ghostz-1.0.2/
ghostz-1.0.2/LICENSE
ghostz-1.0.2/Makefile Works for me. Was it a transient network failure? I triggered a re-run of CI. |
Huh okay, I'll use this opportunity to archive it on archive.org |
I probably wouldn't bother for the first such transient failure, but thanks all the same! |
Formula/ghostz.rb
Outdated
|
||
def install | ||
if OS.mac? | ||
ENV.cxx11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the error message without this line? I'm still curious what it actually does. I thought that -std=c++11
was the default for most modern compilers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ext/seg/src/seg.cpp:424:18: error: use of overloaded operator '==' is ambiguous (with operand types 'std::shared_ptr<SeqmentType>' and 'long')
if (temp->next == NULL) {
~~~~~~~~~~ ^ ~~~~
I kinda just threw in ENV.cxx11
to see if it would fix the error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change NULL
to nullptr
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda just threw in ENV.cxx11 to see if it would fix the error.
Did it fix the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda just threw in ENV.cxx11 to see if it would fix the error.
Did it fix the error?
Yeah
Change
NULL
tonullptr
.
That worked 🤔
"-fopenmp", | ||
"-L#{Formula["libomp"].opt_lib} -lomp" | ||
inreplace Dir["**/*.{cpp,h}"] do |s| | ||
s.gsub! "#include <tr1/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😬 TR1. Yikes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
brew install --build-from-source FORMULA
, whereFORMULA
is the name of the formula you're submitting?brew audit --strict FORMULA
(after doingbrew install FORMULA
)?libomp
might be required for Linux too; I'm not sure