Hi:

  I just updated to SDK 1.27.0 (from 64bit incoming from several weeks 
ago), and I now get a SDL2 compile failure when trying to compile my SDL2 
app under OSX 10.9.  Anything else I should be changing to support 1.27.0? 
Here's the error log:

WARNING  root: including port: sdl2
WARNING  root: retrieving port: sdl2 from 
https://github.com/emscripten-ports/SDL2/archive/master.zip
WARNING  root: unpacking port: sdl2
WARNING  root: building port: sdl2
/Users/aking/.emscripten_ports/sdl2/SDL2-master/src/atomic/SDL_spinlock.c:59:12:
 
error: cannot initialize return object of type 'SDL_bool' with an rvalue of 
type 'bool'
    return (__sync_lock_test_and_set(lock, 1) == 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ERROR    root: compiler frontend failed to generate LLVM bitcode, halting
/Users/aking/.emscripten_ports/sdl2/SDL2-master/src/atomic/SDL_atomic.c:119:12: 
error: cannot initialize return object of type 'SDL_bool' with an rvalue of 
type 'bool'
    return __sync_bool_compare_and_swap(a, oldval, newval);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ERROR    root: compiler frontend failed to generate LLVM bitcode, halting
ERROR    root: a problem occurred when using an emscripten-ports library. 
try to run    emcc --clear-cache --clear-ports    and then run this command 
again
Traceback (most recent call last):
  File "/Users/aking/src/emsdk_portable/emscripten/1.27.0/emcc", line 1179, 
in <module>
    extra_files_to_link = system_libs.get_ports(shared.Settings)
  File 
"/Users/aking/src/emsdk_portable/emscripten/1.27.0/tools/system_libs.py", 
line 702, in get_ports
    ret += port.get(Ports, settings, shared)
  File 
"/Users/aking/src/emsdk_portable/emscripten/1.27.0/tools/ports/sdl.py", 
line 50, in get
    return [shared.Cache.get('sdl2', create)]
  File "/Users/aking/src/emsdk_portable/emscripten/1.27.0/tools/cache.py", 
line 36, in get
    temp = creator()
  File 
"/Users/aking/src/emsdk_portable/emscripten/1.27.0/tools/ports/sdl.py", 
line 46, in create
    ports.run_commands(commands)
  File 
"/Users/aking/src/emsdk_portable/emscripten/1.27.0/tools/system_libs.py", 
line 589, in run_commands
    run_commands(commands)
  File 
"/Users/aking/src/emsdk_portable/emscripten/1.27.0/tools/system_libs.py", 
line 26, in run_commands
    pool.map(call_process, commands, chunksize=1)
  File 
"/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py",
 
line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File 
"/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py",
 
line 558, in get
    raise self._value
Exception: Command '['/usr/local/opt/python/bin/python2.7', 
'/Users/aking/src/emsdk_portable/emscripten/1.27.0/emcc', 
'/Users/aking/.emscripten_ports/sdl2/SDL2-master/src/atomic/SDL_spinlock.c', 
'-O2', '-o', 
'/Users/aking/.emscripten_cache/ports-builds/sdl2/src/atomic/SDL_spinlock.c.o', 
'-I/Users/aking/.emscripten_cache/ports-builds/sdl2/include', '-O2', 
'-DUSING_GENERATED_CONFIG_H', '-Wno-warn-absolute-paths', '-w']' returned 
non-zero exit status 1
/Users/aking/.emscripten_ports/sdl2/SDL2-master/src/SDL.c:84:12: error: 
cannot initialize return object of type 'SDL_bool' with an rvalue of type 
'bool'
    return (SDL_SubsystemRefCount[subsystem_index] == 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aking/.emscripten_ports/sdl2/SDL2-master/src/SDL.c:98:12: error: 
cannot initialize return object of type 'SDL_bool' with an rvalue of type 
'bool'
    return SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit;
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
ERROR    root: compiler frontend failed to generate LLVM bitcode, halting
make[1]: *** [sdl2app] Error 1
make: *** [all] Error 2
gem:Emscripten aking$

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to