-
Notifications
You must be signed in to change notification settings - Fork 528
Fix zeppelin build on ppc64le - JIRA BIGTOP-3560 #813
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
Conversation
| // Link other (system) libraries dynamically. | ||
| // Clang under OSX doesn't support these options. | ||
| linker.args "-Wl,-Bstatic", "-lprotoc", "-lprotobuf", "-static-libgcc", | ||
| - "-static-libstdc++", |
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.
Instead of removing this, adding libstdc++-static to the packages to be installed seemed to resolve the compiling issue on CentOS 7.
sekikn@b94539c#diff-9337fb34935804ab7b56cd89ae94e14491ad4c64804daa9b1843eeec336772edR67
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.
Not sure that would work on Ubuntu. But the fix is a backport of an upstream patch grpc/grpc-java#8141
|
|
||
| exec { "build grpc-java ${grpc_version}": | ||
| cwd => "/usr/src/grpc-java-${grpc_version}", | ||
| command => "/usr/bin/patch -p1 < grpc-java-${grpc_version}-add-support-for-ppc64le.patch && export LDFLAGS=-L/${proto_home}/lib && export CXXFLAGS=-I/${proto_home}/include && export LD_LIBRARY_PATH=/${proto_home}/lib && cd compiler && ../gradlew java_pluginExecutable -PskipAndroid=true", |
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 think setting environment variables in the environment attribute is better for code simplicity.
sekikn@b94539c#diff-f2963d87c19d71d34863fb0039c7b3d3d0e3699b77bfd7bd57009ca568f51da6R78
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.
Thanks, I am not a PP expert. My first time, I used https://github.com/apache/bigtop/blob/master/bigtop_toolchain/manifests/gradle.pp as a guide. Let me know if you need me to change it.
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.
oh got it:
environment => ['CXXFLAGS=-I/usr/local/protobuf-3.5.1.1/include', 'LDFLAGS=-L/usr/local/protobuf-3.5.1.1/lib'],
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.
Hi @sekikn, were you able to try to run the PR with all distros? If not, let me know. I'll try to do it over the weekend. Thanks
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.
@afsanjar Sorry, I couldn't have enough time to do it. It's really helpful if you could try it on this weekend!
|
Hi @afsanjar, thank you so much for working on this! I've also tried this issue, so let me share my findings in addition to the comments above.
|
|
@afsanjar I've just tried the current PR and found two problems.
Without the problems above, I succeeded in building Zeppelin on CentOS 8. Would you update the PR? |
|
Or, if it's OK with you, I can merge the current PR since it works with CentOS 8 (and probably all of other distros except for CentOS 7 and Debian 10) and address the remaining issues as follow-up. |
|
Hi @sekikn, I fixed those issues (i.e., debain10 with JAVA_HOME issue) last weekend and merged your fixes zeppelin-web (i.e., root-access ). But have been swapped. I'll merge the fixes this weekend, is that okay? |
|
done |
|
Great, thanks for the update! I confirmed the Debian 10 problem was fixed with the latest commit. I think the CentOS 7 issue still remains, right? Would you add that commit to the PR too? |
|
done |
|
+1, confirmed the build on CentOS 7 also succeeded. Thanks a lot @afsanjar! |
(cherry picked from commit 84da675)
|
Merged into branch-3.0 and master. |
|
thanks @sekikn . you did most of the work :) |
https://issues.apache.org/jira/browse/BIGTOP-3560