Previous Thread
Next Thread
Print Thread
#107026 08/31/16 11:44 AM
Joined: Jul 2006
Posts: 109
Likes: 1
R
r0ni Offline OP
Senior Member
OP Offline
Senior Member
R
Joined: Jul 2006
Posts: 109
Likes: 1
OS X 10.9.5, XCode 6.2, SDL 2.0.4-rev10216

Code:
Compiling src/mame/drivers/atarisy4.cpp...
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:227:32: error: non-type template
      argument is not a constant expression
  ...poly_array<work_unit, std::min(_MaxPolys * UNITS_PER_POLY, 65535)> unit_...
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../src/mame/drivers/atarisy4.cpp:33:34: note: in instantiation of
      template class 'poly_manager<float, atarisy4_polydata, 2, 8192>' requested
      here
class atarisy4_renderer : public poly_manager<float, atarisy4_polydata, 2, 8192>
                                 ^
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:227:32: note: non-constexpr function
      'min<int>' cannot be used in a constant expression
        typedef poly_array<work_unit, std::min(_MaxPolys * UNITS_PER_POL...
                                      ^
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:1:
In file included from /Users/jbl/Desktop/mame/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/emu.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/list:178:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2544:1: note: 
      declared here
min(const _Tp& __a, const _Tp& __b)
^
../../../../../src/mame/drivers/atarisy4.cpp:39:43: error: unknown type name
      'extent_t'; did you mean 'poly_manager<float, atarisy4_polydata, 2,
      8192>::extent_t'?
  ...const extent_t &extent, const atarisy4_polydata &extradata, int threadid);
           ^~~~~~~~
           poly_manager<float, atarisy4_polydata, 2, 8192>::extent_t
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:111:9: note: 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::extent_t' declared here
        struct extent_t
               ^
../../../../../src/mame/drivers/atarisy4.cpp:177:4: error: type
      'poly_manager<float, atarisy4_polydata, 2, 8192>' is not a direct or
      virtual base of 'atarisy4_renderer'
        : poly_manager<float, atarisy4_polydata, 2, 8192>(screen, POLYFL...
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../src/mame/drivers/atarisy4.cpp:281:61: error: unknown type name
      'extent_t'; did you mean 'poly_manager<float, atarisy4_polydata, 2,
      8192>::extent_t'?
  ...const extent_t &extent, const atarisy4_polydata &extradata, int threadid)
           ^~~~~~~~
           poly_manager<float, atarisy4_polydata, 2, 8192>::extent_t
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:111:9: note: 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::extent_t' declared here
        struct extent_t
               ^
../../../../../src/mame/drivers/atarisy4.cpp:303:2: error: unknown type name
      'vertex_t'; did you mean 'poly_manager<float, atarisy4_polydata, 2,
      8192>::vertex_t'?
        vertex_t v1, v2, v3;
        ^~~~~~~~
        poly_manager<float, atarisy4_polydata, 2, 8192>::vertex_t
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:101:9: note: 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::vertex_t' declared here
        struct vertex_t
               ^
../../../../../src/mame/drivers/atarisy4.cpp:304:33: error: use of undeclared
      identifier 'object_data_alloc'; did you mean 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::object_data_alloc'?
  ...= object_data_alloc();
       ^~~~~~~~~~~~~~~~~
       poly_manager<float, atarisy4_polydata, 2, 8192>::object_data_alloc
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:138:15: note: 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::object_data_alloc' declared here
        _ObjectData &object_data_alloc();
                     ^
../../../../../src/mame/drivers/atarisy4.cpp:304:33: error: call to non-static
      member function without an object argument
        atarisy4_polydata &extradata = object_data_alloc();
                                       ^~~~~~~~~~~~~~~~~
