aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
905 stars 210 forks source link

win8 build issue #161

Closed unicomp21 closed 10 years ago

unicomp21 commented 10 years ago
Running postbuild commands
"C:\Program Files\Emscripten\emscripten\1.16.0\emcc.bat" bin/html5/release/minko
-tutorial-08-my-first-script.bc -o bin/html5/release/minko-tutorial-08-my-first-
script.html -O2 --closure 1 -s CLOSURE_ANNOTATIONS=1 -s ERROR_ON_UNDEFINED_SYMBO
LS=1 -s DISABLE_EXCEPTION_CATCHING=0 -s TOTAL_MEMORY=268435456 --preload-file bi
n/html5/release/asset || call "C:\Users\John\Documents\repo\minko\tool\win\scrip
t\fail.bat" bin/html5/release/minko-tutorial-08-my-first-script.bc
ERROR    root: Invoking Process failed: <<< C:/Program Files/Emscripten/python/2
.7.5.3_64bit/python.exe C:\Program Files\Emscripten\emscripten\1.16.0\emcc C:\Pr
ogram Files\Emscripten\emscripten\1.16.0\system\lib\libc\musl\src\locale\towuppe
r_l.c -o c:/users/john/appdata/local/temp\tmpup8ruf\towupper_l.c.o -I C:\Program
 Files\Emscripten\emscripten\1.16.0\system\lib\libc\musl\src\internal -I C:\Prog
