public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "from.gcc_bugzilla at jdlh dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/49036] New: gcj-mp-4.5: Internal error: Abort trap (program ecj1) on Mac OS X 10.5.8
Date: Wed, 18 May 2011 05:26:00 -0000	[thread overview]
Message-ID: <bug-49036-8172@http.gcc.gnu.org/bugzilla/> (raw)

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

           Summary: gcj-mp-4.5: Internal error: Abort trap (program ecj1)
                    on Mac OS X 10.5.8
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: java
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: from.gcc_bugzilla@jdlh.com


Created attachment 24274
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24274
Source file Anchor.java, 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/Anchor.java

The compiler output (error messages, warnings, etc.):
Using built-in specs.
COLLECT_GCC=/opt/local/bin/gcj-mp-4.5
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/i386-apple-darwin9/4.5.3/lto-wrapper
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/Anchor.java -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 Anchor.zip
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.


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/Anchor.java, 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
https://trac.macports.org/ticket/27154 .  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.


             reply	other threads:[~2011-05-18  5:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18  5:26 from.gcc_bugzilla at jdlh dot com [this message]
2011-05-18  5:25 ` [Bug java/49036] " from.gcc_bugzilla at jdlh dot com
2011-06-03 15:22 ` Martin.vGagern at gmx dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-49036-8172@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).