So, i got latest mame src from mamedev and then unzip. unzip again and edited the makefile for ARCHOPTS = -march=core2 (also tried native with the same results)
Then I went what changed in the sticky thread but i alredy had the necessary gcc and whatnots.
#make -j5 and waited until:
Converting src/mame/layout/zac_proto.lay...
Archiving obj/sdl64/libosd.a...
Compiling src/emu/cpu/m68000/m68kcpu.c...
Compiling obj/sdl64/emu/cpu/m68000/m68kops.c...
obj/sdl64/emu/cpu/m68000/m68kops.c:27668:1: error: invalid suffix "kcpu" on integer constant
8kcpu)->n_flag = NFLAG_16(*r_dst);
^
obj/sdl64/emu/cpu/m68000/m68kops.c: In static member function �static void m68000_base_device_ops::m68k_op_bfins_32_d(m68000_base_device*)�:
obj/sdl64/emu/cpu/m68000/m68kops.c:7096:1: error: �ea� was not declared in this scope
ea--;
^
Converting src/emu/uismall.png...
Converting src/emu/layout/dualhovu.lay...
obj/sdl64/emu/cpu/m68000/m68kops.c: In static member function �static void m68000_base_device_ops::m68k_op_roxr_32_r(m68000_base_device*)�:
obj/sdl64/emu/cpu/m68000/m68kops.c:27223:1: error: �c68kcpu� was not declared in this scope
c68kcpu)->n_flag = NFLAG_16(*r_dst);
^
obj/sdl64/emu/cpu/m68000/m68kops.c:27223:8: error: expected �;� before �)� token
c68kcpu)->n_flag = NFLAG_16(*r_dst);
^
Converting src/emu/layout/dualhsxs.lay...
obj/sdl64/emu/cpu/m68000/m68kops.c: In static member function �static void m68000_base_device_ops::m68k_op_roxl_32_r(m68000_base_device*)�:
obj/sdl64/emu/cpu/m68000/m68kops.c:27501:1: error: �c68kcpu� was not declared in this scope
c68kcpu)->n_flag = NFLAG_16(*r_dst);
^
obj/sdl64/emu/cpu/m68000/m68kops.c:27501:8: error: expected �;� before �)� token
c68kcpu)->n_flag = NFLAG_16(*r_dst);
^
obj/sdl64/emu/cpu/m68000/m68kops.c: In static member function �static void m68000_base_device_ops::m68k_op_rte_32(m68000_base_device*)�:
obj/sdl64/emu/cpu/m68000/m68kops.c:27668:6: error: expected �;� before �)� token
8kcpu)->n_flag = NFLAG_16(*r_dst);
^
Converting src/emu/layout/dualhuov.lay...
Converting src/emu/layout/horizont.lay...
Converting src/emu/layout/triphsxs.lay...
Converting src/emu/layout/quadhsxs.lay...
Converting src/emu/layout/vertical.lay...
Converting src/emu/layout/lcd.lay...
Converting src/emu/layout/lcd_rot.lay...
make: *** [obj/sdl64/emu/cpu/m68000/m68kops.o] Error 1
make: *** Waiting for unfinished jobs....
rm obj/sdl64/osd/sdl/debugqtlogwindow.moc.c obj/sdl64/osd/sdl/debugqtmainwindow.moc.c obj/sdl64/osd/sdl/debugqtwindow.moc.c obj/sdl64/osd/sdl/debugqtbreakpointswindow.moc.c obj/sdl64/osd/sdl/debugqtmemorywindow.moc.c obj/sdl64/osd/sdl/debugqtview.moc.c obj/sdl64/osd/sdl/debugqtdasmwindow.moc.c
Distro:
Linux linuxtower 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 14:01:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
GCC:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.2-20131212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20131212/obj-x86_64-redhat-linux/cloog-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC)
Installed qt-devel for moc
I've been building like this for years now and I don't even remember last time I had a problem.
TIA