Previous Thread
Next Thread
Print Thread
Page 39 of 40 1 2 37 38 39 40
Re: Can't compile latest MAME? READ THIS THREAD [Re: R. Belmont] #113534 06/06/18 03:19 PM
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
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
Joined: Jan 2012
Posts: 805
C
crazyc Offline
Senior Member
Offline
Senior Member
C
Joined: Jan 2012
Posts: 805
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
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
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
Joined: Apr 2006
Posts: 710
Tafoid Offline
Senior Member
Offline
Senior Member
Joined: Apr 2006
Posts: 710
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
Joined: Mar 2008
Posts: 184
R
robcfg Offline
Senior Member
Offline
Senior Member
R
Joined: Mar 2008
Posts: 184
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
Joined: Aug 2004
Posts: 1,385
Robbbert Offline
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,385
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
Joined: Mar 2008
Posts: 184
R
robcfg Offline
Senior Member
Offline
Senior Member
R
Joined: Mar 2008
Posts: 184
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)];

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #115464 06/28/19 06:38 PM
Joined: Mar 2010
Posts: 129
S
Shoegazer Offline
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 129
Hello, under linux and GCC 8, compilation of MAME 0.211 fails with the following message:

Code
In function ‘char* strcat(char*, const char*)’,
    inlined from ‘void nubus_image_device::file_cmd_w(address_space&, offs_t, u32, u32)’ at ../../../../../src/devices/bus/nubus/nubus_image.cpp:262:10:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:128:33: error: ‘char* __builtin___strcat_chk(char*, const char*, long unsigned int)’ accessing 129 or more bytes at offsets 1028 and 900 may overlap 1 byte at offset 1028 [-Werror=restrict]
   return __builtin___strcat_chk (__dest, __src, __bos (__dest));
          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling src/devices/bus/nubus/nubus_wsportrait.cpp...
Compiling src/devices/bus/nubus/pds30_30hr.cpp...
cc1plus: all warnings being treated as errors
Compiling src/devices/bus/nubus/pds30_cb264.cpp...
optional.make:16346: recipe for target '../../../../linux_gcc/obj/x64/Release/src/devices/bus/nubus/nubus_image.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/src/devices/bus/nubus/nubus_image.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:94: recipe for target 'optional' failed
make[1]: *** [optional] Error 2
makefile:1292: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2


Any ideas what could be causing this?

Re: Can't compile latest MAME? READ THIS THREAD [Re: Shoegazer] #115465 06/28/19 07:28 PM
Joined: May 2004
Posts: 890
D
Duke Offline
Senior Member
Offline
Senior Member
D
Joined: May 2004
Posts: 890
Originally Posted by Shoegazer
Any ideas what could be causing this?


https://github.com/mamedev/mame/issues/4191

Last edited by Duke; 06/28/19 07:29 PM.
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #115466 06/28/19 07:30 PM
Joined: Jun 2013
Posts: 32
K
Kaede Offline
Member
Offline
Member
K
Joined: Jun 2013
Posts: 32
_FORTIFY_SOURCE is mentionned in the compiling docs too: https://docs.mamedev.org/initialsetup/compilingmame.html

Page 39 of 40 1 2 37 38 39 40

Who's Online Now
4 registered members (Kale, R. Belmont, Pernod, zino), 125 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,692
Posts114,252
Members4,865
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3