We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3613 - CMake build fails on Windows due to: fatal error RC1203: invalid language ID or language name specified
Summary: CMake build fails on Windows due to: fatal error RC1203: invalid language ID ...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: 2.0.5
Hardware: x86_64 Windows (All)
: P2 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL: https://ci.appveyor.com/project/conda...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-21 13:12 UTC by Daniel
Modified: 2017-08-10 02:05 UTC (History)
2 users (show)

See Also:


Attachments
Fixes this issue (495 bytes, patch)
2017-05-14 17:08 UTC, tschwinger
Details | Diff
HG changeset patch (807 bytes, patch)
2017-05-14 21:13 UTC, tschwinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2017-03-21 13:12:03 UTC
This problem is similar to https://bugzilla.libsdl.org/show_bug.cgi?id=3496, only in my case it occurs mid-build, and not at the end. Therefore, it might have a different reason and I am reporting it here anyway.

When building SDL 2.0.5 with CMake on Windows and reaching the file

    [ 50%] Building RC object CMakeFiles/SDL2.dir/src/main/windows/version.rc.res

the build process stops with the message:

    fatal error RC1203: invalid language ID or language name specified.

This error did not occur when building version 2.0.4 and occurs both with MSVC 9 and MSVC 14,

According to the MSVC documentation, the error can be solved by passing a correct /l flag: https://msdn.microsoft.com/en-us/library/5aw3x6s8.aspx, but I have no clue how to pass this to the CMake file that comes packaged with SDL2.0.5.

Here is the relevant output of my build operation:

