public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/48512] New: [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target
@ 2011-04-08  8:17 blakawk at gentooist dot com
  2012-02-02 18:38 ` [Bug java/48512] " ktietz at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: blakawk at gentooist dot com @ 2011-04-08  8:17 UTC (permalink / raw)
  To: java-prs

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

           Summary: [4.6] gcj spec files references incorrectly crtmt.o on
                    i686-w64-mingw32 target
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: blakawk@gentooist.com


When cross compiling GCJ with host platform i386-redhat-linux and target
platform i686-w64-mingw32, the GCJ spec file is generated adding crtmt.o to
startfile. The path to this file is not a full path, so it is looked up in the
current directory, resulting in No such file or directory error when compiling
a .exe with GCJ.

Versions used are the following:
# i686-w64-mingw32-gcj -v
Using built-in specs.
Reading specs from
/home/users_csee/parizet/mingw32/root/bin/../lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/lib/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
COLLECT_GCC=i686-w64-mingw32-gcj
COLLECT_LTO_WRAPPER=/home/users_csee/parizet/mingw32/root/bin/../libexec/gcc/i686-w64-mingw32/4.6.1/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../../sources/gcc-4.6-20110401/configure
--prefix=/users_csee/parizet/mingw32/root
--with-sysroot=/users_csee/parizet/mingw32/root --disable-multilib
--with-mpfr=/users_csee/parizet/mingw32/root
--with-mpc=/users_csee/parizet/mingw32/root
--with-gmp=/users_csee/parizet/mingw32/root
--with-cloog=/users_csee/parizet/mingw32/root
--with-ppl=/users_csee/parizet/mingw32/root --enable-cloog-backend=isl
--disable-shared --enable-threads=win32 --disable-tls --disable-__cxa_atexit
--enable-languages=c,c++,java --enable-libssp --disable-win32-registry
--disable-nls --disable-lto --enable-libgcj --enable-sjlj-exceptions
--target=i686-w64-mingw32 --build=i386-redhat-linux
Thread model: win32
gcc version 4.6.1 20110401 (prerelease) (GCC)

and mingw32 revision 4105 from the trunk.

When removing the crtmt.o from startfile in libgcj.spec file, it works fine.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/48512] [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target
  2011-04-08  8:17 [Bug java/48512] New: [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target blakawk at gentooist dot com
@ 2012-02-02 18:38 ` ktietz at gcc dot gnu.org
  2012-02-03  9:43 ` ktietz at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-02 18:38 UTC (permalink / raw)
  To: java-prs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-02-02
                 CC|                            |ktietz at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-02 18:37:41 UTC ---
Confirmed.

Following patch should solve this

Index: gcc/libjava/configure.ac
===================================================================
--- gcc.orig/libjava/configure.ac
+++ gcc/libjava/configure.ac
@@ -1150,8 +1150,13 @@ case "$THREADS" in
     # FIXME: In Java we are able to detect thread death at the end of
     # Thread.run() so we should be able to clean up the exception handling
     # contexts ourselves.
-    THREADSTARTFILESPEC='crtmt%O%s'
-    ;;
+    case "$host" in
+    *-w64-mingw*)
+      ;;
+    *)
+      THREADSTARTFILESPEC='crtmt%O%s'
+      ;;
+    esac

  none)
     THREADH=no-threads.h


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/48512] [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target
  2011-04-08  8:17 [Bug java/48512] New: [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target blakawk at gentooist dot com
  2012-02-02 18:38 ` [Bug java/48512] " ktietz at gcc dot gnu.org
@ 2012-02-03  9:43 ` ktietz at gcc dot gnu.org
  2012-02-03 10:35 ` ktietz at gcc dot gnu.org
  2012-02-03 10:36 ` ktietz at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-03  9:43 UTC (permalink / raw)
  To: java-prs

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

--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-03 09:42:46 UTC ---
Author: ktietz
Date: Fri Feb  3 09:42:42 2012
New Revision: 183867

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183867
Log:
        PR libjava/48512
        * configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for
        w64 windows targets.
        * configure: Regenerated.


Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/configure
    trunk/libjava/configure.ac


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/48512] [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target
  2011-04-08  8:17 [Bug java/48512] New: [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target blakawk at gentooist dot com
  2012-02-02 18:38 ` [Bug java/48512] " ktietz at gcc dot gnu.org
  2012-02-03  9:43 ` ktietz at gcc dot gnu.org
@ 2012-02-03 10:35 ` ktietz at gcc dot gnu.org
  2012-02-03 10:36 ` ktietz at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-03 10:35 UTC (permalink / raw)
  To: java-prs

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

--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-03 10:35:11 UTC ---
Author: ktietz
Date: Fri Feb  3 10:35:06 2012
New Revision: 183868

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183868
Log:
        PR libjava/48512
        * configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for
        w64 windows targets.
        * configure: Regenerated.

Modified:
    branches/gcc-4_6-branch/libjava/ChangeLog
    branches/gcc-4_6-branch/libjava/configure
    branches/gcc-4_6-branch/libjava/configure.ac


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/48512] [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target
  2011-04-08  8:17 [Bug java/48512] New: [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target blakawk at gentooist dot com
                   ` (2 preceding siblings ...)
  2012-02-03 10:35 ` ktietz at gcc dot gnu.org
@ 2012-02-03 10:36 ` ktietz at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-03 10:36 UTC (permalink / raw)
  To: java-prs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-03 10:36:34 UTC ---
Fixed


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-03 10:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-08  8:17 [Bug java/48512] New: [4.6] gcj spec files references incorrectly crtmt.o on i686-w64-mingw32 target blakawk at gentooist dot com
2012-02-02 18:38 ` [Bug java/48512] " ktietz at gcc dot gnu.org
2012-02-03  9:43 ` ktietz at gcc dot gnu.org
2012-02-03 10:35 ` ktietz at gcc dot gnu.org
2012-02-03 10:36 ` ktietz at gcc dot gnu.org

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).