Opened 4 years ago

Closed 21 months ago

#48528 closed defect (fixed)

pdftk: build hangs when running gjc

Reported by: matteocorti (Matteo Corti) Owned by: ryandesign (Ryan 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, 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)

Portfile.diff (1.2 KB) - added by howarth.at.macports@… 4 years ago.
Portfile diff to use proposed gcc5 update that fixes gcj
macports-local.zip (16.6 KB) - added by nortcele 2 years ago.
Modified gcc5 and pdftk ports to be used as local ports.
gcc5.5.0.patch (1.3 KB) - added by nortcele 21 months ago.
Patch to use if proposition to add ecj to gcc5.5.0 is accepted

Download all attachments as: .zip

Change History (71)

comment:1 Changed 4 years ago by matteocorti (Matteo Corti)

Adding -v to the gcj-mp command

/opt/local/bin/gcj-mp-4.7 -v -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
Using built-in specs.
COLLECT_GCC=/opt/local/bin/gcj-mp-4.7
Target: x86_64-apple-darwin15
Configured with: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/configure --prefix=/opt/local --build=x86_64-apple-darwin15 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --with-pkgversion='MacPorts gcc47 4.7.4_5'
Thread model: posix
gcc version 4.7.4 (MacPorts gcc47 4.7.4_5) 
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-mmacosx-version-min=10.11.0' '-v' '-Wall' '-fsource=1.3' '-O2' '-fencoding=UTF-8' '-C' '-fbootclasspath=/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/:./:/opt/local/share/gcc-4.7/java/libgcj-4.7.4.jar' '-fsyntax-only' '-femit-class-files' '-S' '-o' 'NONE' '-shared-libgcc' '-mtune=core2'
 /opt/local/libexec/gcc/x86_64-apple-darwin15/4.7.4/ecj1 pdftk/com/lowagie/text/Anchor.java -Wall -fbootclasspath=/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/:./:/opt/local/share/gcc-4.7/java/libgcj-4.7.4.jar -fencoding=UTF-8 -fsource=1.3 -ftarget=1.5 -fzip-dependency /var/folders/sq/sb7jrfk14qv7yyh9z55mszp40000gn/T//ccCU2P1X.zip

