jetma / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

LINK : fatal error LNK1257: code generation failed; error C4716: 'Java_lu_flier_script_V8Array_internalToBooleanArray' : must return a value #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Build v8 for win32
1. Try to build the current source code, call "ant" on the jav8 folder
---> change build.xml to point to visual studio v8 output directory:
<property name="libv8.path" value="${env.V8_HOME}/build/Release/lib"/>

What is the expected output? What do you see instead?

Expected a Succesfull build.
But got an Link error, because of missing return values in the jav8.cpp.

What version of the product are you using? On what operating system?

Subversion Revision 68
Operationsystem Win7x64 but build for Win32.
JNI Header of jdk1.6.0_29_x32.

Please provide any additional information below.

This is the ant output:

Buildfile: c:\data\coding\Own\jav8\build.xml

prepare:

compile:

jni:
     [echo] Generating JNI header ...
     [echo] Building JNI library with release mode ...
       [cc] Starting dependency analysis for 3 files.
       [cc] 3 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported;  ignored
       [cc] jav8.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
       [cc] LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported;  ignored
       [cc] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
       [cc]    Creating library jav8.lib and object jav8.exp
       [cc] Generating code
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(1041) : error C4716: 'Java_lu_flier_script_V8Array_internalToBooleanArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(1023) : error C4716: 'Java_lu_flier_script_V8Array_internalToFloatArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(1003) : error C4716: 'Java_lu_flier_script_V8Array_internalToDoubleArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(983) : error C4716: 'Java_lu_flier_script_V8Array_internalToShortArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(963) : error C4716: 'Java_lu_flier_script_V8Array_internalToLongArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(943) : error C4716: 'Java_lu_flier_script_V8Array_internalToIntArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(1059) : error C4716: 'Java_lu_flier_script_V8Array_internalToStringArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(1076) : error C4716: 'Java_lu_flier_script_V8Array_internalToDateArray' : must return a value
       [cc] c:\data\coding\own\jav8\jni\jav8.cpp(546) : error C4716: 'Java_lu_flier_script_V8Array_internalSet' : must return a value
       [cc] LINK : fatal error LNK1257: code generation failed

Original issue reported on code.google.com by m.reipre...@googlemail.com on 11 Feb 2013 at 10:27

GoogleCodeExporter commented 9 years ago
fixed in SVN trunk code after r73

Original comment by flier...@gmail.com on 13 Jun 2013 at 9:56