ram Files\Emscripten\emscripten\1.16.0\system\lib\libc\musl\arch\js -O2 >>>
mingw32-make[1]: *** Deleting file `bin/html5/release/minko-tutorial-08-my-first
-script.bc'
Traceback (most recent call last):
  File "C:\Program Files\Emscripten\emscripten\1.16.0\\emcc", line 1478, in <mod
ule>
    extra_files_to_link = system_libs.calculate(temp_files, in_temp, stdout, std
err)
  File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\system_libs.py", lin
e 418, in calculate
    libfile = shared.Cache.get(name, create)
  File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\cache.py", line 36,
in get
    shutil.copyfile(creator(), cachename)
  File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\system_libs.py", lin
e 298, in create_libcextra
    return build_libc('libcextra.bc', libcextra_files)
  File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\system_libs.py", lin
e 34, in build_libc
    execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib',
src), '-o', o] + musl_internal_includes + lib_opts, stdout=stdout, stderr=stderr
)
  File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\shared.py", line 180
2, in execute
    return Popen(cmd, *args, **kw).communicate() # let compiler frontend print d
irectly, so colors are saved (PIPE kills that)
  File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", lin
e 806, in communicate
    return self._communicate(input)
  File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", lin
e 1033, in _communicate
    stdout_thread.join()
  File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\threading.py", line
 947, in join
    self.__block.wait()
  File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\threading.py", line
 339, in wait
    waiter.acquire()
unicomp21 commented 10 years ago
"C:\Program Files\Emscripten\emscripten\1.16.0\emcc.bat"   -DEMSCRIPTEN -Wno-war
n-absolute-paths -DNDEBUG -DASSIMP_BUILD_NO_EXPORT -DASSIMP_BUILD_BOOST_WORKAROU
ND -DASSIMP_BUILD_NO_X_IMPORTER -DASSIMP_BUILD_NO_3DS_IMPORTER -DASSIMP_BUILD_NO
_MD3_IMPORTER -DASSIMP_BUILD_NO_MD2_IMPORTER -DASSIMP_BUILD_NO_MDL_IMPORTER -DAS
SIMP_BUILD_NO_ASE_IMPORTER -DASSIMP_BUILD_NO_HMP_IMPORTER -DASSIMP_BUILD_NO_SMD_
IMPORTER -DASSIMP_BUILD_NO_MDC_IMPORTER -DASSIMP_BUILD_NO_MD5_IMPORTER -DASSIMP_
BUILD_NO_LWO_IMPORTER -DASSIMP_BUILD_NO_DXF_IMPORTER -DASSIMP_BUILD_NO_NFF_IMPOR
TER -DASSIMP_BUILD_NO_RAW_IMPORTER -DASSIMP_BUILD_NO_OFF_IMPORTER -DASSIMP_BUILD
_NO_AC_IMPORTER -DASSIMP_BUILD_NO_BVH_IMPORTER -DASSIMP_BUILD_NO_IRRMESH_IMPORTE
R -DASSIMP_BUILD_NO_IRR_IMPORTER -DASSIMP_BUILD_NO_Q3D_IMPORTER -DASSIMP_BUILD_N
O_B3D_IMPORTER -DASSIMP_BUILD_NO_TERRAGEN_IMPORTER -DASSIMP_BUILD_NO_CSM_IMPORTE
R -DASSIMP_BUILD_NO_3D_IMPORTER -DASSIMP_BUILD_NO_LWS_IMPORTER -DASSIMP_BUILD_NO
_OGRE_IMPORTER -DASSIMP_BUILD_NO_MS3D_IMPORTER -DASSIMP_BUILD_NO_COB_IMPORTER -D
ASSIMP_BUILD_NO_Q3BSP_IMPORTER -DASSIMP_BUILD_NO_NDO_IMPORTER -DASSIMP_BUILD_NO_
IFC_IMPORTER -DASSIMP_BUILD_NO_XGL_IMPORTER -D"AI_LMW_MAX_WEIGHTS=4" -D"AI_SLM_D
EFAULT_MAX_VERTICES=128000" -D"AI_SLM_DEFAULT_MAX_TRIANGLES=21845" -I../../frame
work/include -I"C:/Program\ Files/Emscripten/emscripten/1.16.0/system/include" -
Iinclude -Isrc -Ilib/assimp/code -Ilib/assimp/code/BoostWorkaround -Ilib/assimp/
include -Ilib/assimp/contrib/clipper -Ilib/assimp/contrib/ConvertUTF -Ilib/assim
p/contrib/irrXML -Ilib/assimp/contrib/poly2tri -Ilib/assimp/contrib/unzip -Ilib/
assimp/contrib/zlib  -O2 -Wno-attributes -Wimplicit-function-declaration -Wparen
theses-equality  -o "obj/html5/release/gzlib.o" -MF obj/html5/release/gzlib.d -c
 "lib/assimp/contrib/zlib/gzlib.c"
clang.exe: warning: argument unused during compilation: '-MF obj/html5/release/g
zlib.d'
lib/assimp/contrib/zlib/gzlib.c:256:24: error: implicit declaration of function
      'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        state->start = LSEEK(state->fd, 0, SEEK_CUR);
                       ^
lib/assimp/contrib/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
#  define LSEEK lseek
                ^
lib/assimp/contrib/zlib/gzlib.c:256:24: note: did you mean 'fseek'?
        state->start = LSEEK(state->fd, 0, SEEK_CUR);
                       ^~~~~
                       fseek
lib/assimp/contrib/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
#  define LSEEK lseek
                ^
C:\Program Files\Emscripten\emscripten\1.16.0\system\include\libc\stdio.h:71:5:
note:
      'fseek' declared here
int fseek(FILE *, long, int);
    ^
1 error generated.
ERROR    root: compiler frontend failed to generate LLVM bitcode, halting
mingw32-make[1]: *** [obj/html5/release/gzlib.o] Error 1
mingw32-make: *** [minko-plugin-assimp] Error 2
Press any key to continue . . .
warrenseine commented 10 years ago

Hi,

Thanks for reporting this issue. I can see that you're using Emscripten 1.16.0, which is quite recent and I haven't had time to test it myself. Is the issue happening with 1.13.0?

I've already seen this issue somewhere (the LSEEK macro thing) and remember it was related to 64-bit builds. And since that's a major change in 1.16.0, it may be related. We'll have to look at it while we fix it because it's still broken in the Lua plugin anyway.

PS: I'd appreciate if you could add a little more detail when reporting an issue, and try to use formatting as much as possible so it's easy for me and others to read.

JMLX42 commented 10 years ago

Hi,

could you please test the latest version available on the dev branch and report?

Regards,