~~~
(C:\bld\sdl2_1490099906476\_b_env) C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\build>C:\bld\sdl2_1490099906476\_b_env\Library\bin\cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="C:\bld\sdl2_1490099906476\_b_env\Library" -DCMAKE_BUILD_TYPE:STRING=!TARGET! !DIRECTX_FLAG! ..  
-- The C compiler identification is MSVC 15.0.30729.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- 0.4.1 :: 4 :: 1 :: 4 :: 2.0
-- Performing Test HAVE_WIN32_CC
-- Performing Test HAVE_WIN32_CC - Success
-- 
-- SDL2 was configured with the following options:
-- 
-- Platform: Windows-6.3.9600
-- 64-bit:   TRUE
-- Compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe
-- 
-- Subsystems:
--   Atomic:	ON
--   Audio:	ON
--   Video:	ON
--   Render:	ON
--   Events:	ON
--   Joystick:	ON
--   Haptic:	ON
--   Power:	ON
--   Threads:	ON
--   Timers:	ON
--   File:	ON
--   Loadso:	ON
--   CPUinfo:	ON
--   Filesystem:	ON
--   Dlopen:	ON
-- 
-- Options:
--   3DNOW                  (Wanted: ON): OFF
--   ALSA                   (Wanted: OFF): OFF
--   ALSA_SHARED            (Wanted: OFF): OFF
--   ALTIVEC                (Wanted: ON): OFF
--   ARTS                   (Wanted: OFF): OFF
--   ARTS_SHARED            (Wanted: OFF): OFF
--   ASSEMBLY               (Wanted: ON): OFF
--   ASSERTIONS             (Wanted: auto): auto
--   CLOCK_GETTIME          (Wanted: OFF): OFF
--   DIRECTFB_SHARED        (Wanted: OFF): OFF
--   DIRECTX                (Wanted: OFF): OFF
--   DISKAUDIO              (Wanted: ON): ON
--   DUMMYAUDIO             (Wanted: ON): ON
--   ESD                    (Wanted: OFF): OFF
--   ESD_SHARED             (Wanted: OFF): OFF
--   FUSIONSOUND            (Wanted: OFF): OFF
--   FUSIONSOUND_SHARED     (Wanted: OFF): OFF
--   GCC_ATOMICS            (Wanted: OFF): OFF
--   INPUT_TSLIB            (Wanted: OFF): OFF
--   LIBC                   (Wanted: OFF): OFF
--   MIR_SHARED             (Wanted: OFF): OFF
--   MMX                    (Wanted: ON): OFF
--   NAS                    (Wanted: OFF): OFF
--   NAS_SHARED             (Wanted: OFF): OFF
--   OSS                    (Wanted: OFF): OFF
--   PTHREADS               (Wanted: OFF): OFF
--   PTHREADS_SEM           (Wanted: OFF): OFF
--   PULSEAUDIO             (Wanted: OFF): OFF
--   PULSEAUDIO_SHARED      (Wanted: OFF): OFF
--   RENDER_D3D             (Wanted: ON): OFF
--   RPATH                  (Wanted: OFF): OFF
--   SDL_DLOPEN             (Wanted: ON): OFF
--   SDL_STATIC_PIC         (Wanted: OFF): OFF
--   SNDIO                  (Wanted: OFF): OFF
--   SSE                    (Wanted: ON): OFF
--   SSE2                   (Wanted: ON): OFF
--   SSEMATH                (Wanted: ON): OFF
--   VIDEO_COCOA            (Wanted: OFF): OFF
--   VIDEO_DIRECTFB         (Wanted: OFF): OFF
--   VIDEO_DUMMY            (Wanted: ON): ON
--   VIDEO_MIR              (Wanted: OFF): OFF
--   VIDEO_OPENGL           (Wanted: ON): ON
--   VIDEO_OPENGLES         (Wanted: ON): ON
--   VIDEO_RPI              (Wanted: OFF): OFF
--   VIDEO_VIVANTE          (Wanted: OFF): OFF
--   VIDEO_WAYLAND          (Wanted: OFF): OFF
--   VIDEO_WAYLAND_QT_TOUCH (Wanted: OFF): OFF
--   VIDEO_X11              (Wanted: OFF): OFF
--   VIDEO_X11_XCURSOR      (Wanted: OFF): OFF
--   VIDEO_X11_XINERAMA     (Wanted: OFF): OFF
--   VIDEO_X11_XINPUT       (Wanted: OFF): OFF
--   VIDEO_X11_XRANDR       (Wanted: OFF): OFF
--   VIDEO_X11_XSCRNSAVER   (Wanted: OFF): OFF
--   VIDEO_X11_XSHAPE       (Wanted: OFF): OFF
--   VIDEO_X11_XVM          (Wanted: OFF): OFF
--   WAYLAND_SHARED         (Wanted: OFF): OFF
--   X11_SHARED             (Wanted: OFF): OFF
-- 
--  CFLAGS:        /DWIN32 /D_WINDOWS /W3
--  EXTRA_CFLAGS:  
--  EXTRA_LDFLAGS: 
--  EXTRA_LIBS:    user32;gdi32;winmm;imm32;ole32;oleaut32;version;uuid
-- 
--  Build Shared Library: ON
--  Build Static Library: ON
--  Build Static Library with Position Independent Code: OFF
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: C:/bld/sdl2_1490099906476/work/SDL2-2.0.5/build
(C:\bld\sdl2_1490099906476\_b_env) C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\build>if errorlevel 1 exit 1 
(C:\bld\sdl2_1490099906476\_b_env) C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\build>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.
Scanning dependencies of target SDL2main
[  0%] Building C object CMakeFiles/SDL2main.dir/src/main/windows/SDL_windows_main.c.obj
SDL_windows_main.c
[  1%] Linking C static library SDL2main.lib
[  1%] Built target SDL2main
Scanning dependencies of target SDL2
[  1%] Building C object CMakeFiles/SDL2.dir/src/SDL.c.obj
SDL.c
[  1%] Building C object CMakeFiles/SDL2.dir/src/SDL_assert.c.obj
SDL_assert.c
[  2%] Building C object CMakeFiles/SDL2.dir/src/SDL_error.c.obj
SDL_error.c
[  2%] Building C object CMakeFiles/SDL2.dir/src/SDL_hints.c.obj
SDL_hints.c
[  2%] Building C object CMakeFiles/SDL2.dir/src/SDL_log.c.obj
SDL_log.c
[  3%] Building C object CMakeFiles/SDL2.dir/src/atomic/SDL_atomic.c.obj
SDL_atomic.c
[  3%] Building C object CMakeFiles/SDL2.dir/src/atomic/SDL_spinlock.c.obj
SDL_spinlock.c
[  4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audio.c.obj
SDL_audio.c
[  4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiocvt.c.obj
SDL_audiocvt.c
[  4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiodev.c.obj
SDL_audiodev.c
[  5%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiotypecvt.c.obj
SDL_audiotypecvt.c
[  5%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_mixer.c.obj
SDL_mixer.c
[  6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_wave.c.obj
SDL_wave.c
[  6%] Building C object CMakeFiles/SDL2.dir/src/cpuinfo/SDL_cpuinfo.c.obj
SDL_cpuinfo.c
[  6%] Building C object CMakeFiles/SDL2.dir/src/dynapi/SDL_dynapi.c.obj
SDL_dynapi.c
[  7%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_clipboardevents.c.obj
SDL_clipboardevents.c
[  7%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_dropevents.c.obj
SDL_dropevents.c
[  8%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_events.c.obj
SDL_events.c
[  8%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_gesture.c.obj
SDL_gesture.c
[  8%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_keyboard.c.obj
SDL_keyboard.c
[  9%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_mouse.c.obj
SDL_mouse.c
[  9%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_quit.c.obj
SDL_quit.c
[  9%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_touch.c.obj
SDL_touch.c
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_windowevents.c.obj
SDL_windowevents.c
[ 10%] Building C object CMakeFiles/SDL2.dir/src/file/SDL_rwops.c.obj
SDL_rwops.c
[ 11%] Building C object CMakeFiles/SDL2.dir/src/libm/e_atan2.c.obj
e_atan2.c
[ 11%] Building C object CMakeFiles/SDL2.dir/src/libm/e_log.c.obj
e_log.c
[ 11%] Building C object CMakeFiles/SDL2.dir/src/libm/e_pow.c.obj
e_pow.c
[ 12%] Building C object CMakeFiles/SDL2.dir/src/libm/e_rem_pio2.c.obj
e_rem_pio2.c
[ 12%] Building C object CMakeFiles/SDL2.dir/src/libm/e_sqrt.c.obj
e_sqrt.c
[ 13%] Building C object CMakeFiles/SDL2.dir/src/libm/k_cos.c.obj
k_cos.c
[ 13%] Building C object CMakeFiles/SDL2.dir/src/libm/k_rem_pio2.c.obj
k_rem_pio2.c
[ 13%] Building C object CMakeFiles/SDL2.dir/src/libm/k_sin.c.obj
k_sin.c
[ 14%] Building C object CMakeFiles/SDL2.dir/src/libm/k_tan.c.obj
k_tan.c
[ 14%] Building C object CMakeFiles/SDL2.dir/src/libm/s_atan.c.obj
s_atan.c
[ 15%] Building C object CMakeFiles/SDL2.dir/src/libm/s_copysign.c.obj
s_copysign.c
[ 15%] Building C object CMakeFiles/SDL2.dir/src/libm/s_cos.c.obj
s_cos.c
[ 15%] Building C object CMakeFiles/SDL2.dir/src/libm/s_fabs.c.obj
s_fabs.c
[ 16%] Building C object CMakeFiles/SDL2.dir/src/libm/s_floor.c.obj
s_floor.c
[ 16%] Building C object CMakeFiles/SDL2.dir/src/libm/s_scalbn.c.obj
s_scalbn.c
[ 16%] Building C object CMakeFiles/SDL2.dir/src/libm/s_sin.c.obj
s_sin.c
[ 17%] Building C object CMakeFiles/SDL2.dir/src/libm/s_tan.c.obj
s_tan.c
[ 17%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_d3dmath.c.obj
SDL_d3dmath.c
[ 18%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_render.c.obj
SDL_render.c
[ 18%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_yuv_mmx.c.obj
SDL_yuv_mmx.c
[ 18%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_yuv_sw.c.obj
SDL_yuv_sw.c
[ 19%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d/SDL_render_d3d.c.obj
SDL_render_d3d.c
[ 19%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d11/SDL_render_d3d11.c.obj
SDL_render_d3d11.c
[ 20%] Building C object CMakeFiles/SDL2.dir/src/render/opengl/SDL_render_gl.c.obj
SDL_render_gl.c
[ 20%] Building C object CMakeFiles/SDL2.dir/src/render/opengl/SDL_shaders_gl.c.obj
SDL_shaders_gl.c
[ 20%] Building C object CMakeFiles/SDL2.dir/src/render/opengles/SDL_render_gles.c.obj
SDL_render_gles.c
[ 21%] Building C object CMakeFiles/SDL2.dir/src/render/opengles2/SDL_render_gles2.c.obj
SDL_render_gles2.c
[ 21%] Building C object CMakeFiles/SDL2.dir/src/render/opengles2/SDL_shaders_gles2.c.obj
SDL_shaders_gles2.c
[ 22%] Building C object CMakeFiles/SDL2.dir/src/render/psp/SDL_render_psp.c.obj
SDL_render_psp.c
[ 22%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendfillrect.c.obj
SDL_blendfillrect.c
[ 22%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendline.c.obj
SDL_blendline.c
[ 23%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendpoint.c.obj
SDL_blendpoint.c
[ 23%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_drawline.c.obj
SDL_drawline.c
[ 23%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_drawpoint.c.obj
SDL_drawpoint.c
[ 24%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_render_sw.c.obj
SDL_render_sw.c
[ 24%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_rotate.c.obj
SDL_rotate.c
[ 25%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_getenv.c.obj
SDL_getenv.c
[ 25%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_iconv.c.obj
SDL_iconv.c
[ 25%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_malloc.c.obj
SDL_malloc.c
[ 26%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_qsort.c.obj
SDL_qsort.c
C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\src\stdlib\SDL_qsort.c(365) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\src\stdlib\SDL_qsort.c(416) : warning C4018: '>=' : signed/unsigned mismatch
C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\src\stdlib\SDL_qsort.c(421) : warning C4018: '>' : signed/unsigned mismatch
C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\src\stdlib\SDL_qsort.c(447) : warning C4018: '>=' : signed/unsigned mismatch
C:\bld\sdl2_1490099906476\work\SDL2-2.0.5\src\stdlib\SDL_qsort.c(452) : warning C4018: '>' : signed/unsigned mismatch
[ 26%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_stdlib.c.obj
SDL_stdlib.c
[ 27%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_string.c.obj
SDL_string.c
[ 27%] Building C object CMakeFiles/SDL2.dir/src/thread/SDL_thread.c.obj
SDL_thread.c
[ 27%] Building C object CMakeFiles/SDL2.dir/src/timer/SDL_timer.c.obj
SDL_timer.c
[ 28%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_RLEaccel.c.obj
SDL_RLEaccel.c
[ 28%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit.c.obj
SDL_blit.c
[ 29%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_0.c.obj
SDL_blit_0.c
[ 29%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_1.c.obj
SDL_blit_1.c
[ 29%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_A.c.obj
SDL_blit_A.c
[ 30%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_N.c.obj
SDL_blit_N.c
[ 30%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_auto.c.obj
SDL_blit_auto.c
[ 30%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_copy.c.obj
SDL_blit_copy.c
[ 31%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_slow.c.obj
SDL_blit_slow.c
[ 31%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_bmp.c.obj
SDL_bmp.c
[ 32%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_clipboard.c.obj
SDL_clipboard.c
[ 32%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_egl.c.obj
SDL_egl.c
[ 32%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_fillrect.c.obj
SDL_fillrect.c
[ 33%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_pixels.c.obj
SDL_pixels.c
[ 33%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_rect.c.obj
SDL_rect.c
[ 34%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_shape.c.obj
SDL_shape.c
[ 34%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_stretch.c.obj
SDL_stretch.c
[ 34%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_surface.c.obj
SDL_surface.c
[ 35%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_video.c.obj
SDL_video.c
[ 35%] Building C object CMakeFiles/SDL2.dir/src/joystick/SDL_gamecontroller.c.obj
SDL_gamecontroller.c
[ 36%] Building C object CMakeFiles/SDL2.dir/src/joystick/SDL_joystick.c.obj
SDL_joystick.c
[ 36%] Building C object CMakeFiles/SDL2.dir/src/haptic/SDL_haptic.c.obj
SDL_haptic.c
[ 36%] Building C object CMakeFiles/SDL2.dir/src/power/SDL_power.c.obj
SDL_power.c
[ 37%] Building C object CMakeFiles/SDL2.dir/src/audio/dummy/SDL_dummyaudio.c.obj
SDL_dummyaudio.c
[ 37%] Building C object CMakeFiles/SDL2.dir/src/audio/disk/SDL_diskaudio.c.obj
SDL_diskaudio.c
[ 37%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullevents.c.obj
SDL_nullevents.c
[ 38%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullframebuffer.c.obj
SDL_nullframebuffer.c
[ 38%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullvideo.c.obj
SDL_nullvideo.c
[ 39%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_windows.c.obj
SDL_windows.c
[ 39%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_xinput.c.obj
SDL_xinput.c
[ 39%] Building C object CMakeFiles/SDL2.dir/src/audio/winmm/SDL_winmm.c.obj
SDL_winmm.c
[ 40%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsclipboard.c.obj
SDL_windowsclipboard.c
[ 40%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsevents.c.obj
SDL_windowsevents.c
[ 41%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsframebuffer.c.obj
SDL_windowsframebuffer.c
[ 41%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowskeyboard.c.obj
SDL_windowskeyboard.c
[ 41%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmessagebox.c.obj
SDL_windowsmessagebox.c
[ 42%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmodes.c.obj
SDL_windowsmodes.c
[ 42%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmouse.c.obj
SDL_windowsmouse.c
[ 43%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsopengl.c.obj
SDL_windowsopengl.c
[ 43%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsopengles.c.obj
SDL_windowsopengles.c
[ 43%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsshape.c.obj
SDL_windowsshape.c
[ 44%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj
SDL_windowsvideo.c
[ 44%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowswindow.c.obj
SDL_windowswindow.c
[ 44%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_sysmutex.c.obj
SDL_sysmutex.c
[ 45%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_syssem.c.obj
SDL_syssem.c
[ 45%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_systhread.c.obj
SDL_systhread.c
[ 46%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_systls.c.obj
SDL_systls.c
[ 46%] Building C object CMakeFiles/SDL2.dir/src/thread/generic/SDL_syscond.c.obj
SDL_syscond.c
[ 46%] Building C object CMakeFiles/SDL2.dir/src/power/windows/SDL_syspower.c.obj
SDL_syspower.c
[ 47%] Building C object CMakeFiles/SDL2.dir/src/filesystem/windows/SDL_sysfilesystem.c.obj
SDL_sysfilesystem.c
[ 47%] Building C object CMakeFiles/SDL2.dir/src/timer/windows/SDL_systimer.c.obj
SDL_systimer.c
[ 48%] Building C object CMakeFiles/SDL2.dir/src/loadso/windows/SDL_sysloadso.c.obj
SDL_sysloadso.c
[ 48%] Building C object CMakeFiles/SDL2.dir/src/joystick/windows/SDL_dinputjoystick.c.obj
SDL_dinputjoystick.c
[ 48%] Building C object CMakeFiles/SDL2.dir/src/joystick/windows/SDL_mmjoystick.c.obj
SDL_mmjoystick.c
[ 49%] Building C object CMakeFiles/SDL2.dir/src/joystick/windows/SDL_windowsjoystick.c.obj
SDL_windowsjoystick.c
[ 49%] Building C object CMakeFiles/SDL2.dir/src/joystick/windows/SDL_xinputjoystick.c.obj
SDL_xinputjoystick.c
[ 50%] Building C object CMakeFiles/SDL2.dir/src/haptic/dummy/SDL_syshaptic.c.obj
SDL_syshaptic.c
[ 50%] Building RC object CMakeFiles/SDL2.dir/src/main/windows/version.rc.res
fatal error RC1203: invalid hexadecimal default language ID specified
NMAKE : fatal error U1077: 'C:\PROGRA~1\MIA713~1\Windows\v7.0\Bin\x64\RC.Exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
~~~

If relevant, the whole build operation can be seen here: https://ci.appveyor.com/project/conda-forge/sdl2-feedstock/build/1.0.12/job/iea55mc2j55k8jp7
Comment 1 tschwinger 2017-05-14 16:53:01 UTC
This is caused by `add_definitions(/GS-)` in `CMakeLists.txt`.

The "definitions" specified with that command are (global for once and) really just for defines, as they affect other tools that may be interested in them, as the resource compiler.

As a consequence, `rc.exe` chokes on an option that's intended for `cl.exe` *only*.
Comment 2 tschwinger 2017-05-14 17:08:03 UTC
Created attachment 2734 [details]
Fixes this issue

Attached patch adds the troublesome compiler option as a directory property, which very similar to what `add_definitions` does, except without affecting tools other than the compiler.
Comment 3 tschwinger 2017-05-14 21:13:14 UTC
Created attachment 2735 [details]
HG changeset patch

Replacing bare diff with a changeset patch.
Comment 4 Sam Lantinga 2017-08-10 02:05:57 UTC
This should be fixed by this commit:
https://hg.libsdl.org/SDL/rev/c92070a96da5