From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12256 invoked by alias); 1 Jan 2018 19:34:35 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 12233 invoked by uid 48); 1 Jan 2018 19:34:35 -0000 From: "yzhang1985 at gmail dot com" To: java-prs@gcc.gnu.org Subject: [Bug java/83647] New: add x86_64 Windows support to GCJ Date: Mon, 01 Jan 2018 19:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yzhang1985 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00000.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83647 Bug ID: 83647 Summary: add x86_64 Windows support to GCJ Product: gcc Version: 6.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java Assignee: unassigned at gcc dot gnu.org Reporter: yzhang1985 at gmail dot com Target Milestone: --- Created attachment 43002 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D43002&action=3Dedit The changes to natVMConsole.cc are only for MingW. Probably these changes d= on't need to be in GCC and can be downstream GCJ currently doesn't support x86_64 Windows, specifically x86_64-w64-mingw= 32.=20 I have made a patch that supports it. I know GCJ has been removed from GCC = 7, but I'm hoping this can still make it into GCC 6. The changes were mostly to change 32bit ints to pointer sized ints. Specifically, unsigned long -> uintptr_t jint -> jlong Changing jint -> jlong is probably not right because that would change 32bit builds. I wanted to change those jint to jsize and change jsize from int to intptr_t, but wasn't sure of the effects. The other big change was I had to replace boehm-gc with a newer version (7.= 2e, 7.2g crashes). GCC seems to have an out of date, custom version that doesn't support x86_64 windows, and that only builds a static lib. I didn't include that in the patch, but you can simply plant the newer version into the sour= ce code. >>From java-prs-return-12227-listarch-java-prs=gcc.gnu.org@gcc.gnu.org Mon Jan 01 20:23:42 2018 Return-Path: Delivered-To: listarch-java-prs@gcc.gnu.org Received: (qmail 68634 invoked by alias); 1 Jan 2018 20:23:42 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Delivered-To: mailing list java-prs@gcc.gnu.org Received: (qmail 68600 invoked by uid 48); 1 Jan 2018 20:23:42 -0000 From: "pinskia at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug java/83647] add x86_64 Windows support to GCJ Date: Mon, 01 Jan 2018 20:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00001.txt.bz2 Content-length: 621 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83647 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Andrew Pinski --- GCC 6 is in regression only fixes due to it being a release branch. Won't fix as Java was removed from GCC 7. There are other open source Java implementations including but not limited to OpenJDK. >>From java-prs-return-12228-listarch-java-prs=gcc.gnu.org@gcc.gnu.org Mon Jan 01 21:18:14 2018 Return-Path: Delivered-To: listarch-java-prs@gcc.gnu.org Received: (qmail 109503 invoked by alias); 1 Jan 2018 21:18:14 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Delivered-To: mailing list java-prs@gcc.gnu.org Received: (qmail 109480 invoked by uid 48); 1 Jan 2018 21:18:13 -0000 From: "yzhang1985 at gmail dot com" To: java-prs@gcc.gnu.org Subject: [Bug java/83647] add x86_64 Windows support to GCJ Date: Mon, 01 Jan 2018 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yzhang1985 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00002.txt.bz2 Content-length: 679 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83647 --- Comment #2 from Yale Zhang --- (In reply to Andrew Pinski from comment #1) > GCC 6 is in regression only fixes due to it being a release branch. >=20 > Won't fix as Java was removed from GCC 7. There are other open source Ja= va > implementations including but not limited to OpenJDK. I was afraid of that, but I want to compile to native code and AFAIK, GCJ is the only one or if not, the only robust one. I think this change can be use= ful to others and shouldn't be lost just because GCC 6 is limited to regression fixes only. Is there a non-release branch that this can checked into? >>From java-prs-return-12229-listarch-java-prs=gcc.gnu.org@gcc.gnu.org Sat Mar 24 10:20:45 2018 Return-Path: Delivered-To: listarch-java-prs@gcc.gnu.org Received: (qmail 77305 invoked by alias); 24 Mar 2018 10:20:45 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Delivered-To: mailing list java-prs@gcc.gnu.org Received: (qmail 77277 invoked by uid 48); 24 Mar 2018 10:20:44 -0000 From: "bruno at clisp dot org" To: java-prs@gcc.gnu.org Subject: [Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain Date: Sat, 24 Mar 2018 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00003.txt.bz2 Content-length: 1227 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45433 Bruno Haible changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno at clisp dot org --- Comment #3 from Bruno Haible --- (In reply to Jakub Jelinek from comment #2) > You need to read the documentation, which would tell you you need to use > -fmain=3DHelloWorld option. It is true that -fmain=3DHelloWorld was missing in the reporter's command l= ine. But if that had been the only problem, the error message would have been (.text+0x18): undefined reference to `main' not Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain The error message "java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain" means that the ecj1 program cannot find the org.eclipse.jdt.internal.compiler.batch.GCCMain class, whic= h it expects to find in the jar file specified through the --with-ecj-jar option. So, the reporter's real problem was that he configured GCC with a --with-ecj-jar option without argument. >>From java-prs-return-12230-listarch-java-prs=gcc.gnu.org@gcc.gnu.org Sat Mar 24 10:31:25 2018 Return-Path: Delivered-To: listarch-java-prs@gcc.gnu.org Received: (qmail 72214 invoked by alias); 24 Mar 2018 10:31:25 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Delivered-To: mailing list java-prs@gcc.gnu.org Received: (qmail 72187 invoked by uid 48); 24 Mar 2018 10:31:24 -0000 From: "bruno at clisp dot org" To: java-prs@gcc.gnu.org Subject: [Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain Date: Sat, 24 Mar 2018 10:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00004.txt.bz2 Content-length: 2783 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45433 --- Comment #4 from Bruno Haible --- I am having the same error, even with option -C (which does not need a -fmain=3D... option): $ gcj -v -C HelloWorld.java=20 Using built-in specs. COLLECT_GCC=3D/arch/x86-linux/gnu-inst-gcc/4.7.3/bin/gcj Target: i686-pc-linux-gnu Configured with: ../gcc-4.7.3/configure --build=3Di686-pc-linux-gnu --host=3Di686-pc-linux-gnu --target=3Di686-pc-linux-gnu --prefix=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 --enable-shared --enable-version-specific-runtime-libs --enable-nls --enable-threads=3Dposix --enable-__cxa_atexit --with-as=3D/arch/x86-linux/gnu/bin/as32 --with-gmp=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 --with-mpfr=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 --with-mpc=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 --with-libelf=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 --with-ecj-jar=3D/gfs/petix/Volumes/ExtData/source/gnu/gcc/sourceware.org-e= cj/ecj-latest.jar Thread model: posix gcc version 4.7.3 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-fsaw-java-file' '-B' '/media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/libexec/gcc/i686-pc-linux= -gnu/4.7.3' '-v' '-C' '-fbootclasspath=3D./:/media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/bin/= ../lib/gcc/../../share/java/libgcj-4.7.3.jar' '-g1' '-fsyntax-only' '-femit-class-files' '-S' '-o' 'NONE' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' /media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/libexec/gcc/i686-pc-linux-= gnu/4.7.3/ecj1 HelloWorld.java -g1 -fbootclasspath=3D./:/media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/bin/.= ./lib/gcc/../../share/java/libgcj-4.7.3.jar -g1 -fsource=3D1.5 -ftarget=3D1.5 -fzip-dependency /tmp/ccrzqP4M.zip Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain at gnu.java.lang.MainThread.run(MainThread.java:100) Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=3D[], parent=3Dgnu.gcj.runtime.ExtensionClassLoader{urls=3D[], parent=3Dnull}} at java.net.URLClassLoader.findClass(URLClassLoader.java) at gnu.gcj.runtime.SystemClassLoader.findClass(natSystemClassLoader.cc:2= 7) at java.lang.ClassLoader.loadClass(ClassLoader.java) at java.lang.ClassLoader.loadClass(ClassLoader.java:387) at gnu.java.lang.MainThread.run(MainThread.java) The problem is that the file that I specified as --with-ecj-jar value when configuring GCC no longer exists. The GCC installation has not copied the f= ile to the GCC installation directory! But the ecj1 program still references it. I cannot find an option to tell ecj1 about the new file name of ecj-latest.= jar. So I ended up creating a symlink so that the old file name still works. >>From java-prs-return-12231-listarch-java-prs=gcc.gnu.org@gcc.gnu.org Sat Mar 24 18:46:17 2018 Return-Path: Delivered-To: listarch-java-prs@gcc.gnu.org Received: (qmail 75283 invoked by alias); 24 Mar 2018 18:46:13 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Delivered-To: mailing list java-prs@gcc.gnu.org Received: (qmail 70602 invoked by uid 48); 24 Mar 2018 18:46:05 -0000 From: "egallager at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain Date: Sat, 24 Mar 2018 18:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q1/txt/msg00005.txt.bz2 Content-length: 3367 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45433 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg --- Comment #5 from Eric Gallager --- (In reply to Bruno Haible from comment #4) > I am having the same error, even with option -C (which does not need a > -fmain=3D... option): >=20 > $ gcj -v -C HelloWorld.java=20 > Using built-in specs. > COLLECT_GCC=3D/arch/x86-linux/gnu-inst-gcc/4.7.3/bin/gcj > Target: i686-pc-linux-gnu > Configured with: ../gcc-4.7.3/configure --build=3Di686-pc-linux-gnu > --host=3Di686-pc-linux-gnu --target=3Di686-pc-linux-gnu > --prefix=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 --enable-shared > --enable-version-specific-runtime-libs --enable-nls --enable-threads=3Dpo= six > --enable-__cxa_atexit --with-as=3D/arch/x86-linux/gnu/bin/as32 > --with-gmp=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 > --with-mpfr=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 > --with-mpc=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 > --with-libelf=3D/arch/x86-linux/gnu-inst-gcc/4.7.3 > --with-ecj-jar=3D/gfs/petix/Volumes/ExtData/source/gnu/gcc/sourceware.org= -ecj/ > ecj-latest.jar > Thread model: posix > gcc version 4.7.3 (GCC)=20 > COLLECT_GCC_OPTIONS=3D'-fsaw-java-file' '-B' > '/media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/libexec/gcc/i686-pc-lin= ux- > gnu/4.7.3' '-v' '-C' > '-fbootclasspath=3D./:/media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/bi= n/../ > lib/gcc/../../share/java/libgcj-4.7.3.jar' '-g1' '-fsyntax-only' > '-femit-class-files' '-S' '-o' 'NONE' '-shared-libgcc' '-mtune=3Dgeneric' > '-march=3Dpentiumpro' > /media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/libexec/gcc/i686-pc-lin= ux- > gnu/4.7.3/ecj1 HelloWorld.java -g1 > -fbootclasspath=3D./:/media/nas/pub/arch/x86-linux/gnu-inst-gcc/4.7.3/bin= /../ > lib/gcc/../../share/java/libgcj-4.7.3.jar -g1 -fsource=3D1.5 -ftarget=3D1= .5 > -fzip-dependency /tmp/ccrzqP4M.zip > Exception in thread "main" java.lang.NoClassDefFoundError: > org.eclipse.jdt.internal.compiler.batch.GCCMain > at gnu.java.lang.MainThread.run(MainThread.java:100) > Caused by: java.lang.ClassNotFoundException: > org.eclipse.jdt.internal.compiler.batch.GCCMain not found in > gnu.gcj.runtime.SystemClassLoader{urls=3D[], > parent=3Dgnu.gcj.runtime.ExtensionClassLoader{urls=3D[], parent=3Dnull}} > at java.net.URLClassLoader.findClass(URLClassLoader.java) > at gnu.gcj.runtime.SystemClassLoader.findClass(natSystemClassLoader.cc= :27) > at java.lang.ClassLoader.loadClass(ClassLoader.java) > at java.lang.ClassLoader.loadClass(ClassLoader.java:387) > at gnu.java.lang.MainThread.run(MainThread.java) >=20 > The problem is that the file that I specified as --with-ecj-jar value when > configuring GCC no longer exists. The GCC installation has not copied the > file to the GCC installation directory! But the ecj1 program still > references it. >=20 > I cannot find an option to tell ecj1 about the new file name of > ecj-latest.jar. So I ended up creating a symlink so that the old file name > still works. GCC 4.7 is no longer supported; the only open branch where java is still included is GCC 6, and it is only open for regression fixes and docs only.