Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: .105 Mame Compile error  (Read 2858 times)

0 Members and 1 Guest are viewing this topic.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
.105 Mame Compile error
« on: June 24, 2008, 11:02:21 pm »
I'm compiling version .105 of MAME, and I'm hitting an error.

This is a test of the environment. I didn't apply any changes. I followed the steps on MrDo's compile page http://www.mameworld.net/mrdo/compile.html. I did it twice on 2 different computers to make sure I wasn't missing any steps. I'm fairly certain I'm doing everything as MrDo has listed, but I get the error that I attached to this message.

You guys have any suggestions?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #1 on: June 24, 2008, 11:45:53 pm »
I'm compiling version .105 of MAME, and I'm hitting an error.

This is a test of the environment. I didn't apply any changes. I followed the steps on MrDo's compile page http://www.mameworld.net/mrdo/compile.html. I did it twice on 2 different computers to make sure I wasn't missing any steps. I'm fairly certain I'm doing everything as MrDo has listed, but I get the error that I attached to this message.

You guys have any suggestions?

This is a problem with the new version of MinGW compiling older versions of Mame. You will need to open your makefile and change the following:

Remove "-Werror" and "-Wno-unused-functions".

If you use "Mame Compiler" it will do this for you if you select the "Disable WError (<0.118u5)" option.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #2 on: June 25, 2008, 12:12:14 am »
I'm compiling version .105 of MAME, and I'm hitting an error.

This is a test of the environment. I didn't apply any changes. I followed the steps on MrDo's compile page http://www.mameworld.net/mrdo/compile.html. I did it twice on 2 different computers to make sure I wasn't missing any steps. I'm fairly certain I'm doing everything as MrDo has listed, but I get the error that I attached to this message.

You guys have any suggestions?

This is a problem with the new version of MinGW compiling older versions of Mame. You will need to open your makefile and change the following:

Remove "-Werror" and "-Wno-unused-functions".

If you use "Mame Compiler" it will do this for you if you select the "Disable WError (<0.118u5)" option.

This sounds promising. Ok, so I opened makefile and I want to make sure I'm doing the right thing. I just want to delete the -werror line or just the -werror text? Here is the section I'm looking at:

#-------------------------------------------------
# compile and linking flags
#-------------------------------------------------

CFLAGS = -std=gnu89 -Isrc -Isrc/includes -Isrc/$(MAMEOS)

ifdef SYMBOLS
CFLAGS += -O0 -Wall -Wno-unused -g
else
CFLAGS += -DNDEBUG \
   $(ARCH) -O3 -fno-strict-aliasing \
   -Werror -Wall \
   -Wno-sign-compare \
   -Wno-unused-functions \
   -Wpointer-arith \
   -Wbad-function-cast \
   -Wcast-align \
   -Wstrict-prototypes \
   -Wundef \
   -Wformat-security \
   -Wwrite-strings \
   -Wdeclaration-after-statement
endif

« Last Edit: June 25, 2008, 12:15:34 am by leapinlew »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #3 on: June 25, 2008, 12:19:27 am »
Change it like this:

#-------------------------------------------------
# compile and linking flags
#-------------------------------------------------

CFLAGS = -std=gnu89 -Isrc -Isrc/includes -Isrc/$(MAMEOS)

ifdef SYMBOLS
CFLAGS += -O0 -Wall -Wno-unused -g
else
CFLAGS += -DNDEBUG \
   $(ARCH) -O3 -fno-strict-aliasing \
#   -Werror -Wall \
   -Wall \
   -Wno-sign-compare \
#   -Wno-unused-functions \
   -Wpointer-arith \
   -Wbad-function-cast \
   -Wcast-align \
   -Wstrict-prototypes \
   -Wundef \
   -Wformat-security \
   -Wwrite-strings \
   -Wdeclaration-after-statement
endif
« Last Edit: June 25, 2008, 12:24:03 am by headkaze »

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #4 on: June 25, 2008, 12:23:38 am »
Thanks for your help thus far. It's giving me a different error now:
Quote
C:\mamesrc>makemame

C:\mamesrc>set path=c:\mingw\bin

C:\mamesrc>mingw32-make
Assembling src/windows/asmblit.asm...
process_begin: CreateProcess(NULL, nasmw -o obj/mame/wi
rc/windows/asmblit.asm, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [obj/mame/windows/asmblit.o] Error 2

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #5 on: June 25, 2008, 12:31:49 am »
Thanks for your help thus far. It's giving me a different error now:

I've noticed that error can occur and sometimes you can just run make again. You could also try deleting your obj folder if that doesn't work.

If all of that fails I would just use Mame Compiler even just to get it to set up your MinGW environment so you know you've got all the right tools set up to compile Mame. You can still compile Mame from the command line if you want.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #6 on: June 25, 2008, 12:33:31 am »
Thanks for your help thus far. It's giving me a different error now:

I've noticed that error can occur and sometimes you can just run make again. You could also try deleting your obj folder if that doesn't work.

If all of that fails I would just use Mame Compiler even just to get it to set up your MinGW environment so you know you've got all the right tools set up to compile Mame. You can still compile Mame from the command line if you want.

Well Mr. headkaze - deleting the object folder seemed to do it. It's cranking away now. Thanks a lot! I would've never figured that out on my own.

:)

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #7 on: June 25, 2008, 12:37:07 am »
Spoke too soon - it bombs out here:

Quote
C:\mamesrc>makemame

C:\mamesrc>set path=c:\mingw\bin

