Previous Thread
Next Thread
Print Thread
Page 39 of 39 1 2 37 38 39
Re: Can't compile latest MAME? READ THIS THREAD [Re: R. Belmont] #113534
06/06/18 03:19 PM
06/06/18 03:19 PM
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
arcadefan  Offline
Member
Joined: Aug 2012
Posts: 65
Still Nothing

Code
C:/msyCompiling src/mame/audio/jedi.cpp...
s64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe: unable to rename '../../../../mingw-gcc/bin/x64/Release/mame_mame/libbaCompiling src/mame/machine/lisa.cpp...
lly.a'; reason: File exiCompiling src/mame/audio/wswan.cpp...
stCompiling src/mame/audio/llander.cpp...
s
Archiving libbanctec.a...
bally.make:265: recipe for target '../../../../mingw-gcc/bin/x64/Release/mame_mame/libbally.a' failed
make[2]: *** [../../../../mingw-gcc/bin/x64/Release/mame_mame/libbally.a] Error 1
makefile:463: recipe for target 'bally' failed
make[1]: *** [bally] Error 2
make[1]: *** Waiting for unfinished jobs....

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113535
06/06/18 03:34 PM
06/06/18 03:34 PM
Joined: Jan 2012
Posts: 800
C
crazyc Offline
Senior Member
crazyc  Offline
Senior Member
C
Joined: Jan 2012
Posts: 800
This happens to me a lot. Just run the compile again and it'll start from where it stopped and finish successfully.

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113536
06/06/18 05:25 PM
06/06/18 05:25 PM
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
arcadefan  Offline
Member
Joined: Aug 2012
Posts: 65
Perfect! Just had to run it another couple of times and it finally finished successfully. Thanks! smile

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113538
06/06/18 07:54 PM
06/06/18 07:54 PM
Joined: Apr 2006
Posts: 706
USA
Tafoid Offline
Senior Member
Tafoid  Offline
Senior Member
Joined: Apr 2006
Posts: 706
USA
Just as a reminder, add -k to your make string which will compile everything except what doesn't compile. If you have that happen again, your reattempt will be much shorter as most of the source will be compiled.




Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113995
09/27/18 05:26 PM
09/27/18 05:26 PM
Joined: Mar 2008
Posts: 184
Stockholm, Sweden
R
robcfg Online content
Senior Member
robcfg  Online Content
Senior Member
R
Joined: Mar 2008
Posts: 184
Stockholm, Sweden
Hi,

I'm trying to compile 0.202 on OSX El Capitan 10.11.6 and I get the following error when running make:

Quote
Compiling src/mame/drivers/alpha68k.cpp...
In file included from ../../../../../src/mame/drivers/alpha68k.cpp:1:
In file included from ../../../../../src/emu/emu.h:104:
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:1258:12: error:
'consume' is a protected member of 'devcb_write<unsigned char, '\xFF'>::builder_base'
{ m_sink.consume(); }
^
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:1497:11: note:
in instantiation of function template specialization 'devcb_write<unsigned char,
'\xFF'>::first_transform_builder<devcb_write<unsigned char,
'\xFF'>::delegate_builder<device_delegate<void (address_space &, unsigned int, unsigned char,
unsigned char)> >::wrapped_builder, (lambda at
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:255:52)>::first_transform_builder<(lambda
at
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:255:52)>'
requested here
return first_transform_builder<wrapped_builder, std::remove_reference...
^
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:255:42: note:
in instantiation of function template specialization 'devcb_write<unsigned char,
'\xFF'>::delegate_builder<device_delegate<void (address_space &, unsigned int, unsigned char,
unsigned char)> >::transform<(lambda at
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:255:52)>'
requested here
auto trans(static_cast<Impl &>(*this).transform([val] (offs_t offset...
^
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:1142:8: note:
declared protected here
void consume() { m_consumed = true; }
^
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:1267:11: error:
'consume' is a protected member of 'devcb_write<unsigned char, '\xFF'>::builder_base'
m_sink.consume();
^
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:255:9: note:
in instantiation of member function 'devcb_write<unsigned char,
'\xFF'>::first_transform_builder<devcb_write<unsigned char,
'\xFF'>::delegate_builder<device_delegate<void (address_space &, unsigned int, unsigned char,
unsigned char)> >::wrapped_builder, (lambda at
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:255:52)>::first_transform_builder'
requested here
auto trans(static_cast<Impl &>(*this).transform([val] (offs_t offset...
^
/Users/herrrober/Projects/mame0202/build/projects/sdl/mame/gmake-osx-clang/../../../../../src/emu/devcb.h:1142:8: note:
declared protected here
void consume() { m_consumed = true; }
^
2 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/src/mame/drivers/alpha68k.o] Error 1
make[1]: *** [alpha] Error 2
make: *** [macosx_x64_clang] Error 2


My version of Clang is as follows:
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix

I don't remember having to do anything special to make it work on previous releases, but if that has changed, could you give a pointer on what to do?

Thanks and keep up the good work!

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #114002
09/28/18 12:02 AM
09/28/18 12:02 AM
Joined: Aug 2004
Posts: 1,382
Robbbert Offline
Very Senior Member
Robbbert  Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,382
I believe you have to make

void consume() { m_consumed = true; }

public instead of protected.

I think there's an official way instead of just modifying the file, but you'd have to ask cuavas as it's his code.

Re: Can't compile latest MAME? READ THIS THREAD [Re: Robbbert] #115209
05/01/19 09:36 AM
05/01/19 09:36 AM
Joined: Mar 2008
Posts: 184
Stockholm, Sweden
R
robcfg Online content
Senior Member
robcfg  Online Content
Senior Member
R
Joined: Mar 2008
Posts: 184
Stockholm, Sweden
On devcb.h , you can find this code:
Code
//**************************************************************************
//  DETECT PROBLEMATIC COMPILERS
//**************************************************************************

#if defined(__GNUC__) && !defined(__clang__)
#if __GNUC__ >= 8
#define MAME_DEVCB_GNUC_BROKEN_FRIEND 1
#endif // __GNUC__ >= 8
#endif // defined(__GNUC__) && !defined(__clang__)


As the compiler identifies as Clang, this code is not triggered.

For now, just adding:
Code
#define MAME_DEVCB_GNUC_BROKEN_FRIEND 1

after the previous code, will make MAME compile.

At least until this point:
Code
Objective-C compiling 3rdparty/bgfx/src/renderer_mtl.mm...
In file included from ../../../../../3rdparty/bgfx/src/renderer_mtl.mm:10:
../../../../../3rdparty/bgfx/src/renderer_mtl.h:365:12: error: instance method '-setLabel:' not found
      (return type defaults to 'id') [-Werror,-Wobjc-method-access]
                                [m_obj setLabel:@(_label)];

Page 39 of 39 1 2 37 38 39

Who's Online Now
1 registered members (Cpt. Pugwash), 33 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,654
Posts113,414
Members4,846
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.039s Queries: 16 (0.022s) Memory: 5.7032 MB (Peak: 5.9011 MB) Zlib enabled. Server Time: 2019-05-26 07:42:22 UTC