Commit Graph

32 Commits

Author SHA1 Message Date
salamaniibm
7ba4a99e00 adding protoc support for s390x 2019-08-30 11:44:43 -07:00
Adam Cozzette
34b64995ac Avoid linking against libatomic when building protoc (#5922)
We ran into problems with precompiled protoc binaries not working on
some systems because of the dependence on a dynamically linked
libatomic. However, I found that linking against libatomic is not
actually necessary in our protoc build environment. Inside configure.ac
there's a test which figures out if we need to pass -latomic, and it
does this by attempting to build a test binary. That binary was failing
to build, but it turns out this was because we need to pass -std=c++11,
not -latomic.

This fixes #5875.
2019-03-25 11:00:19 -07:00
Hao Nguyen
30851ca266
Fix protoc release (#5615)
* Fix protoc release

* Update Dockerfile to include libatomic
2019-01-23 10:55:36 -08:00
Adam Cozzette
6fc2bac3f3 Updated Docker setup to use GCC 4.8
Now that we depend on C++11, we need at least GCC 4.8 instead of 4.7.
This change updates the Docker setup to continue using CentOS 6.6 but
with GCC 4.8.

I also added libm to the whitelist for dynamically linked libraries for
the ARM64 protoc binary.
2018-07-17 16:52:43 -07:00
Feng Xiao
9209a41f82 Add protoc release script for Linux build. 2018-07-15 21:03:55 -07:00
Feng Xiao
474fd3160f Update protoc build scripts.
1. Changed maven script to only do artifact uploading and removed build
script invocation from it. We didn't use maven to invoke the build
script before (we built protoc manually and editted pom.xml to only do
uploading for previous releases), and will not use it in the future (we
will use kokoro to build artifacts).
2. Cleaned up build-protoc.sh and README.md: removed the part about
using maven to build and listed supported platforms explicitly.
2018-07-15 21:03:55 -07:00
nashimus
1f7837a2ab
Additional support for building and deploying ppcle_64 artifacts 2018-07-06 20:03:25 -06:00
pravin-dsilva
36ba04b579 Add support for power ppc64le 2018-03-22 18:55:50 +05:30
Jisi Liu
b879abc811 Supports Arm64 (aarch64) protoc artifacts 2017-11-09 17:16:42 -08:00
Jisi Liu
d909834ec6 static link for 32 bit build as well. 2017-08-15 13:15:37 -07:00
Jisi Liu
f7b3dd4329 Update comments that cross compile is feasible now
Need to install mingw-w64 on linux to cross compile
2017-08-15 13:13:10 -07:00
Jisi Liu
fa086c8a85 First try static linking pthread 2017-08-15 12:27:46 -07:00
Jisi Liu
1b1a8f4017 Fix build protoc script for windows 2016-07-28 19:07:54 +00:00
Jisi Liu
7c9c314ca7 fix comments. 2016-07-26 16:51:30 -07:00
Jisi Liu
54feb9ac24 Fix the script comments. 2016-07-26 16:35:28 -07:00
Jisi Liu
b1aac0b4ed Make protoc-artifacts able to build plugin. 2016-07-26 16:34:30 -07:00
Kun Zhang
28cb77f39e Fine-tune build scripts and better documentation.
"make google/protobuf/stubs/pbconfig.h" was added in hope of addressing
the issue that when you "make protoc" from a freshly checked out
project, pbconfig.h will be reported missing. However, the trick doesn't
seem to work. Instead, add instructions in the document to work the issue
around.

Also document why MSYS2 cannot be used for publishing protoc.
2016-05-11 16:18:26 -07:00
Kun Zhang
90a7ed6fcc A few fix-ups.
1. make google/protobuf/stubs/pbconfig.h before making protoc, otherwise it
won't build a freshly checked-out code.
2. Document the build environments that have been tested to work.
3. Add support for MINGW64
2015-04-16 17:56:12 -07:00
Kun Zhang
1c12612bad Strip Mac artifacts 2015-04-08 10:39:21 -07:00
Kun Zhang
62903ec075 Make the osx binary compatible with 10.7 and later 2015-04-08 00:14:36 -07:00
Kun Zhang
5c265faedb Fix osx dependency check. otool prints the file name in the first line. Should skip it 2015-04-07 21:06:37 -07:00
Kun Zhang
6f2bc19bb3 Add cross-compilation for Windows on Linux using MinGW. Check library dependencies of artifact 2015-04-07 20:43:20 -07:00
Kun Zhang
c5a2a7c3db Process to deploy artifacts for multiple platforms into a single
release.

- Do not close the staging repository automatically
- Added staging.repository property
- Updated README with instructions for deployment
- Fix building 32-bit Mac artifact
2015-04-06 17:36:33 -07:00
Kun Zhang
b00a5d7ee0 Document more about cross-compilation; Post-build check for the actual arch of the artifact 2015-04-02 13:14:29 -07:00
Kun Zhang
9a8bae72ab Guard cd path with quotes 2015-04-02 10:25:02 -07:00
Kun Zhang
87b85019e6 Make it work on Mac 2015-04-01 18:03:23 -07:00
Kun Zhang
c8eda8e9d8 Run make protoc(.exe) instead of just make, because the latter fails on Cygwin with mingw gcc; build-protoc.sh works under Cygwin; build-protoc.sh will use the --host parameter consistent with what os-maven-plugin has detected 2015-04-01 16:23:15 -07:00
Kun Zhang
ae9177d645 Switch from Gradle to Maven. 2015-03-31 18:26:28 -07:00
Kun Zhang
e2f858574b Make clean before making 2015-03-31 16:59:33 -07:00
Kun Zhang
e4f1f93313 Stop calling strip, pass -s to linker instead 2015-03-31 16:28:57 -07:00
Kun Zhang
36093ca45e Tweak flags to make statically-linked binary under Cygwin 2015-03-31 15:46:40 -07:00
zhangkun83
488162db1e Gradle script to publish protoc binaries 2015-03-25 16:07:50 -07:00