public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/30513]  New: Bootstrap failure with libgcj on sparc-sun-solaris2.10
@ 2007-01-20  0:43 ghazi at gcc dot gnu dot org
  2007-01-20  1:22 ` [Bug libgcj/30513] " tromey at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-01-20  0:43 UTC (permalink / raw)
  To: java-prs

Current mainline bootstrap fails with the following error when building
libjava.  I haven't built mainline for about two weeks so I don't know when it
started failing exactly.

/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/./gcc/xgcc -shared-libgcc
-B/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/./gcc -nostdinc++
-L/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src
-L/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src/.libs
-B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/
-isystem /usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include -m64 -DHAVE_CONFIG_H -I.
-I../../../../egcc-SVN20070118/libjava -I./include -I./gcj
-I../../../../egcc-SVN20070118/libjava -Iinclude
-I../../../../egcc-SVN20070118/libjava/include
-I../../../../egcc-SVN20070118/libjava/classpath/include -Iclasspath/include
-I../../../../egcc-SVN20070118/libjava/classpath/native/fdlibm
-I../../../../egcc-SVN20070118/libjava/../boehm-gc/include
-I../boehm-gc/include -I../../../../egcc-SVN20070118/libjava/libltdl
-I../../../../egcc-SVN20070118/libjava/libltdl
-I../../../../egcc-SVN20070118/libjava/.././libjava/../gcc
-I../../../../egcc-SVN20070118/libjava/../zlib
-I../../../../egcc-SVN20070118/libjava/../libffi/include -I../libffi/include
-fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local\"
-DTOOLEXECLIBDIR=\"/usr/local/lib/sparcv9\" -DJAVA_HOME=\"/usr/local\"
-DBOOT_CLASS_PATH=\"/usr/local/share/java/libgcj-4.3.0.jar\"
-DJAVA_EXT_DIRS=\"/usr/local/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/local/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/usr/local/lib/sparcv9/gcj-4.3.0\"
-DPATH_SEPARATOR=\":\"
-DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/lib/sparcv9/gcj-4.3.0/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.3.0/classmap.db\" -g -O2 -m64 -MT
jni-libjvm.lo -MD -MP -MF .deps/jni-libjvm.Tpo -c
../../../../egcc-SVN20070118/libjava/jni-libjvm.cc  -fPIC -DPIC -o
.libs/jni-libjvm.o
In file included from ./include/java-threads.h:22,
                 from ../../../../egcc-SVN20070118/libjava/include/jvm.h:23,
                 from ../../../../egcc-SVN20070118/libjava/jni-libjvm.cc:14:
./sysdep/locks.h:11:2: error: #error Thread synchronization primitives not
implemented for this platform.
In file included from ../../../../egcc-SVN20070118/libjava/include/jvm.h:35,
                 from ../../../../egcc-SVN20070118/libjava/jni-libjvm.cc:14:
./sysdep/locks.h:11:2: error: #error Thread synchronization primitives not
implemented for this platform.
In file included from ../../../../egcc-SVN20070118/libjava/include/jvm.h:23,
                 from ../../../../egcc-SVN20070118/libjava/jni-libjvm.cc:14:
./include/java-threads.h:358: error: 'obj_addr_t' does not name a type
In file included from ../../../../egcc-SVN20070118/libjava/jni-libjvm.cc:14:
../../../../egcc-SVN20070118/libjava/include/jvm.h:750: error: 'obj_addr_t'
does not name a type
make[5]: *** [jni-libjvm.lo] Error 1
make[5]: Leaving directory
`/caip/u12/kishgcc/gcc-testing/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libjava'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/caip/u12/kishgcc/gcc-testing/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory
`/caip/u12/kishgcc/gcc-testing/gcc-testing/43/build/sparc-sun-solaris2.10/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory
`/caip/u12/kishgcc/gcc-testing/gcc-testing/43/build/sparc-sun-solaris2.10/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/caip/u12/kishgcc/gcc-testing/gcc-testing/43/build'
make: *** [bootstrap] Error 2


-- 
           Summary: Bootstrap failure with libgcj on sparc-sun-solaris2.10
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: critical
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
GCC target triplet: sparc-sun-solaris2.10


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


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

* [Bug libgcj/30513] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
@ 2007-01-20  1:22 ` tromey at gcc dot gnu dot org
  2007-01-20  1:24 ` tromey at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-20  1:22 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from tromey at gcc dot gnu dot org  2007-01-20 01:22 -------
It looks as though your build is choosing sysdep/generic as the
sysdep dir.  But, that is wrong, it should be choosing sparc.
I'll attach a patch; if you could try it that would be great.
Most likely, this patch will just help the build fail later; I think
you may need read_barrier and write_barrier implementations as well.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-20 01:22:11
               date|                            |


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


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

* [Bug libgcj/30513] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
  2007-01-20  1:22 ` [Bug libgcj/30513] " tromey at gcc dot gnu dot org
@ 2007-01-20  1:24 ` tromey at gcc dot gnu dot org
  2007-01-20  1:30 ` [Bug libgcj/30513] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-20  1:24 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2007-01-20 01:24 -------
Well, bugzilla would not let me make an attachment.
So, here it is inline.

Index: configure.host
===================================================================
--- configure.host      (revision 120900)
+++ configure.host      (working copy)
@@ -159,6 +159,7 @@
        enable_hash_synchronization_default=yes
        ;;
   sparc*-*)
+       sysdeps_dir=sparc
        libgcj_interpreter=yes
         ;;
   ia64-*)


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
  2007-01-20  1:22 ` [Bug libgcj/30513] " tromey at gcc dot gnu dot org
  2007-01-20  1:24 ` tromey at gcc dot gnu dot org
@ 2007-01-20  1:30 ` pinskia at gcc dot gnu dot org
  2007-01-21  4:35 ` ghazi at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-20  1:30 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-01-20 01:30 -------
I remember Andreas T. mentioned this before.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Bootstrap failure with      |[4.3 Regression] Bootstrap
                   |libgcj on sparc-sun-        |failure with libgcj on
                   |solaris2.10                 |sparc-sun-solaris2.10
   Target Milestone|---                         |4.3.0


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-01-20  1:30 ` [Bug libgcj/30513] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-01-21  4:35 ` ghazi at gcc dot gnu dot org
  2007-01-21 17:18 ` tromey at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-01-21  4:35 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from ghazi at gcc dot gnu dot org  2007-01-21 04:35 -------
Tom, I tried your patch and now I get the following error.  On line 14 in
AnnotationInvocationHandler.h, there is "namespace sun" and "sun" is defined to
1 on solaris.  When I recompile with -ansi (which eliminates "sun" but leaves
things like __sun__ defined) then the compile succeeds:

/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/./gcc/xgcc -shared-libgcc
-B/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/./gcc -nostdinc++
-L/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src
-L/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src/.libs
-B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/
-isystem /usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include -m64 -DHAVE_CONFIG_H -I.
-I../../../../egcc-SVN20070119/libjava -I./include -I./gcj
-I../../../../egcc-SVN20070119/libjava -Iinclude
-I../../../../egcc-SVN20070119/libjava/include
-I../../../../egcc-SVN20070119/libjava/classpath/include -Iclasspath/include
-I../../../../egcc-SVN20070119/libjava/classpath/native/fdlibm
-I../../../../egcc-SVN20070119/libjava/../boehm-gc/include
-I../boehm-gc/include -I../../../../egcc-SVN20070119/libjava/libltdl
-I../../../../egcc-SVN20070119/libjava/libltdl
-I../../../../egcc-SVN20070119/libjava/.././libjava/../gcc
-I../../../../egcc-SVN20070119/libjava/../zlib
-I../../../../egcc-SVN20070119/libjava/../libffi/include -I../libffi/include
-fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local\"
-DTOOLEXECLIBDIR=\"/usr/local/lib/sparcv9\" -DJAVA_HOME=\"/usr/local\"
-DBOOT_CLASS_PATH=\"/usr/local/share/java/libgcj-4.3.0.jar\"
-DJAVA_EXT_DIRS=\"/usr/local/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/local/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/usr/local/lib/sparcv9/gcj-4.3.0\"
-DPATH_SEPARATOR=\":\"
-DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/lib/sparcv9/gcj-4.3.0/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.3.0/classmap.db\" -g -O2 -m64 -MT
java/lang/natClass.lo -MD -MP -MF java/lang/.deps/natClass.Tpo -c
../../../../egcc-SVN20070119/libjava/java/lang/natClass.cc  -fPIC -DPIC -o
java/lang/.libs/natClass.o
In file included from
../../../../egcc-SVN20070119/libjava/java/lang/natClass.cc:72:
../../../../egcc-SVN20070119/libjava/sun/reflect/annotation/AnnotationInvocationHandler.h:14:
error: expected identifier before numeric constant
../../../../egcc-SVN20070119/libjava/sun/reflect/annotation/AnnotationInvocationHandler.h:14:
error: expected unqualified-id before numeric constant
In file included from
../../../../egcc-SVN20070119/libjava/java/lang/natClass.cc:73:
../../../../egcc-SVN20070119/libjava/java/lang/Enum.h:7: error: expected `}'
before end of line
../../../../egcc-SVN20070119/libjava/java/lang/Enum.h:7: error: expected
declaration before end of line
make[5]: *** [java/lang/natClass.lo] Error 1


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-01-21  4:35 ` ghazi at gcc dot gnu dot org
@ 2007-01-21 17:18 ` tromey at gcc dot gnu dot org
  2007-01-22 22:54 ` andreast at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-21 17:18 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from tromey at gcc dot gnu dot org  2007-01-21 17:18 -------
Interesting -- I would not have thought of trying -ansi.
I wonder if this approach would really work for us.
I wonder sometime in the future -ansi will turn off other
GNU extensions that we use.

Andreas T. had seen this problem a while back; the approach we had
talked about then was adding '#undef sun' somewhere... perhaps posix.h.


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-01-21 17:18 ` tromey at gcc dot gnu dot org
@ 2007-01-22 22:54 ` andreast at gcc dot gnu dot org
  2007-01-23  7:29 ` andreast at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-22 22:54 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from andreast at gcc dot gnu dot org  2007-01-22 22:54 -------
I undef'ed the sun in gcj/array.h since this was the only header I found useful
for the moment. Having done this led me to the mentioned problem with
write/read_barrier which is not implemented for sparc. Adding this missing
stuff leads to a complete build for sparc-solaris8 multilib. Unfortunatley I
fail with boehm-gc warnings which disturbs the test output. I'm too tired atm
to follow this.

Attached the barriers. You might have more luck.

Next I try is to add -ansi in CXX_FLAGS in Makefile.am

Andreas 


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-01-22 22:54 ` andreast at gcc dot gnu dot org
@ 2007-01-23  7:29 ` andreast at gcc dot gnu dot org
  2007-01-23  7:36 ` andreast at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-23  7:29 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from andreast at gcc dot gnu dot org  2007-01-23 07:29 -------
Currently I'm not able to attach the patch. Sent privately.


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-01-23  7:29 ` andreast at gcc dot gnu dot org
@ 2007-01-23  7:36 ` andreast at gcc dot gnu dot org
  2007-01-23 22:10 ` andreast at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-23  7:36 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from andreast at gcc dot gnu dot org  2007-01-23 07:36 -------
Created an attachment (id=12936)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12936&action=view)
patch


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-01-23  7:36 ` andreast at gcc dot gnu dot org
@ 2007-01-23 22:10 ` andreast at gcc dot gnu dot org
  2007-01-23 22:54 ` andreast at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-23 22:10 UTC (permalink / raw)
  To: java-prs



------- Comment #9 from andreast at gcc dot gnu dot org  2007-01-23 22:10 -------
Here is what I get when I add -ansi to the CXX flags:

gnu/java/nio/channels/natFileChannelImpl.cc: In member function 'void
gnu::java::nio::channels::FileChannelImpl::implTruncate(jlong)':
gnu/java/nio/channels/natFileChannelImpl.cc:262: error: invalid cast from type
'off_t' to type 'jlong'
gnu/java/nio/channels/natFileChannelImpl.cc:268: error: invalid cast from type
'off_t' to type 'jlong'
gnu/java/nio/channels/natFileChannelImpl.cc:270: error: no matching function
for call to 'longlong_t::longlong_t(__java_long)'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t::longlong_t()
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:     
           longlong_t::longlong_t(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc:274: error: conversion from 'jlong'
to non-scalar type 'off_t' requested
gnu/java/nio/channels/natFileChannelImpl.cc:279: error: no matching function
for call to 'longlong_t::longlong_t(jlong&)'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t::longlong_t()
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:     
           longlong_t::longlong_t(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc:282: error: no matching function
for call to 'longlong_t::longlong_t(jlong&)'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t::longlong_t()
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:     
           longlong_t::longlong_t(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc: In member function 'void
gnu::java::nio::channels::FileChannelImpl::seek(jlong)':
gnu/java/nio/channels/natFileChannelImpl.cc:294: error: no matching function
for call to 'longlong_t::longlong_t(jlong&)'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t::longlong_t()
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:     
           longlong_t::longlong_t(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc:295: error: no match for
'operator==' in 'r == -0x00000000000000001'
gnu/java/nio/channels/natFileChannelImpl.cc:297: error: cannot convert 'off_t'
to 'jlong' in assignment
gnu/java/nio/channels/natFileChannelImpl.cc: In member function 'virtual jlong
gnu::java::nio::channels::FileChannelImpl::size()':
gnu/java/nio/channels/natFileChannelImpl.cc:306: error: cannot convert 'off_t'
to 'jlong' in return
gnu/java/nio/channels/natFileChannelImpl.cc: In member function 'jint
gnu::java::nio::channels::FileChannelImpl::available()':
gnu/java/nio/channels/natFileChannelImpl.cc:423: error: conversion from 'int'
to non-scalar type 'longlong_t' requested
gnu/java/nio/channels/natFileChannelImpl.cc:426: error: conversion from 'int'
to non-scalar type 'off_t' requested
gnu/java/nio/channels/natFileChannelImpl.cc:426: error: no matching function
for call to 'longlong_t::longlong_t(int)'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t::longlong_t()
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:     
           longlong_t::longlong_t(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc:428: error: no match for
'operator-' in 'sb.stat::st_size - where'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function 'jboolean
gnu::java::nio::channels::FileChannelImpl::lock(jlong, jlong, jboolean,
jboolean)':
gnu/java/nio/channels/natFileChannelImpl.cc:464: error: no match for
'operator=' in 'lockdata.flock::l_start = pos'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t& longlong_t::operator=(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc:465: error: no match for
'operator=' in 'lockdata.flock::l_len = len'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t& longlong_t::operator=(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc: In member function 'void
gnu::java::nio::channels::FileChannelImpl::unlock(jlong, jlong)':
gnu/java/nio/channels/natFileChannelImpl.cc:483: error: no match for
'operator=' in 'lockdata.flock::l_start = pos'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t& longlong_t::operator=(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc:484: error: no match for
'operator=' in 'lockdata.flock::l_len = len'
/export/data/devel-test/gcc-svn/objdir/./gcc/include/sys/types.h:70: note:
candidates are: longlong_t& longlong_t::operator=(const longlong_t&)
gnu/java/nio/channels/natFileChannelImpl.cc: In member function
'java::nio::MappedByteBuffer*
gnu::java::nio::channels::FileChannelImpl::mapImpl(jchar, jlong, jint)':
gnu/java/nio/channels/natFileChannelImpl.cc:508: error: conversion from 'jint'
to non-scalar type 'off_t' requested
gmake[3]: *** [gnu/java/nio/channels/natFileChannelImpl.lo] Error 1


This has to do with the fixincludes in sys/types.h from gcc I guess. At least
in this header we see this:

#if  !defined(__STRICT_ANSI__) && !defined(_NO_LONGLONG)
typedef long long               longlong_t;
typedef unsigned long long      u_longlong_t;
#else
/* used to reserve space and generate alignment */
typedef union {
        double  _d;
        int32_t _l[2];
} longlong_t;
typedef union {
        double          _d;
        uint32_t        _l[2];
} u_longlong_t;
#endif  /* __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) */

and for off_t:

#if defined(_LP64) || _FILE_OFFSET_BITS == 32
typedef long            off_t;          /* offsets within files */
#elif _FILE_OFFSET_BITS == 64
typedef longlong_t      off_t;          /* offsets within files */
#endif

#if defined(_LARGEFILE64_SOURCE)
#ifdef _LP64
typedef off_t           off64_t;        /* offsets within files */
#else
typedef longlong_t      off64_t;        /* offsets within files */
#endif
#endif  /* _LARGEFILE64_SOURCE */

So we see that in the 32-bit part with strict ansi longlong is not defined.
This is what I read.

So '#undef sun' in a header (which one?)  seems for me the cheapest/easiest
solution.

Ah, yes, if I did not already mention it, I work on sparc-solaris8 ;) with
multilib build. The -m64 part built fine, btw.

Andreas


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-01-23 22:10 ` andreast at gcc dot gnu dot org
@ 2007-01-23 22:54 ` andreast at gcc dot gnu dot org
  2007-01-24 19:06 ` andreast at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-23 22:54 UTC (permalink / raw)
  To: java-prs



-- 

andreast at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |andreast at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-01-20 01:22:11         |2007-01-23 22:54:10
               date|                            |


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2007-01-23 22:54 ` andreast at gcc dot gnu dot org
@ 2007-01-24 19:06 ` andreast at gcc dot gnu dot org
  2007-01-27 21:46 ` andreast at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-24 19:06 UTC (permalink / raw)
  To: java-prs



------- Comment #10 from andreast at gcc dot gnu dot org  2007-01-24 19:06 -------
Patch sent here:

http://gcc.gnu.org/ml/java-patches/2007-q1/msg00164.html

I await comments from the sparc maintainers.

Andreas


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2007-01-24 19:06 ` andreast at gcc dot gnu dot org
@ 2007-01-27 21:46 ` andreast at gcc dot gnu dot org
  2007-02-08 19:49 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-01-27 21:46 UTC (permalink / raw)
  To: java-prs



------- Comment #11 from andreast at gcc dot gnu dot org  2007-01-27 21:46 -------
Subject: Bug 30513

Author: andreast
Date: Sat Jan 27 21:46:15 2007
New Revision: 121239

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121239
Log:
2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>

        PR libgcj/30513
        * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
        libgcj_flags to undefine 'sun' at compile time.
        * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
        Sparc.
        (write_barrier): Likewise.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/configure.host
    trunk/libjava/sysdep/sparc/locks.h


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2007-01-27 21:46 ` andreast at gcc dot gnu dot org
@ 2007-02-08 19:49 ` tromey at gcc dot gnu dot org
  2007-02-08 20:46 ` andreast at gcc dot gnu dot org
  2007-07-02 14:48 ` ro at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-02-08 19:49 UTC (permalink / raw)
  To: java-prs



------- Comment #12 from tromey at gcc dot gnu dot org  2007-02-08 19:49 -------
Subject: Bug 30513

Author: tromey
Date: Thu Feb  8 19:49:32 2007
New Revision: 121721

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121721
Log:
2007-01-27  Andreas Tobler  <a.tobler@schweiz.org>

        PR libgcj/30513
        * configure.host: Add forgottten sysdep_dir to sparc. Add a flag to
        libgcj_flags to undefine 'sun' at compile time.
        * sysdep/sparc/locks.h (read_barrier): New functions for 32 and 64 bit
        Sparc.
        (write_barrier): Likewise.

Modified:
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/ChangeLog
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/configure.host
   
branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/sysdep/sparc/locks.h


-- 


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2007-02-08 19:49 ` tromey at gcc dot gnu dot org
@ 2007-02-08 20:46 ` andreast at gcc dot gnu dot org
  2007-07-02 14:48 ` ro at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-02-08 20:46 UTC (permalink / raw)
  To: java-prs



------- Comment #13 from andreast at gcc dot gnu dot org  2007-02-08 20:46 -------
I'll close it. Doko confirmed it is working on sparc-linux. Thanks.


-- 

andreast at gcc dot gnu dot org changed:

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


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


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

* [Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10
  2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2007-02-08 20:46 ` andreast at gcc dot gnu dot org
@ 2007-07-02 14:48 ` ro at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: ro at gcc dot gnu dot org @ 2007-07-02 14:48 UTC (permalink / raw)
  To: java-prs



------- Comment #14 from ro at gcc dot gnu dot org  2007-07-02 14:48 -------
Subject: Bug 30513

Author: ro
Date: Mon Jul  2 14:48:28 2007
New Revision: 126210

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126210
Log:
        PR libgcj/30513
        * configure.host (i[3-6]86-*): Undef sun.


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


-- 


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


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

end of thread, other threads:[~2007-07-02 14:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-20  0:43 [Bug libgcj/30513] New: Bootstrap failure with libgcj on sparc-sun-solaris2.10 ghazi at gcc dot gnu dot org
2007-01-20  1:22 ` [Bug libgcj/30513] " tromey at gcc dot gnu dot org
2007-01-20  1:24 ` tromey at gcc dot gnu dot org
2007-01-20  1:30 ` [Bug libgcj/30513] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-01-21  4:35 ` ghazi at gcc dot gnu dot org
2007-01-21 17:18 ` tromey at gcc dot gnu dot org
2007-01-22 22:54 ` andreast at gcc dot gnu dot org
2007-01-23  7:29 ` andreast at gcc dot gnu dot org
2007-01-23  7:36 ` andreast at gcc dot gnu dot org
2007-01-23 22:10 ` andreast at gcc dot gnu dot org
2007-01-23 22:54 ` andreast at gcc dot gnu dot org
2007-01-24 19:06 ` andreast at gcc dot gnu dot org
2007-01-27 21:46 ` andreast at gcc dot gnu dot org
2007-02-08 19:49 ` tromey at gcc dot gnu dot org
2007-02-08 20:46 ` andreast at gcc dot gnu dot org
2007-07-02 14:48 ` ro at gcc dot gnu dot 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).