../../../../../src/mame/drivers/atarisy4.cpp:305:2: error: unknown type name
      'render_delegate'; did you mean 'poly_manager<float, atarisy4_polydata, 2,
      8192>::render_delegate'?
        render_delegate rd_scan = render_delegate(FUNC(atarisy4_renderer...
        ^~~~~~~~~~~~~~~
        poly_manager<float, atarisy4_polydata, 2, 8192>::render_delegate
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:123:77: note: 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::render_delegate' declared here
  ...(INT32, const extent_t &, const _ObjectData &, int)> render_delegate;
                                                          ^
../../../../../src/mame/drivers/atarisy4.cpp:305:28: error: use of undeclared
      identifier 'render_delegate'
        render_delegate rd_scan = render_delegate(FUNC(atarisy4_renderer...
                                  ^
../../../../../src/mame/drivers/atarisy4.cpp:324:3: error: use of undeclared
      identifier 'render_triangle'; did you mean 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::render_triangle'?
                render_triangle(clip, rd_scan, 1, v1, v2, v3);
                ^~~~~~~~~~~~~~~
                poly_manager<float, atarisy4_polydata, 2, 8192>::render_triangle
In file included from ../../../../../src/mame/drivers/atarisy4.cpp:22:
../../../../../src/devices/video/poly.h:145:9: note: 'poly_manager<float,
      atarisy4_polydata, 2, 8192>::render_triangle' declared here
        UINT32 render_triangle(const rectangle &cliprect, render_delegat...
               ^
../../../../../src/mame/drivers/atarisy4.cpp:324:3: error: call to non-static
      member function without an object argument
                render_triangle(clip, rd_scan, 1, v1, v2, v3);
                ^~~~~~~~~~~~~~~
../../../../../src/mame/drivers/atarisy4.cpp:473:16: error: no member named
      'wait' in 'atarisy4_renderer'
                        m_renderer->wait();
                        ~~~~~~~~~~  ^
Compiling src/mame/machine/bfm_bd1.cpp...
12 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/src/mame/drivers/atarisy4.o] Error 1
make[1]: *** [atari] Error 2
make[1]: *** Waiting for unfinished jobs....
Compiling 3rdparty/bgfx/examples/common/nanovg/nanovg.cpp...
Archiving libbooth.a...
Compiling src/mame/machine/bfm_bda.cpp...
Compiling src/mame/machine/bfm_comn.cpp...
Compiling src/mame/machine/bfm_sc45_helper.cpp...
Compiling 3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.cpp...
Compiling src/mame/machine/sec.cpp...
Compiling src/mame/video/bfm_adr2.cpp...
Compiling src/mame/drivers/camplynx.cpp...
Compiling src/mame/video/bfm_dm01.cpp...
Compiling 3rdparty/bgfx/src/bgfx.cpp...
Archiving libbfm.a...
Archiving libcamputers.a...
Compiling 3rdparty/bgfx/src/debug_renderdoc.cpp...
Objective-C compiling 3rdparty/bgfx/src/glcontext_eagl.mm...
Compiling 3rdparty/bgfx/src/glcontext_egl.cpp...
Compiling 3rdparty/bgfx/src/glcontext_glx.cpp...
Objective-C compiling 3rdparty/bgfx/src/glcontext_nsgl.mm...
Compiling 3rdparty/bgfx/src/glcontext_ppapi.cpp...
Compiling 3rdparty/bgfx/src/glcontext_wgl.cpp...
Compiling 3rdparty/bgfx/src/hmd_openvr.cpp...
Compiling 3rdparty/bgfx/src/hmd_ovr.cpp...
Compiling 3rdparty/bgfx/src/image.cpp...
Compiling 3rdparty/bgfx/src/renderer_d3d11.cpp...
Compiling 3rdparty/bgfx/src/renderer_d3d12.cpp...
Compiling 3rdparty/bgfx/src/renderer_d3d9.cpp...
Compiling 3rdparty/bgfx/src/renderer_gl.cpp...
Objective-C compiling 3rdparty/bgfx/src/renderer_mtl.mm...
Compiling 3rdparty/bgfx/src/renderer_null.cpp...
Compiling 3rdparty/bgfx/src/renderer_vk.cpp...
Compiling 3rdparty/bgfx/src/shader.cpp...
Compiling 3rdparty/bgfx/src/shader_dx9bc.cpp...
Compiling 3rdparty/bgfx/src/shader_dxbc.cpp...
Compiling 3rdparty/bgfx/src/shader_spirv.cpp...
Compiling 3rdparty/bgfx/src/topology.cpp...
Compiling 3rdparty/bgfx/src/vertexdecl.cpp...
Archiving libbgfx.a...
make: *** [macosx_x64_clang] Error 2


SDLMAME OSX Intel Builds: http://sdlmame.lngn.net/
Joined: Feb 2004
Posts: 2,366
Likes: 81
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,366
Likes: 81
Install a newer libc++ by upgrading Xcode, or with MacPorts or something. It works for me with Clang 3.7 and whatever libc++ I got with MacPorts on Snow Leopard.

Joined: Aug 2015
Posts: 40
C
Member
Offline
Member
C
Joined: Aug 2015
Posts: 40
OS X 10.11.6, XCode 7.3.1, SDL 2.0.4-rev10216

Builds clean here


Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
3 members (Olivier Galibert, Dorando, 1 invisible), 24 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,085
Posts119,077
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com