User account creation filtered due to spam.

Bug 49036 - gcj-mp-4.5: Internal error: Abort trap (program ecj1) on Mac OS X 10.5.8
Summary: gcj-mp-4.5: Internal error: Abort trap (program ecj1) on Mac OS X 10.5.8
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.5.3
: P3 major
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2011-05-18 05:05 UTC by Jim DeLaHunt
Modified: 2016-09-30 22:51 UTC (History)
1 user (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed:

Source file, test case for this bug (GPL). (2.54 KB, application/octet-stream)
2011-05-18 05:05 UTC, Jim DeLaHunt

Note You need to log in before you can comment on or make changes to this bug.
Description Jim DeLaHunt 2011-05-18 05:05:18 UTC
Created attachment 24274 [details]
Source file, test case for this bug (GPL).

Please be gentle with me, an end user of Mac Ports, swimming upstream to report a build problem to GCC as requested by the error message. I am not from this land, and I do not know your ways.  But I've filed bug reports before, so I'll give it a shot.

Building Mac Ports project "pdftk" with gcj 4.5.3 fails with an error message,
   gcj-mp-4.5: Internal error: Abort trap (program ecj1)

for several files in the pdftk source tree.

The exact version of GCC: gcj 4.5.3

The system type: Mac OS X 10.5.8

The options given when GCC was configured/built: unknown, I don't know how to retrieve this information. Mac Ports built project "gcc45" because it was required by project "pdftk". 

The complete command line that triggers the bug:
% /opt/local/bin/gcj-mp-4.5 -v -save-temps -td tmp -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/java/libgcj-4.5.3.jar:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdftk/work/pdftk-1.44-dist/java:." -C com/lowagie/text/

The compiler output (error messages, warnings, etc.):
Using built-in specs.
gcj-mp-4.5: unrecognized option '-td'
Target: i386-apple-darwin9
Configured with: ../gcc-4.5.3/configure --prefix=/opt/local --build=i386-apple-darwin9 --enable-languages=c,c++,objc,obj-c++,fortran,java --libdir=/opt/local/lib/gcc45 --includedir=/opt/local/include/gcc45 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.5 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.5 --with-gxx-include-dir=/opt/local/include/gcc45/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking --disable-multilib
Thread model: posix
gcc version 4.5.3 (GCC) 
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-mmacosx-version-min=10.5.8' '-v' '-save-temps' '-td' '-Wall' '-fsource=1.3' '-O2' '-fencoding=UTF-8' '-C' '-fbootclasspath=/opt/local/share/java/libgcj-4.5.3.jar:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdftk/work/pdftk-1.44-dist/java/:./:/opt/local/share/gcc-4.5/java/libgcj-4.5.3.jar' '-fsyntax-only' '-femit-class-files' '-S' '-o' 'NONE' '-shared-libgcc' '-mtune=generic'
 /opt/local/libexec/gcc/i386-apple-darwin9/4.5.3/ecj1 com/lowagie/text/ -Wall -fbootclasspath=/opt/local/share/java/libgcj-4.5.3.jar:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdftk/work/pdftk-1.44-dist/java/:./:/opt/local/share/gcc-4.5/java/libgcj-4.5.3.jar -fencoding=UTF-8 -fsource=1.3 -ftarget=1.5 -fzip-dependency
gcj-mp-4.5: Internal error: Abort trap (program ecj1)
Please submit a full bug report.
See <> for instructions.

The preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command: 
Unable to comply. I don't know where the gcj compiler stores preprocessed files. The -td directive doesn't appear to put temp files in the specified directory; note that in the command line above I specified "-td tmp", and GCJ included only "-td" and not the directory name "tmp" in its COLLECT_GCC_OPTIONS .  I'm attaching the source file from the above command line, com/lowagie/text/, in case that's any help. I'm not familiar with GCJ, so I don't know how to figure out which dependent files its using.

This problem is the subject of Mac Ports bug report "Error Installing PDFTK" at .  Comments there indicate that using GCC 4.2 caused the code to compile successfully.

I have not tried any newer versions of GCJ; I'm using the build process and compiler choices which Mac Ports provides.  Once I get this bug report submitted, I'll try using Mac Ports to build pdftk with GCJ 4.2.x.

If I can supply more information, I'm happy to.
Comment 1 Jim DeLaHunt 2011-05-18 05:14:36 UTC
Bug 41991 - gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 ( is possibly related to this bug. It was the only GCC bug report I found which mentioned "program ecj1".
Comment 2 Martin von Gagern 2011-06-03 15:21:49 UTC
Hit the same using Fink Project and pdftk 1.44-1.

(In reply to comment #1)
> Bug 41991 is possibly related to this bug.

As on my system, even a simple hello world java application fails to compile, and that bug describes pretty much that situation, I'd say this is probably a duplicate of that.
Comment 3 Andrew Pinski 2016-09-30 22:51:43 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.