Opened 9 years ago
Closed 7 years ago
#48528 closed defect (fixed)
pdftk: build hangs when running gjc
Reported by: | matteocorti (Matteo Corti) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | elcapitan sierra | Cc: | mww@…, davidcorry, jknockaert (Jasper Knockaert), J.Gilbey@…, captainproton1971 (Captain Proton), jbilmes@…, pinny@…, maehne (Torsten Maehne), jkozdon (Jeremy Kozdon), m7.thon@…, ramundsen85, jjfPCSI1 (Jean-Julien Joseph Fleck), calsaiwing@…, graziosi.angelo@…, nortcele, icemac (Michael Howitz), jrblevin@…, krissen (Kristian Niemi), onurdomanic@…, LeoFCardoso (Leonardo), Ronny.Schuetz@…, dershow, anddam (Andrea D'Amore), steve-macports@…, fabian.egli@…, ryan.d.jamison@…, mark.chilenski@…, splaisan (Stephane Plaisance), leo@…, zwaardmeester@…, m.schwarz@…, david.e.pi.3.14@…, trick@…, Russell-Jones-OxPhys (Russell Jones), andre.david@…, JDLH (Jim DeLaHunt), seser, jenstroeger (Jens Troeger), macdeport, ltalirz (Leopold Talirz), SickTeddyBear |
Port: | pdftk |
Description
Trying to build pdftk gcj get stuck at the first java file to compile
---> Computing dependencies for pdftk. ---> Fetching archive for pdftk ---> pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified ---> Attempting to fetch pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/pdftk % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0---> Attempting to fetch pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/pdftk % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 287 100 287 0 0 47 0 0:00:06 0:00:06 --:--:-- 82 0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0---> Attempting to fetch pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/pdftk % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0---> Fetching distfiles for pdftk ---> Verifying checksums for pdftk ---> Checksumming pdftk-2.02-src.zip ---> Extracting pdftk ---> Extracting pdftk-2.02-src.zip ---> Applying patches to pdftk ---> Applying patch-Makefile.OSX-10.6.diff patching file pdftk/Makefile.OSX-10.6 Hunk #1 succeeded at 20 (offset -8 lines). Hunk #2 succeeded at 63 (offset -8 lines). ---> Patching Makefile.OSX-10.6: s|@PREFIX@|/opt/local|g ---> Configuring pdftk ---> Building pdftk make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk' /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -f Makefile -iC /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk/../java all make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/java' /opt/local/bin/gcj-mp-4.7 -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/java/libgcj-4.7.4.jar:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/java:." -C pdftk/com/lowagie/text/Anchor.java
gcj-mp is then stuck ...
Attachments (3)
Change History (71)
comment:1 Changed 9 years ago by matteocorti (Matteo Corti)
comment:2 Changed 9 years ago by Ionic (Mihai Moldovan)
Cc: | mww@… added |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Next time, please remember to CC the maintainer(s), if any.
In this special case, I'm also CC'ing the gcc47
port maintainer, as it might be helpful.
comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
How fast is your computer? How fast is your disk? How long did you wait? pdftk can take a long time to build.
I see you're on OS X 10.11 beta. I haven't tried building pdftk there yet, but I'll try it now.
comment:4 follow-up: 5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | elcapitan added |
---|
I agree, nothing happens when trying to build pdftk. gcj gets called a single time, and then sits there. That seems like a problem with the gcc47 port.
gcc45 and gcc47 are the only ones with java support at this time. What I can try to do is add java support to a newer version of gcc, then see if pdftk can be built with that.
comment:5 Changed 9 years ago by matteocorti (Matteo Corti)
Replying to ryandesign@…:
I agree, nothing happens when trying to build pdftk. gcj gets called a single time, and then sits there. That seems like a problem with the gcc47 port.
gcc45 and gcc47 are the only ones with java support at this time. What I can try to do is add java support to a newer version of gcc, then see if pdftk can be built with that.
Just about the El Capitan beta. I had the problem also with Yosemite (I'll try to get a Yosemite machine to confirm)
comment:6 Changed 9 years ago by matteocorti (Matteo Corti)
I was finally able to check on Yosemite: I was able to build pdftk successfully.
comment:8 Changed 9 years ago by aadams99@…
I'm not sure if this is the right spot for this. I have a SO question on this as well. I'm trying here because I can't find any answers online.
I've been using PDFTK Server on OSX pre 10.11 for over a year without any issues running commands on the command line.
After installing OSX 10.11 beta, I can no longer run any PDFTK Server commands on the command line. It does not throw any error, all the commands I try to execute just hang indefinitely.
I installed from a pkg I downloaded from the PDFTK Server website as always:
https://www.pdflabs.com/tools/pdftk-server/
I've sent in the complaint to Apple via their Feedback Assistant application that gets installed when installing the beta two months ago without a response.
I've searched the web for a clue as to what might be causing the issue and how to fix it, but have found nothing tangible.
On OSX, I don't know how to go about figuring out if there is now a permission or path or even a Java issue after the upgrade.
Any help either trouble shooting the root cause or offering a fix is appreciated.
comment:9 Changed 9 years ago by mdeaudelin (Mathieu Deaudelin-Lemay)
aadams99@…: This ticket is for problems building pdftk. Since you are not using MacPorts to compile pdftk, but are rather using prebuilt binaries, this is a different issue. I have replied to the rest of your comment where it was originally posted, in #48818.
comment:10 Changed 9 years ago by howarth.at.macports@…
This is due to the recompilation of libunwind in 10.11 using Apple Clang 7 producing new valid optimizations (according to Apple) that tickle an unknown bug in FSF boehm-gc.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66848
Don't expect any fixes from Apple as they can't touch the GPLv3 code to look at the FSF boehm-gc problem (unless they used the gcc43 package which should still be GPLv2). That this issue is triggered by the recompilation of libunwind is demonstrated by that fact that substituting the libunwind.dylib from 10.10 eliminates both the boehm-gc and gcj failures.
Note that is was filed as radr://21372179, "the FSF boehm-gc library built on 10.10 fails to pass its tests on 10.11" but closed as being an FSF boehm-gc bug.
comment:13 Changed 9 years ago by captainproton1971 (Captain Proton)
Cc: | captainproton1971@… added |
---|
Cc Me!
comment:14 Changed 9 years ago by jbilmes@…
Cc: | jbilmes@… added |
---|
Changed 9 years ago by howarth.at.macports@…
Attachment: | Portfile.diff added |
---|
Portfile diff to use proposed gcc5 update that fixes gcj
comment:17 Changed 9 years ago by howarth.at.macports@…
The attached Portfile.diff (when used with the proposed gcc5 update on #49227 which fixes gcj) solves the build issue with pdftk.
comment:22 Changed 9 years ago by jjfPCSI1 (Jean-Julien Joseph Fleck)
Cc: | jeanjulien.fleck@… added |
---|
Cc Me!
comment:25 follow-up: 26 Changed 9 years ago by graziosi.angelo@…
Following the discussion about ticket #49227, it seems improbable to have pdftk in MacPorts, but a new .pkg installer has been created (http://stackoverflow.com/questions/32505951/pdftk-server-on-os-x-10-11) which seems to work, and it applies the #49227 patches!
Meanwhile, there is the tool cpdf (http://community.coherentpdf.com/ ) which could substitute pdftk. I wonder if it can be added to MacPorts.
Angelo
comment:26 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | graziosi.angelo@… added |
---|
Replying to graziosi.angelo@…:
Meanwhile, there is the tool cpdf (http://community.coherentpdf.com/ ) which could substitute pdftk. I wonder if it can be added to MacPorts.
Please file a new ticket if you would like to request a new port.
comment:36 Changed 9 years ago by pmetzger (Perry E. Metzger)
Question: why is the Portfile.diff mentioned in comment:17 above insufficient to fix this?
comment:37 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Because it requires changes in gcc5 which I explained in comment:ticket:49227:18 I don't feel competent to evaluate and incorporate. I would want the developers of gcc to confirm that that is the correct fix, and for them to incorporate it into their sources first.
comment:42 Changed 9 years ago by splaisan (Stephane Plaisance)
Cc: | stephane.plaisance@… added |
---|
Cc Me!
comment:43 follow-up: 44 Changed 8 years ago by leo@…
Replying to matteo@…:
I'm on Yosemite so not sure if my issue is this bug in another guise or something different. I'm trying to do a macports install on 10.10.5. My installed Xcode is 7.2.1. The build fails. port output starts as below. Any advice on workarounds, or if this is some other known issue, or if I should submit a new bug report, gratefully received.
---> Extracting pdftk-2.02-src.zip ---> Applying patches to pdftk ---> Applying patch-Makefile.OSX-10.6.diff patching file pdftk/Makefile.OSX-10.6 Hunk #1 succeeded at 20 (offset -8 lines). Hunk #2 succeeded at 63 (offset -8 lines). ---> Patching Makefile.OSX-10.6: s|@PREFIX@|/opt/local|g ---> Configuring pdftk ---> Building pdftk make: Entering directory `/opt/local/var/macports/build/_Users_seb_nix_macports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk' /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile -iC /opt/local/var/macports/build/_Users_seb_nix_macports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk/../java all make[1]: Entering directory `/opt/local/var/macports/build/_Users_seb_nix_macports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/java' /opt/local/bin/gcj-mp-5 -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/java/libgcj-5.3.0.jar:/opt/local/var/macports/build/_Users_seb_nix_macports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/java:." -C pdftk/com/lowagie/text/Anchor.java gcj-mp-5: error trying to exec 'ecj1': execvp: No such file or directory make[1]: [pdftk/com/lowagie/text/Anchor.class] Error 1 (ignored)
comment:44 follow-up: 45 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | leo@… added |
---|---|
Summary: | Build of pdftk stuck → pdktk: build hangs when running gjc |
Replying to leo@…:
I'm on Yosemite so not sure if my issue is this bug in another guise or something different. I'm trying to do a macports install on 10.10.5. My installed Xcode is 7.2.1. The build fails. port output starts as below. Any advice on workarounds, or if this is some other known issue, or if I should submit a new bug report, gratefully received.
Your transcript shows a failure when using gjc-mp-5, which is from the gcc5 port. As shipped from MacPorts, the pdftk port does not attempt to use gcc5, so you are using a modified version of the port. Perhaps you patched it using the patch attached earlier in this ticket. What happens if you undo that change and try to install the port as we have provided it? In any case, the problem discussed in this ticket is unique to El Capitan (and presumably later), because of a change Apple made in El Capitan; if you are having a problem building pdftk on an earlier version of OS X, it is a different problem and you should file a new ticket.
comment:45 Changed 8 years ago by leo@…
Replying to ryandesign@…:
Your transcript shows a failure when using gjc-mp-5, which is from the gcc5 port. As shipped from MacPorts, the pdftk port does not attempt to use gcc5, so you are using a modified version of the port. Perhaps you patched it using the patch attached earlier in this ticket. What happens if you undo that change and try to install the port as we have provided it?
Ah, how right you are. I was trying to build a development version of auto-multiple-choice following instructions found here http://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Building_AMC_for_MAC_OSX and I didn't appreciate that it was using a non-standard pdftk port. It looks like those instructions may only work on 10.11 in fact. Thank you.
comment:47 Changed 8 years ago by zwaardmeester@…
Any news on pdftk for El Capitan?
Error: pdftk currently does not build on OS X 10.11 or greater. Error: See https://trac.macports.org/ticket/48528
comment:51 Changed 8 years ago by Russell-Jones-OxPhys (Russell Jones)
Shame openjdk doesn't have a portfile, as then MacPorts could switch to alternatives such as https://github.com/m-click/mcpdf IDK how hard it would be to do. There's an openjdk7 Portfile at browser:users/landonf/openjdk7/dports/java/openjdk7/Portfile from 2013, but I guess it's stopped working and been dropped or was never finished.
comment:52 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | russell.jones@… added |
---|---|
Keywords: | sierra added |
comment:53 Changed 8 years ago by Russell-Jones-OxPhys (Russell Jones)
It looks like openjdk7 and 8 are not clang-friendly, but 9 is intended to be per https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms -- at least it is being tested on Xcode 6.3 + 10.10 by Oracle. It won't be ready until March 2017 according to http://openjdk.java.net/projects/jdk9/ I guess openjdk9-devel may be a useful thing in the meantime. openjdk8 lists gcc 4.2.1 / Xcode 4.6.2 on 10.7 as the main tested platform (I mention all this in part because I had to pull the page from Google's cache).
This page https://github.com/manasthakur/tech/wiki/Building-OpenJDK-8-on-Mac-OS-X-Yosemite claims openjdk8 won't build with clang.
comment:56 Changed 8 years ago by JDLH (Jim DeLaHunt)
Cc: | JDLH added |
---|
comment:57 Changed 8 years ago by seser
Cc: | seser added |
---|
comment:58 Changed 8 years ago by jenstroeger (Jens Troeger)
Any updates? I just wanted to install pdftk (taking the gcc4.7 variant with dismay, no current 5.x or 6.x variants?!) and got this:
---> Fetching archive for pdftk ---> Attempting to fetch pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 from http://nou.nc.packages.macports.org/pub/macports/packages.macports.org/pdftk ---> Attempting to fetch pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/pdftk ---> Attempting to fetch pdftk-2.02_0+gcc47.darwin_15.x86_64.tbz2 from http://kmq.jp.packages.macports.org/pdftk ---> Fetching distfiles for pdftk Error: pdftk currently does not build on OS X 10.11 or greater. Error: See https://trac.macports.org/ticket/48528 Error: Failed to fetch pdftk: incompatible OS X version Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pdftk/pdftk/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port pdftk failed
comment:59 Changed 8 years ago by jenstroeger (Jens Troeger)
Cc: | jenstroeger added |
---|
Changed 8 years ago by nortcele
Attachment: | macports-local.zip added |
---|
Modified gcc5 and pdftk ports to be used as local ports.
comment:60 follow-up: 61 Changed 8 years ago by nortcele
If you are comfortable using local ports, you can use the macports-local.zip file to install pdftk. In this archive there are ports for gcc5 and pdftk for 10.11 and 10.12. It could take a long time as gcc5 need to be compiled.
comment:61 Changed 8 years ago by jenstroeger (Jens Troeger)
Replying to nortcele:
If you are comfortable using local ports, you can use the macports-local.zip file to install pdftk. In this archive there are ports for gcc5 and pdftk for 10.11 and 10.12. It could take a long time as gcc5 need to be compiled.
Thank you! For those new to local portfiles: https://guide.macports.org/chunked/development.local-repositories.html
comment:62 Changed 7 years ago by macdeport
Cc: | macdeport added |
---|
comment:63 Changed 7 years ago by ltalirz (Leopold Talirz)
Cc: | ltalirz added |
---|
comment:64 Changed 7 years ago by mf2k (Frank Schima)
Summary: | pdktk: build hangs when running gjc → pdftk: build hangs when running gjc |
---|
comment:65 Changed 7 years ago by SickTeddyBear
Cc: | SickTeddyBear added |
---|
comment:66 Changed 7 years ago by nortcele
Here is attachment:gcc5.5.0.patch a patch to use gcc5.5.0 modification proposed at ticket #49227.
comment:67 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
No need to increase the revision, unless something will change for users who had already installed the port. All users who already installed the port will have one of the gcc4x variants selected, so they will see no change.
Changed 7 years ago by nortcele
Attachment: | gcc5.5.0.patch added |
---|
Patch to use if proposition to add ecj to gcc5.5.0 is accepted
comment:68 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Adding -v to the gcj-mp command