C:\mamesrc>mingw32-make
Assembling src/windows/asmblit.asm...
process_begin: CreateProcess(NULL, nasmw -o obj/mame/wi
rc/windows/asmblit.asm, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [obj/mame/windows/asmblit.o] Error 2

I don't know much about compiling and coding. Is the mame compiler easy to use?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #8 on: June 25, 2008, 12:39:43 am »
I don't know much about compiling and coding. Is the mame compiler easy to use?

It's pretty easy to use. You can read more about it here.

Don't forget to set the "Disable WError (<0.118u5)" option when your compiling Mame 0.118u5 or lower.
« Last Edit: June 25, 2008, 12:41:54 am by headkaze »

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #9 on: June 25, 2008, 12:51:53 am »
Same issue... now I'm wondering if I'm doing something goofy. Attached is a pic, which contains the same text as the makemame batch file.

I do like the front end, but it seems the problem I'm having is related to something I'm doing wrong? I tried to apply a diff file, but the error happens with or with the diff file.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #10 on: June 25, 2008, 12:58:05 am »
I would start from the beginning. Download the Mame source again and start fresh.

What diff are you trying to apply? You can't just apply any diff file, it has to match the version of Mame source.

I can't tell what it is because it's called diff.diff. You really should name your diff files after the version of Mame they are made for.

Take a look in C:\MinGW\patches you will notice a hi_108.diff file. That is the earliest version of the hiscore patch for Mame that MKChamp has made, so perhaps you need to download the Mame0108 source and compile that instead? I guess it depends on what diff your trying to apply.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #11 on: June 25, 2008, 01:36:40 am »
I would start from the beginning. Download the Mame source again and start fresh.

What diff are you trying to apply? You can't just apply any diff file, it has to match the version of Mame source.

I can't tell what it is because it's called diff.diff. You really should name your diff files after the version of Mame they are made for.

Take a look in C:\MinGW\patches you will notice a hi_108.diff file. That is the earliest version of the hiscore patch for Mame that MKChamp has made, so perhaps you need to download the Mame0108 source and compile that instead? I guess it depends on what diff your trying to apply.

I'll start from the beginning and try again. The problem seems to happen regardless of if I use the diff file or not. I'm downloading mame source .105, minGW, dx80_mgw.zip (and copying the 6 files from it to the mingw\include directory), and following the instructions here: http://www.mameworld.net/mrdo/compile.html

I've tried it on 2 computers. I'm unsure if the problem is me and not following directions, improper environment, or if there is something wrong with what I'm downloading. I'll try it again tomorrow. Thanks for the front end, and all your help. I appreciate it.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #12 on: June 25, 2008, 01:55:14 am »
It probably would be best to start again from the beginning. If you do end up using Mame Compiler, it installs MinGW and all the tools necessary along with it. So that should be all you need to get the compiler environment setup. In fact I would advise that you delete your MinGW folder and install Mame Compiler again.

I'm still not sure what diff your trying to apply, but if it's not compiling even when you are using a clean Mame source not sure what it could be. Perhaps try compiling a newer version of Mame like .108 just to see if there is an issue with that version?

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #13 on: June 25, 2008, 10:08:03 am »
Tried a clean install using .105 and .097 and I get the attached error (for .097). I'm going to try compiling with newer source code to see if I have any success - then I think we can at least narrow it down.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #14 on: June 25, 2008, 10:41:32 am »
Everything worked fine with version .123.

That helps. I know things are working right - now I just need to find the way to compile an older version. I'll nose around and see what I can find.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #15 on: June 25, 2008, 11:03:14 am »
Headkaze -

Any chance you could try your software out to compile mame .105 source? I'm guessing the problem is the mingw version it unpacks. But, what the hell do I know.  :dunno

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #16 on: June 25, 2008, 12:19:11 pm »
Headkaze -

Any chance you could try your software out to compile mame .105 source? I'm guessing the problem is the mingw version it unpacks. But, what the hell do I know.  :dunno

I have updated Mame Compiler to version 1.15, download it again and install it. I just tested it with 105 and it works okay. If there is an error during the compile just press the GO! button again until it completes. Let me know how you go.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #17 on: June 25, 2008, 12:21:16 pm »
Headkaze -

Any chance you could try your software out to compile mame .105 source? I'm guessing the problem is the mingw version it unpacks. But, what the hell do I know.  :dunno

I have updated Mame Compiler to version 1.15, download it again and install it. I just tested it with 105 and it works okay. If there is an error during the compile just press the GO! button again until it completes. Let me know how you go.

Easiest question I'll ask you today: Where do I download it?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #18 on: June 25, 2008, 12:27:01 pm »
Easiest question I'll ask you today: Where do I download it?

The link to download is in the first post of this thread

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #19 on: June 25, 2008, 12:28:27 pm »
Easiest question I'll ask you today: Where do I download it?

The link to download is in the first post of this thread

Ha! I may be the only person who didn't see it, but I was expecting to see it in the first post. My bad.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7109
  • Last login:Today at 04:00:07 pm
Re: .105 Mame Compile error
« Reply #20 on: June 25, 2008, 02:43:16 pm »
Headkaze.... you did it!

Thanks a ton. I notice you have some links in your sig. Can I donate some money there for all the help and the use of the front end application?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:Today at 06:09:43 pm
  • 0x2b|~0x2b?
Re: .105 Mame Compile error
« Reply #21 on: June 26, 2008, 08:05:04 am »
Headkaze.... you did it!

Thanks a ton. I notice you have some links in your sig. Can I donate some money there for all the help and the use of the front end application?

No problem, glad I could help!

Appreciate the offer of a donation but it's not necessary. There is a paypal link on my CPWizard page but for something like Mame Compiler I don't really expect any donations for it.