This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/20267] New: too few arguments to function _Jv_AllocObject when class/object instantiated with new operator.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]