-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Portability to RHEL6 (CentOS6, SL6) #1053
Comments
In configure.ac, commented out line 525:
Then the build proceeded further, now failing at:
gcc 4.9.1 considered too old to build this? I'd say that's unreasonable, and should be relaxed. |
Manually removed
So we at the same time ask to fail on any warnings, and have code that does produce warnings. I wonder whether/how this builds for others - are fwrite() attributes on this older distro actually stricter than on newer distros? Anyway, time to remove |
Re: build failure 1, |
|
Removed
and so on. Manually added
100+ MB binaries look pretty ridiculous to me, even if not stripped. Whatever. Now running tests. |
I think neither is perfectly portable. Sure Meanwhile,
|
Definitely not OpenSSL. I still think |
I'd be happy to provide zcash developers with access to the Scientific Linux 6.6 machine I am experimenting on, which already has devtoolset-3 and autotools-latest installed, so that the remaining portability issues (not avoided by installing of these extra software collections) can be resolved in the zcash tree. Then installing devtoolset-3 and autotools-latest may be part of the instructions we'd provide for building zcash on RHEL6-alikes. |
The |
Instructions for those building on RHEL6-alikes now (as tested today with @str4d's standalone-miner branch and with zogminer, but should be same for zcash master and releases):
|
The QT code has been removed so that should no longer be an issue. Could someone try building a recent version on RHEL, first without @solardiz' suggested workarounds and then with each in turn, to see which ones are still necessary? |
In particular, please pay close attention to which packages you needed to install. (I suspect that they will be similar, but not necessarily identical, to the packages for Fedora listed in the 1.0 User Guide.) |
I'm using centos 6.7 and gcc 5.3 but still have the error during the build. In file included from util/env_posix.cc:26:0: |
Follow the operations by @solardiz , I can build and pass full suit test on version 1.0.6. But failed on version 1.0.8 and 1.0.9. And full suit test log of failure is attached. |
We won't be adding support for this version of CentOS |
RHEL6 is still a widely used server distro, but trying to build on Scientific Linux 6.6 (a RHEL6 alike), I ran into the following issues:
Build failure 1: zcutil/fetch-params.sh fails to verify parameter file integrity, as follows:
Checking with strace, I see it is literally trying to open a file named "-":
Editing the offending line from:
to:
or:
fixes the problem. (I prefer the latter version.) Here are the corresponding package versions:
Build failure 2: The next hurdle is libsnark doesn't build with RHEL6's default gcc 4.4.7:
This is can be overcome by issuing:
(indeed with devtoolset-3 installed first) and starting anew. This provides gcc 4.9.1 and other goodies, in a manner standard for these distros. (BTW, where are the instructions on doing an equivalent of "make clean" for the whole tree? zcutil/build.sh appears to only be able of building stuff, not cleaning between different builds.)
Build failure 3: Now the build fails anyway on:
Unfortunately, there's only autoconf 2.63 on this distro, and devtoolset-3 does not provide a replacement. But this repository does:
https://www.softwarecollections.org/en/scls/praiskup/autotools/
Download https://www.softwarecollections.org/en/scls/praiskup/autotools/epel-6-x86_64/download/praiskup-autotools-epel-6-x86_64.noarch.rpm and install it with "rpm -U", then install newer autotools with "yum install autotools-latest", as root indeed. Then, back as the zcash build user, issue:
(from inside the shell that already has devtoolset-3 enabled). This provides autoconf 2.69, and the build continues successfully (I didn't bother to start over this time).
Build failure 4: Finally, this fails on needing Qt5 (RHEL6 normally has Qt4):
I wonder why it needs Qt despite of
--with-gui=no
?There are some instructions on getting Qt5 onto RHEL6'ish distros, but I haven't tried that yet.
Overall, it might be some effort to achieve portability of zcash to RHEL6, so I am not sure if it's something this community will want to do, but some of these issues look like something to fix in zcash regardless (in particular, the shasum incompatibility, and needing Qt even for a GUI-less build).
The text was updated successfully, but these errors were encountered: