Opened 12 years ago

Last modified 5 years ago

#36092 new defect

PDFTK broken after GCC47 upgrade

Reported by: angelo.graziosi@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: cjones051073 (Chris Jones), jeremyhu (Jeremy Huddleston Sequoia), cooljeanius (Eric Gallager), maehne (Torsten Maehne), ericmoret
Port: pdftk

Description

On Lion 10.4.7 and Xcode 4.4.1 I did

$ sudo port selfupdate
[...]

$ sudo port outdated
[...]

$ sudo port upgrade outdated
[...]

and as consequence of the upgrade of GCC47, PDFTK was rebuilt... But it failed.

Attached are the full output of the above commands and the main log.

Attachments (2)

pdftk-main.log.bz2 (12.9 KB) - added by angelo.graziosi@… 12 years ago.
main log
upgrade_outdated.out.bz2 (3.2 KB) - added by angelo.graziosi@… 12 years ago.
upgrade outdate output

Download all attachments as: .zip

Change History (14)

Changed 12 years ago by angelo.graziosi@…

Attachment: pdftk-main.log.bz2 added

main log

Changed 12 years ago by angelo.graziosi@…

Attachment: upgrade_outdated.out.bz2 added

upgrade outdate output

comment:1 Changed 12 years ago by angelo.graziosi@…

It seems I forgot an attachment... :-)

comment:2 Changed 12 years ago by cjones051073 (Chris Jones)

Cc: jonesc@… added

Cc Me!

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

Cc: jeremyhu@… added

Do I need to do something to fix this in pdftk or is this a bug in the gcc ports?

comment:4 Changed 12 years ago by howarth@…

Are you sure this isn't http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991? There are still unwinder issues with
gcj on darwin9 but not on darwin10/11/12 (because those use the compatibiity unwinder in libSystem).

comment:5 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

/opt/local/bin/g++-mp-4.7 -Wall -Wextra -Weffc++ -O2 attachments.o report.o pdftk.o ../java/java_lib.o  /opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/../../../libgcj.dylib /usr/lib/libstdc++.dylib /opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/../../../libgcc_s.1.dylib -liconv -lz -o pdftk

The problem is that it's trying to use the host's /usr/lib/libstdc++.dylib when it should be using the one from MacPorts (which would happen automatically...)

comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I bet if you replaced '/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/../../../libgcj.dylib /usr/lib/libstdc++.dylib /opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/../../../libgcc_s.1.dylib' with '-lgcj' it would work fine.

comment:7 Changed 12 years ago by howarth@…

The origin of the gcj problems with darwin9 and earlier is that the unwinder derived from libgcc doesn't grok
the epilogue notes in the eh_frames emitted starting with FSF gcc 4.3...

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991

A patch to suppress these eh_frame epilogue notes on darwin9 and earlier was proposed in this thread...

http://gcc.gnu.org/ml/gcc-patches/2010-08/msg01037.html

but never completed. Note these epilogue notes fortunately aren't problematic on darwin10 and later because they
are running the compatibility unwinder from libSystem instead.

comment:8 Changed 12 years ago by jmroot (Joshua Root)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: pdftk added

comment:9 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:10 Changed 11 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:11 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Please check if this is still a problem with pdftk 2.02. If using the gcc45 variant, try the gcc47 variant instead.

comment:12 Changed 5 years ago by ericmoret

Cc: ericmoret added
Note: See TracTickets for help on using tickets.