public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/20267] New: too few arguments to function _Jv_AllocObject when class/object instantiated with new operator.
@ 2005-03-01 22:27 niggadaz at alum dot rpi dot edu
2005-03-01 22:29 ` [Bug libgcj/20267] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: niggadaz at alum dot rpi dot edu @ 2005-03-01 22:27 UTC (permalink / raw)
To: java-prs
Here is the compilation failure I am facing out of libgcj build, I am
only concerned with the "too few arguments to function error...."
prims.cc: In function `void unblock_signal(int)':
prims.cc:136: warning: right-hand operand of comma has no effect
prims.cc:137: warning: right-hand operand of comma has no effect
java/lang/Class.h: In function `void _Jv_ThrowBadArrayIndex(jint)':
java/lang/Class.h:289: error: too few arguments to function
`java::lang::Object* _Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:343: error: at this point in file
java/lang/Class.h: In function `void _Jv_ThrowNullPointerException()':
java/lang/Class.h:289: error: too few arguments to function
`java::lang::Object* _Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:349: error: at this point in file
prims.cc: In function `JArray<java::lang::Object*>* _Jv_NewObjectArray(jsize,
java::lang::Class*, java::lang::Object*)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:480: error: at this point in file
prims.cc: In function `java::lang::Object* _Jv_NewPrimArray
(java::lang::Class*, jint)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:519: error: at this point in file
prims.cc: In function `java::lang::Object* _Jv_NewArray(jint, jint)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:564: error: at this point in file
prims.cc: In function `java::lang::Object* _Jv_NewMultiArray
(java::lang::Class*, jint, jint*)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:598: error: at this point in file
prims.cc: In function `java::lang::Object* _Jv_NewMultiArray
(java::lang::Class*, jint, ...)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:613: error: at this point in file
prims.cc: In function `JArray<java::lang::String*>* JvConvertArgv(int, const
char**)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:721: error: at this point in file
prims.cc: In function `jint _Jv_CreateJavaVM(void*)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:946: error: at this point in file
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:965: error: at this point in file
prims.cc: In function `void _Jv_RunMain(java::lang::Class*, const char*, int,
const char**, bool)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:1003: error: at this point in file
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:1006: error: at this point in file
prims.cc: In function `jint _Jv_divI(jint, jint)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:1114: error: at this point in file
prims.cc: In function `jint _Jv_remI(jint, jint)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:1130: error: at this point in file
prims.cc: In function `jlong _Jv_divJ(jlong, jlong)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:1146: error: at this point in file
prims.cc: In function `jlong _Jv_remJ(jlong, jlong)':
prims.cc:421: error: too few arguments to function `java::lang::Object*
_Jv_AllocObject(java::lang::Class*, jint)'
prims.cc:1162: error: at this point in file
prims.cc: At global scope:
prims.cc:132: warning: 'void unblock_signal(int)' defined but not used
Here are the compilation options that happened to be issued:
-D_GNU_SOURCE
-fno-rtti
-fnon-call-exceptions
-fdollars-in-identifiers
-Wswitch-enum
-W
-Wall-fPIC
-gdwarf-2
-fverbose-asm
-fmessage-length=0
-O0
-funsigned-char
-Wno-format-extra-args
-fno-builtin-abort
-fno-builtin-exit
-DPIC
Anyone seen this before? Seems to be related to the "new" operator on a
object. If you look at the source of some of these functions that are
complaining they don't even issue _Jv_AllocObject from the code's point of
view. The only thing I could think of is that the compiler (c++?) is
generating calls to _Jv_AllocObject and for some reason isn't creating the
parameters correctly, or the check for the parameters is confused. Does this
seem impossible? Or anyone could mention what segements in the compiler
manage this. A scrap of direction here :).
--
Summary: too few arguments to function _Jv_AllocObject when
class/object instantiated with new operator.
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: niggadaz at alum dot rpi dot edu
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20267
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/20267] too few arguments to function _Jv_AllocObject when class/object instantiated with new operator.
2005-03-01 22:27 [Bug libgcj/20267] New: too few arguments to function _Jv_AllocObject when class/object instantiated with new operator niggadaz at alum dot rpi dot edu
@ 2005-03-01 22:29 ` pinskia at gcc dot gnu dot org
2005-03-02 17:25 ` niggadaz at alum dot rpi dot edu
2005-03-02 21:50 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-01 22:29 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-01 20:17 -------
You seem to intermixing compiler versions and libgcj versions.
This works for me and many other people.
How are you building gcj/libgcj? Are you really building the full GCC or just libjava (which is not
supported at all)?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20267
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/20267] too few arguments to function _Jv_AllocObject when class/object instantiated with new operator.
2005-03-01 22:27 [Bug libgcj/20267] New: too few arguments to function _Jv_AllocObject when class/object instantiated with new operator niggadaz at alum dot rpi dot edu
2005-03-01 22:29 ` [Bug libgcj/20267] " pinskia at gcc dot gnu dot org
@ 2005-03-02 17:25 ` niggadaz at alum dot rpi dot edu
2005-03-02 21:50 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: niggadaz at alum dot rpi dot edu @ 2005-03-02 17:25 UTC (permalink / raw)
To: java-prs
------- Additional Comments From niggadaz at alum dot rpi dot edu 2005-03-02 12:55 -------
You are right the libjava is from 3.4.3 the rest of the compiler is 3.4.(0-3)
mixture. So I guess this should be closed out because there is no support.
Given that... is their another forum I can use? This is the compiler I am tied
too.
Regarding you statement of mixing... if I were to build this same mixture all
at once would that make a difference, because of some type of configuration, or
would the problem be due to mismatch of sources (change in abi).
Thanks.
Im just looking for leads at this point.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20267
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/20267] too few arguments to function _Jv_AllocObject when class/object instantiated with new operator.
2005-03-01 22:27 [Bug libgcj/20267] New: too few arguments to function _Jv_AllocObject when class/object instantiated with new operator niggadaz at alum dot rpi dot edu
2005-03-01 22:29 ` [Bug libgcj/20267] " pinskia at gcc dot gnu dot org
2005-03-02 17:25 ` niggadaz at alum dot rpi dot edu
@ 2005-03-02 21:50 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-02 21:50 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-02 21:49 -------
Works for me, so closing.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20267
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-02 21:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-01 22:27 [Bug libgcj/20267] New: too few arguments to function _Jv_AllocObject when class/object instantiated with new operator niggadaz at alum dot rpi dot edu
2005-03-01 22:29 ` [Bug libgcj/20267] " pinskia at gcc dot gnu dot org
2005-03-02 17:25 ` niggadaz at alum dot rpi dot edu
2005-03-02 21:50 ` pinskia 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).