Previous Thread
Next Thread
Print Thread
Page 39 of 42 1 2 37 38 39 40 41 42
Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
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....

Joined: Jan 2012
Posts: 881
Likes: 10
C
Senior Member
Offline
Senior Member
C
Joined: Jan 2012
Posts: 881
Likes: 10
This happens to me a lot. Just run the compile again and it'll start from where it stopped and finish successfully.

Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
Perfect! Just had to run it another couple of times and it finally finished successfully. Thanks! smile

Joined: Apr 2006
Posts: 731
Senior Member
Offline
Senior Member
Joined: Apr 2006
Posts: 731
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.




Joined: Mar 2008
Posts: 217
Likes: 2
R
Senior Member
Offline
Senior Member
R
Joined: Mar 2008
Posts: 217
Likes: 2
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!

Joined: Aug 2004
Posts: 1,455
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,455
Likes: 9
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.

Joined: Mar 2008
Posts: 217
Likes: 2
R
Senior Member
Offline
Senior Member
R
Joined: Mar 2008
Posts: 217
Likes: 2
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)];

Joined: Mar 2010
Posts: 153
Likes: 1
S
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 153
Likes: 1
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?

Joined: May 2004
Posts: 961
Likes: 23
D
Senior Member
Offline
Senior Member
D
Joined: May 2004
Posts: 961
Likes: 23
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.
Joined: Jun 2013
Posts: 32
K
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 42 1 2 37 38 39 40 41 42

Link Copied to Clipboard
Who's Online Now
2 members (Revenant, Vas Crabb), 18 guests, and 6 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,089
Posts119,122
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