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 Arcade1Up Try the site in https mode Site News

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

  

Author Topic: Compile failed  (Read 4078 times)

0 Members and 1 Guest are viewing this topic.

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Compile failed
« on: August 23, 2012, 01:56:23 am »
So I'm trying to compile the latest groovymame diff on the googlecode page and it's giving me this error:

Code: [Select]
....
Compiling src/osd/windows/drawnone.c...
Compiling src/osd/windows/input.c...
Compiling src/osd/windows/output.c...
Compiling src/osd/windows/sound.c...
Compiling src/osd/windows/video.c...
Compiling src/osd/windows/window.c...
src/osd/windows/window.c: In function 'void winwindow_video_window_update_hi(win
_window_info*)':
src/osd/windows/window.c:984:27: error: variable 'primlist' set but not used [-W
error=unused-but-set-variable]
cc1plus.exe: all warnings being treated as errors
make: *** [obj/windows/osd/windows/window.o] Error 1

P:\mamedev\mamesrc>

I applied all the patches in order, I tried vanilla 146 diffs and the diffs up to u4, still gives me the same error. I'd try an older version but I think that'd fail for other reasons due to the newer toolchain.

I'm applying the patches using mame compiler 64 but as it fails to compile before it even looks at a bit of the source giving me this error:

Code: [Select]
Compiling Mame...
Using Parameters OSD=windows TARGETOS=win32 -j3 ARCHOPTS=-march=core2
make: *** windows32_openpipe(): DuplicateHandle(In) failed (e=6)
.  Stop.
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.

I'm using the normal cmd "make".

I'm only wanting to get it to compile so I can take a look at playing with one of the drivers. It has to be groovymame for what I have in mind too.

Any ideas what's gone wrong here? I've wasted about 7 hours on this so far and I've not even started what I wanted to do.
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Compile failed
« Reply #1 on: August 23, 2012, 02:32:34 am »
Hi retrorepair,

Make sure to use Mame Compiler 64 v1.22 for building 0.146u4. It will build with that one, that's for sure.

They happen to have changed the tool chain some days ago, for version 0.146u5, that's all. Sorry for that.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: Compile failed
« Reply #2 on: August 23, 2012, 11:36:23 am »
Ah that explains it, thanks Calamity, I'll give it a go.

Thanks for the quick reply too :)
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: Compile failed
« Reply #3 on: January 15, 2013, 12:43:45 pm »
Ok, using the latest toolchain and MAMECompiler 1.3, now I get this error again:

Code: [Select]
Compiling Mame...
Using Parameters  -j5 TARGETOS=win32 TARGET=mame OSD=windows ARCHOPTS=-march=native PTR64=1 NOWERROR=1
make: *** windows32_openpipe(): DuplicateHandle(In) failed (e=6)
.  Stop.
Finished!
0 Hours 0 Minutes and 0 Seconds Elapsed.

The mingw release is 20121207
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: Compile failed
« Reply #4 on: January 15, 2013, 02:44:38 pm »
Never mind, apparently numbers mean nothing. Downloaded the exact same version of mingw from Headkaze's website and that one works fine.  :dunno

http://headsoft.com.au/index.php?category=mame&page=mc64
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Compile failed
« Reply #5 on: January 15, 2013, 05:36:41 pm »
Could Headkaze be using custom mingw packages?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: Compile failed
« Reply #6 on: January 15, 2013, 06:21:18 pm »
I think he is, at least I needed his linked mingw package to compile. Would be nice if he noted that if it's the case as it can get a bit confusing.

BTW I now have a new problem:

Code: [Select]
src/emu/hiscore.c: In function 'void copy_to_memory(running_machine&, int, int, const UINT8*, int)':
src/emu/hiscore.c:66:57: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c:75:60: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c:76:46: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c:103:60: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c: In function 'void copy_from_memory(running_machine&, int, int, UINT8*, int)':
src/emu/hiscore.c:117:58: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c:121:61: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c: In function 'int safe_to_load(running_machine&)':
src/emu/hiscore.c:216:65: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c:220:68: error: cannot convert 'address_space' to 'address_space*' in assignment
src/emu/hiscore.c: In function 'void hiscore_init(running_machine&)':
src/emu/hiscore.c:361:56: error: base operand of '->' has non-pointer type 'address_space'
src/emu/hiscore.c:364:56: error: base operand of '->' has non-pointer type 'address_space'
src/emu/hiscore.c:371:59: error: base operand of '->' has non-pointer type 'address_space'
src/emu/hiscore.c:374:60: error: base operand of '->' has non-pointer type 'address_space'
make: *** [obj/windows64/emu/hiscore.o] Error 1
make: *** Waiting for unfinished jobs....

Before this it rejected a hunk from the hiscore patch 147 and this is the rejected code:

Code: [Select]
***************
*** 305,311 ****
  }
 
  state.mem_range = NULL;
- emu_file f(OPEN_FLAG_READ);
    filerr = f.open("hiscore", ".dat");
 
  if(filerr == FILERR_NONE)
--- 305,311 ----
  }
 
  state.mem_range = NULL;
+ emu_file f(machine.options().hiscore_directory(), OPEN_FLAG_READ);
    filerr = f.open("hiscore", ".dat");
 
  if(filerr == FILERR_NONE)

Odd since I've got the 147 mame source and applied u1-u3 then hiscore patch 147. This should work shouldn't it? I can't see MAMECompiler being the cause if it's just patching?
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: Compile failed
« Reply #8 on: January 15, 2013, 06:39:08 pm »
Awesome, looks like that did the trick  :cheers:
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair