add support for ppc64le architecture #6
Comments
Okay, so this is not really documented -- but you can build your own, see instructions here -- you'll have to use the xenial image instead of centos7. After that, you just need to build the docker image ( |
Added documentation on the complete build/porting process in 1a23e08. |
The targets requested till date are:
I think it makes sense to add |
I'll be adding a |
I saw the centos7-ppc64le rpm package in https://builds.wkhtmltopdf.org/wkhtmltox-0.12.5-1.centos7.ppc64le.rpm and confirm its works! |
@ananiasfilho: you can build your own packages easily by changing |
@sarahkemp @ananiasfilho: just a heads up, the next release will have the following builds supported:
None of these will be built by default, as it takes 5-6 hours to build each target (as it is done via emulation) -- you should be easily be able to build them on your own once #66 is merged. |
Please see the latest release which has packages for all the targets mentioned above. Please add a comment if you face any problems in using the packages 👍 |
A release candidate for the 0.12.6 release is now available for download, which should contain changes which possibly address this issue. Would appreciate downloading the package and reporting back if any issues are encountered during testing. Assuming all goes well, I plan to release 0.12.6 on the 2-year anniversary of the previous release i.e. June 11, 2020. |
Really appreciate your work on this. I have not had opportunity to try it until tonight because my OS was too far back. Now I am on 20.04 and tried the candidate and unfortunately it looks like the spelling disagreement between ppc64el and ppc64le prevents my installing it. DPKG insists my architecture is ppc64el, which the architecture of the candidate is ppc64le. I tried forcing it, but all of the dependencies have the same issue. |
Hmm, can you do a local build with this patch applied?
|
I wish I could but I don't have the resources. My only server with this architecture is my production LPAR and it is not equipped for docker and vagrant. If I am misunderstanding the capabilites of docker and this could be done on my local machine (not ppc64le/el), I could do that. |
Yeah, the build can be done on your local machine -- it uses qemu to emulate the ppc64le architecture. |
In case it is not apparent, I've never used docker before. I installed Docker for Windows on my local machine. I ran ppc64/ubuntu image privileged with a volume. In the ubuntu image, I installed the prerequisites from the readme, cloned the wkhtmltopdf repo with submodules, patched the file, and I tried to ./build package-docker focal-ppc64el ../wkhtmltopdf but I cannot get past the first docker pull:
The only way I could get dockerd to run on the ubuntu image was to use --iptables-false. I got the same error running 'docker run hello-world' so I know it is something I am doing wrong, but I don't have the context to guess what that is since there is no stderr in the message. |
I haven't tried it on Windows, maybe you should use WSL 2 or an actual Linux machine? Either way, can't really help you troubleshoot docker 🙁 |
I tried on an Ubuntu 16.04.1 machine now.
Unfortunately I don't even know if this is more docker troubleshooting or something that is meaningful to you. Is there any way to build without docker on a machine with the same architecture anymore? The build files I used to make wkhtmltopdf on the production machine before are no longer in the wkhtmltopdf repo in favor of this one. Thank you for your time. |
What's the output of |
You are correct, the kernel did not meet the requirements (I blame the late night). Today I upgraded the OS to 18.04.5. After that, my output is:
|
After my failure on the linux server, I spun up a new Hyper V instance on a Windows server and installed Ubuntu 20.04. I followed the instructions for this repo and your patch and was able to build wkhtmltopdf for focal-ppc64el. It is now running on my ppc64el machine and seems to be working as expected. I really appreciate your help with this issue! |
Thanks to @sarahkemp pointing this out on #6
Thanks for confirming! I've pushed a fix for all Debian/Ubuntu packages. |
Referencing: wkhtmltopdf/wkhtmltopdf#3540
I'd love to see wkhtmltopdf working without all the trouble under Ubuntu on PPC64LE architecture.
The text was updated successfully, but these errors were encountered: