Skip to content
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

Adding support for Linux s390x #1891

Closed
wants to merge 5 commits into from

Conversation

Nayana-ibm
Copy link

We have added support for Linux s390x platform in Bazel.

@bazel-io
Copy link
Member

bazel-io commented Oct 6, 2016

Can one of the admins verify this patch?

@dslomov dslomov self-assigned this Oct 6, 2016
@Nayana-ibm Nayana-ibm mentioned this pull request Oct 6, 2016
@Nayana-ibm
Copy link
Author

We have added support for Linux s390x platform in Bazel.
We are following the plan from #1781 (comment)

Below note needs to be added in Readme:

Compiling Bazel from source on s390x platform:

For building Bazel on s390x platform, Protobuf and gRPC-java executable are needed.
Please refer Protobuf and gRPC-java for building respective executable from source for s390x.

  1. Copy protobuf executable from protobuf/src/protoc tobazel/third_party/protobuf/protoc-linux-s390x_64.exe and bazel/third_party/protobuf/3.0.0/protoc-linux-s390x_64.exe
  2. Copy gRPC-java executable from grpc-java/compiler/build/artifacts/java_plugin/protoc-gen-grpc-java.exe to bazel/third_party/grpc/protoc-gen-grpc-java-0.15.0-linux-s390x_64.exe

Could you please review changes?

Copy link
Contributor

@dslomov dslomov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to do the changes to documentation and submit it as a separate PR or as part of this PR, whatever works for you

@@ -128,6 +128,24 @@ inline Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr,
return old_value;
}

inline Atomic64 NoBarrier_AtomicIncrement(volatile Atomic64* ptr,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We intend third_party/protobuf/<version> to be the exact copy of protobuf's directory (see https://github.com/bazelbuild/bazel/blob/master/third_party/protobuf/README.md). So these files should not be changed as part of ths PR

@@ -128,6 +128,24 @@ inline Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr,
return old_value;
}

inline Atomic64 NoBarrier_AtomicIncrement(volatile Atomic64* ptr,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dslomov We have reverted changes from above two files.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have also updated the documentation for s390x users.

Nayana-ibm and others added 4 commits October 7, 2016 10:34
Updated README to add the proto compiler for Linux s390x.
Updating README to add gRPC Java plugin for Linux s390x.
Copy link
Contributor

@dslomov dslomov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this

@bazel-io bazel-io closed this in 155bd64 Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants