Opened 13 years ago

Closed 12 years ago

Last modified 10 years ago

#27154 closed defect (fixed)

Error Installing PDFTK

Reported by: matt@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: lang@…, jkorchok@…, pepper_13@…, su-v, jknockaert (Jasper Knockaert), lawrence.ong@…, macports.org@…, Josef.Buergler@…, cooljeanius (Eric Gallager)
Port: pdftk

Description (last modified by jmroot (Joshua Root))

--->  Computing dependencies for pdftk
--->  Dependencies to be installed: gcc45
--->  Fetching gcc45
--->  Verifying checksum(s) for gcc45
--->  Extracting gcc45
--->  Configuring gcc45
--->  Building gcc45
--->  Staging gcc45 into destroot
--->  Installing gcc45 @4.5.1_0
--->  Activating gcc45 @4.5.1_0
--->  Cleaning gcc45
--->  Fetching pdftk
--->  Verifying checksum(s) for pdftk
--->  Extracting pdftk
--->  Applying patches to pdftk
--->  Configuring pdftk
--->  Building pdftk
Error: Target org.macports.build returned: shell command failed
Log for pdftk is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdftk/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

The error that continually shows up in the log is:

:info:build gcj-mp-4.5: Internal error: Abort trap (program ecj1)

Attachments (2)

main.log (267.2 KB) - added by matt@… 13 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdftk/main.log
main.2.log (267.8 KB) - added by pepper_13@… 13 years ago.

Download all attachments as: .zip

Change History (34)

Changed 13 years ago by matt@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdftk/main.log

comment:1 Changed 13 years ago by matt@…

Cc: matt@… added

Cc Me!

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Cc: matt@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: pdftk added

Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainer. You do not need to be in cc when you are the reporter.

comment:3 Changed 13 years ago by lang@…

Cc: lang@… added

Cc Me!

comment:4 Changed 13 years ago by jkorchok@…

Cc: jkorchok@… added

Cc Me!

comment:5 Changed 13 years ago by jkorchok@…

I have experienced this error installing on Leopard with an Intel processor.

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

You have the same error? The one that reads:

gcj-mp-4.5: Internal error: Abort trap (program ecj1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Do either of you still see the problem with gcc45 version 4.5.2?

If so, have either of you reported this bug to the GCC developers as requested?

comment:7 in reply to:  6 Changed 13 years ago by pepper_13@…

Same error here --> gcj-mp-4.5: Internal error: Abort trap (program ecj1)

Config : MacBook Pro 17" (Santa Rosa) ; Mac OS X 10.5.8 ; Xcode 3.1.3 ; MacPorts 1.9.2 ; ggc45 4.5.2

Changed 13 years ago by pepper_13@…

Attachment: main.2.log added

comment:8 Changed 13 years ago by pepper_13@…

Cc: pepper_13@… added

Cc Me!

comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Have you tried any of the other gcc variants of the pdftk port?

Have you reported the gcc45 error to the developers of gcc, as the error message requests?

comment:10 in reply to:  9 Changed 13 years ago by jkorchok@…

Replying to ryandesign@…:

Have you tried any of the other gcc variants of the pdftk port?

Have you reported the gcc45 error to the developers of gcc, as the error message requests?

I got the same result with gcc45 4.5.2. I attempted to report the bug but unfortunately the procedure was more complicated than my limited skill set allows. Installing using the +gcc42 option allowed installation to complete normally.

comment:11 in reply to:  9 Changed 13 years ago by pepper_13@…

Replying to ryandesign@…:

Have you tried any of the other gcc variants of the pdftk port?

Have you reported the gcc45 error to the developers of gcc, as the error message requests?

I didn't report this error to the gcc developpers for the same reason as jkorchok. I could also complete the installation of pdftk with +gcc42 option ; everything works well...

comment:12 Changed 13 years ago by su-v

Cc: suv-sf@… added

Cc Me!

comment:13 Changed 13 years ago by su-v

Apparently the same issue occurs with Fink: Pdftk 1.44 fails to build with GCC 4.5 on Tiger/Leopard Intel: Subject: Re: Compile fails for pdftk-1.44-1

(In my tests, it fails to build in MacPorts with current gcc44 and ggc45 on OS X 10.5.8 Leopard (i386), but builds ok with gcc42)

comment:14 in reply to:  13 Changed 13 years ago by su-v

Replying to suv-sf@…:

(In my tests, it fails to build in MacPorts with current gcc44 and ggc45 on OS X 10.5.8 Leopard (i386), but builds ok with gcc42)

Correction: fails to build in MacPorts with current gcc45 (there is no gcc44 variant for pdftk) …

comment:15 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Right, there can't be a gcc44 or gcc43 variant for pdftk until #22066 is resolved.

comment:16 in reply to:  6 Changed 13 years ago by JDLH (Jim DeLaHunt)

Replying to ryandesign@…:

You have the same error? The one that reads:

gcj-mp-4.5: Internal error: Abort trap (program ecj1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Do either of you still see the problem with gcc45 version 4.5.2?

Yes, I see this error on Mac OS X 10.5.8, with gcc45 version of 4.5.3, installed via Mac Ports.

If so, have either of you reported this bug to the GCC developers as requested?

I have reported it as GCC Bug 49036 - gcj-mp-4.5: Internal error: Abort trap (program ecj1) on Mac OS X 10.5.8 .

comment:17 Changed 13 years ago by JDLH (Jim DeLaHunt)

Here's the commands which worked for me to switch from a failing install of pdftk using gcc45, to a successful install of pdftk using gcc42:

% cd   

[Because I started off deep in the /opt/local directory tree, and 'port install' failed because the paths were too long.]

sudo port clean pdftk
sudo port install pdftk +gcc42

[Clean up the failed pdftk install, then redo the install specifying the gcc42 variant.]

Experienced mac ports users will know all this. But I'm not an experienced user, and I'm hoping this note will help someone who encounters the same pdftk build failure and wants help getting to success.

comment:18 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

In r78712 I've changed pdftk's default compiler from gcc45 to gcc42 on Leopard and earlier.

comment:19 Changed 13 years ago by JDLH (Jim DeLaHunt)

Thanks, ryandesign; that sounds like a good change.

comment:20 Changed 13 years ago by jknockaert (Jasper Knockaert)

I get this error (or a very similar one) when installing pdftk on Lion. I'm running macports 2.0.0.

comment:21 Changed 13 years ago by jknockaert (Jasper Knockaert)

Cc: jasper@… added

Cc Me!

comment:22 in reply to:  20 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jasper@…:

I get this error (or a very similar one) when installing pdftk on Lion. I'm running macports 2.0.0.

I doubt the error you receive on Lion is the one in this ticket. Rather, I suspect you're experiencing #30299.

comment:23 Changed 13 years ago by jknockaert (Jasper Knockaert)

I'm still inclined to judge that #30299 is a duplicate of this one. I've applied manually the patch to Makefile.OSX-10.6 and next run the make script, and it starts out saying:

mycomp:pdftk jasper$ make -f Makefile.OSX-10.6 VERSUFF=-mp-4.5
make -f Makefile -iC ../java all
/opt/local/bin/gcj-mp-4.5 -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/gcc-4.5/java/libgcj-tools-4.5.3.jar:/Users/jasper/Projects/pdftk-1.44-dist/java:." -C com/lowagie/text/Anchor.java
gcj-mp-4.5: Internal error: Abort trap: 6 (program ecj1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

And it goes on like that for each and every java file it has to compile (with varying error messages: Abort trap or Illegal instruction; but nothing gets compiled). After it iterated over all java files, it fails to bundle them in java_lib.jar (because there's nothing to bundle). And only then does the make script run finally aground when it tries to build an object file out from java_lib.jar:

/opt/local/bin/gcj-mp-4.5 -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/gcc-4.5/java/libgcj-tools-4.5.3.jar:/Users/jasper/Projects/pdftk-1.44-dist/java:." -c java_lib.jar
gcj-mp-4.5: java_lib.jar: No such file or directory
gcj-mp-4.5: no input files
make[1]: [java_lib.o] Error 1 (ignored)
make: *** No rule to make target `../java/java_lib.o', needed by `pdftk.o'.  Stop.

It seems to me that the problem is with gcj 4.5.

comment:24 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Great, then file a bug against gcc45 please.

comment:25 Changed 13 years ago by lawrence.ong@…

Cc: lawrence.ong@… added

Cc Me!

comment:26 Changed 12 years ago by jknockaert (Jasper Knockaert)

I tried to compile (manually) pdftk against the new gcc 4.7 which comes with gcj by default. But it lacks ecj (eclipse java), so no avail. But maybe we should just wait a bit longer for gcc 4.5.4 which I expect to be released over the weeks to come.

comment:27 Changed 12 years ago by macports.org@…

Cc: macports.org@… added

Cc Me!

comment:28 in reply to:  26 Changed 12 years ago by shayanlinux@…

Replying to jasper@…:

I tried to compile (manually) pdftk against the new gcc 4.7 which comes with gcj by default. But it lacks ecj (eclipse java), so no avail. But maybe we should just wait a bit longer for gcc 4.5.4 which I expect to be released over the weeks to come.

GCC 4.5.4 is now officially released.

comment:29 Changed 12 years ago by jknockaert (Jasper Knockaert)

Tried it yesterday and it does work for me. However, I also updated xcode in the meantime, so not entirely sure which of both upgrades solved the issue (but most likely the 4.5.4 upgrade did it).

comment:30 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

comment:31 Changed 12 years ago by Josef.Buergler@…

Cc: Josef.Buergler@… added

Cc Me!

comment:32 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.