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 4828 - SDL_render_metal.m compilation error against OS X 10.11 SDK
Summary: SDL_render_metal.m compilation error against OS X 10.11 SDK
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.0
Hardware: x86_64 Mac OS X 10.11
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-17 06:51 UTC by Dominik Reichardt
Modified: 2019-10-17 21:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Reichardt 2019-10-17 06:51:44 UTC
With current hg, I get these errors:
/Users/Whatever/Code/Merc/SDL/src/render/metal/SDL_render_metal.m:274:48: error: 
      use of undeclared identifier 'MTLStepFunctionPerVertex'; did you mean
      'MTLVertexStepFunctionPerVertex'?
            vertdesc.layouts[0].stepFunction = MTLStepFunctionPerVertex;
                                               ^~~~~~~~~~~~~~~~~~~~~~~~
                                               MTLVertexStepFunctionPerVertex
/opt/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h:77:5: note: 
      'MTLVertexStepFunctionPerVertex' declared here
    MTLVertexStepFunctionPerVertex = 1,
    ^
/Users/Whatever/Code/Merc/SDL/src/render/metal/SDL_render_metal.m:283:48: error: 
      use of undeclared identifier 'MTLStepFunctionPerVertex'; did you mean
      'MTLVertexStepFunctionPerVertex'?
            vertdesc.layouts[0].stepFunction = MTLStepFunctionPerVertex;
                                               ^~~~~~~~~~~~~~~~~~~~~~~~
                                               MTLVertexStepFunctionPerVertex
/opt/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h:77:5: note: 
      'MTLVertexStepFunctionPerVertex' declared here
    MTLVertexStepFunctionPerVertex = 1,
    ^
2 errors generated.
make: *** [build/SDL_render_metal.lo] Error 1

This was on OS X 10.14 with the 10.11 SDK but I first encountered this on a real 10.11 machine.
MACOSX_DEPLOYMENT_TARGET=10.7
Comment 1 Dominik Reichardt 2019-10-17 07:10:12 UTC
Deployment Target does mot factor in, I just tested.
SDKs 10.12 and higher do not have a problem at this point.
Comment 2 Alex Szpakowski 2019-10-17 21:49:48 UTC
Thanks for the report, this change should fix it: https://hg.libsdl.org/SDL/rev/d36bfafbe115