comment:2 Changed 4 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 4 years ago by ryandesign (Ryan 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 Changed 4 years ago by ryandesign (Ryan 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 in reply to:  4 Changed 4 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 4 years ago by matteocorti (Matteo Corti)

I was finally able to check on Yosemite: I was able to build pdftk successfully.

comment:7 Changed 4 years ago by davidcorry

Cc: dmcorry@… added

Cc Me!

comment:8 Changed 4 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 4 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 4 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.

Last edited 4 years ago by howarth.at.macports@… (previous) (diff)

comment:11 Changed 4 years ago by jknockaert (Jasper Knockaert)

Cc: jasper@… added

Cc Me!

comment:12 Changed 4 years ago by J.Gilbey@…

Cc: J.Gilbey@… added

Cc Me!

comment:13 Changed 4 years ago by captainproton1971 (Captain Proton)

Cc: captainproton1971@… added

Cc Me!

comment:14 Changed 4 years ago by jbilmes@…

Cc: jbilmes@… added
Last edited 4 years ago by jbilmes@… (previous) (diff)

comment:15 Changed 4 years ago by pinny@…

Cc: pinny@… added

Cc Me!

comment:16 Changed 4 years ago by radaroutthere@…

Cc: radaroutthere@… added

Cc Me!

Changed 4 years ago by howarth.at.macports@…

Attachment: Portfile.diff added

Portfile diff to use proposed gcc5 update that fixes gcj

comment:17 Changed 4 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.

Last edited 4 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:18 Changed 4 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:19 Changed 4 years ago by jkozdon (Jeremy Kozdon)

Cc: jekozdon@… added

Cc Me!

comment:20 Changed 4 years ago by m7.thon@…

Cc: m7.thon@… added

Cc Me!

comment:21 Changed 4 years ago by ramundsen85

Cc: framic5@… added

Cc Me!

comment:22 Changed 4 years ago by jjfPCSI1 (Jean-Julien Joseph Fleck)

Cc: jeanjulien.fleck@… added

Cc Me!

comment:23 Changed 4 years ago by krletes@…

Cc Me!

comment:24 Changed 4 years ago by calsaiwing@…

Cc: calsaiwing@… added

Cc Me!

comment:25 Changed 4 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 in reply to:  25 Changed 4 years ago by ryandesign (Ryan 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:27 Changed 4 years ago by nortcele

Cc: Joel.Brogniart@… added

Cc Me!

comment:28 Changed 4 years ago by icemac (Michael Howitz)

Cc: mh@… added

Cc Me!

comment:29 Changed 4 years ago by jrblevin@…

Cc: jrblevin@… added

Cc Me!

comment:30 Changed 4 years ago by krissen

Cc: kristian.niemi@… added

Cc Me!

comment:31 Changed 4 years ago by onurdomanic@…

Cc: onurdomanic@… added

Cc Me!

comment:32 Changed 4 years ago by LeoFCardoso (Leonardo)

Cc: leonardo.f.cardoso@… added

Cc Me!

comment:33 Changed 3 years ago by Ronny.Schuetz@…

Cc: Ronny.Schuetz@… added

Cc Me!

comment:34 Changed 3 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:35 Changed 3 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:36 Changed 3 years ago by pmetzger (Perry E. Metzger)

Question: why is the Portfile.diff mentioned in comment:17 above insufficient to fix this?

Last edited 3 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:37 Changed 3 years ago by ryandesign (Ryan 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:38 Changed 3 years ago by steve-macports@…

Cc: steve-macports@… added

Cc Me!

comment:39 Changed 3 years ago by fabian.egli@…

Cc: fabian.egli@… added

Cc Me!

comment:40 Changed 3 years ago by ryan.d.jamison@…

Cc: ryan.d.jamison@… added

Cc Me!

comment:41 Changed 3 years ago by mark.chilenski@…

Cc: mark.chilenski@… added

Cc Me!

comment:42 Changed 3 years ago by splaisan (Stephane Plaisance)

Cc: stephane.plaisance@… added

Cc Me!

comment:43 in reply to:  description ; Changed 3 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 in reply to:  43 ; Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: leo@… added
Summary: Build of pdftk stuckpdktk: 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 in reply to:  44 Changed 3 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:46 Changed 3 years ago by zwaardmeester@…

Cc: zwaardmeester@… added

Cc Me!

comment:47 Changed 3 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
Last edited 3 years ago by zwaardmeester@… (previous) (diff)

comment:48 Changed 3 years ago by m.schwarz@…

Cc: m.schwarz@… added

Cc Me!

comment:49 Changed 3 years ago by david.e.pi.3.14@…

Cc: david.e.pi.3.14@… added

Cc Me!

comment:50 Changed 3 years ago by trick@…

Cc: trick@… added

Cc Me!

comment:51 Changed 3 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.

Last edited 3 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:52 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: russell.jones@… added
Keywords: sierra added

We had an openjdk6 port but it was removed in r105197; see #28218. I don't know if Landon ever got openjdk7 working on the Mac but it sounded like a lot of the difficulties in getting openjdk6 working had already been fixed in openjdk7.

comment:53 Changed 3 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.

Last edited 3 years ago by Russell-Jones-OxPhys (Russell Jones) (previous) (diff)

comment:54 Changed 3 years ago by radaroutthere@…

Cc: radaroutthere@… removed

Cc Me!

comment:55 Changed 3 years ago by andre.david@…

Cc: andre.david@… added

Cc Me!

comment:56 Changed 2 years ago by JDLH (Jim DeLaHunt)

Cc: JDLH added

comment:57 Changed 2 years ago by seser

Cc: seser added

comment:58 Changed 2 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 2 years ago by jenstroeger (Jens Troeger)

Cc: jenstroeger added

Changed 2 years ago by nortcele

Attachment: macports-local.zip added

Modified gcc5 and pdftk ports to be used as local ports.

comment:60 Changed 2 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 in reply to:  60 Changed 2 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 2 years ago by macdeport

Cc: macdeport added

comment:63 Changed 2 years ago by ltalirz (Leopold Talirz)

Cc: ltalirz added

comment:64 Changed 22 months ago by mf2k (Frank Schima)

Summary: pdktk: build hangs when running gjcpdftk: build hangs when running gjc

comment:65 Changed 22 months ago by SickTeddyBear

Cc: SickTeddyBear added

comment:66 Changed 21 months ago by nortcele

Here is attachment:gcc5.5.0.patch a patch to use gcc5.5.0 modification proposed at ticket #49227.

Last edited 21 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:67 Changed 21 months ago by ryandesign (Ryan 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 21 months 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 21 months ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

In 6a8d7fa937bda2f21d7d1c08228700c4781e1aa9/macports-ports:

pdftk: Add gcc5 variant and make it the default

This allows the port to build on El Capitan and newer for the first
time.

Closes: #40058
Closes: #48528

Note: See TracTickets for help on using tickets.