MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

zanyt13
MAME Fan
Reged: 06/19/12
Posts: 28
Send PM


Compiling Mame 0.148
#305839 - 03/16/13 04:34 PM


Hi.
When i try to compile Mame i get this error. I didn't have this problem before. Anyone know how to solve this?
Thanx!

In file included from src/osd/windows/winwork.c:55:0:
src/emu/eminline.h: In function 'void* compare_exchange_ptr(void* volatile*, voi
d*, void*)':
src/emu/eminline.h:349:60: error: cast from 'void*' to 'INT32 {aka int}' loses p
recision [-fpermissive]
src/emu/eminline.h:349:76: error: cast from 'void*' to 'INT32 {aka int}' loses p
recision [-fpermissive]
src/emu/eminline.h:351:17: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
cc1plus.exe: all warnings being treated as errors
make: *** [obj/Compiling src/lib/util/avhuff.c...
winui/osd/windows/winwork.o] Error 1
make: *** Waiting for unfinished jobs....



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Compiling Mame 0.148 new [Re: zanyt13]
#305840 - 03/16/13 05:26 PM


> Hi.
> When i try to compile Mame i get this error. I didn't have this problem before.
> Anyone know how to solve this?

It means you got the wrong tools for your operating system - either you're running a 32-bit OS and have the 64-bit tools or vice-versa.



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: Compiling Mame 0.148 new [Re: zanyt13]
#305841 - 03/16/13 06:10 PM


> Hi.
> When i try to compile Mame i get this error. I didn't have this problem before.
> Anyone know how to solve this?
> Thanx!
>
> In file included from src/osd/windows/winwork.c0:
> src/emu/eminline.h: In function 'void* compare_exchange_ptr(void* volatile*, voi
> d*, void*)':
> src/emu/eminline.h60: error: cast from 'void*' to 'INT32 {aka int}' loses p
> recision [-fpermissive]
> src/emu/eminline.h76: error: cast from 'void*' to 'INT32 {aka int}' loses p
> recision [-fpermissive]
> src/emu/eminline.h17: error: cast to pointer from integer of different size
> [-Werror=int-to-pointer-cast]
> cc1plus.exe: all warnings being treated as errors
> make: *** [obj/Compiling src/lib/util/avhuff.c...
> winui/osd/windows/winwork.o] Error 1
> make: *** Waiting for unfinished jobs....

Use "The Easy Way" from here at http://www.mamedev.org/tools/

Read on what R. Belmont said first.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



zanyt13
MAME Fan
Reged: 06/19/12
Posts: 28
Send PM


Re: Compiling Mame 0.148 new [Re: R. Belmont]
#305842 - 03/16/13 06:38 PM


Ok...i run win7 64bit, maybe i have some stuff made for 32bit somwhere. The thing is...i didn't change anything, just made some changes to the source, and tried to recompile it again, and got this error.
Thanx for the replys guys!



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3200
Loc: A long way from you
Send PM


Re: Compiling Mame 0.148 new [Re: zanyt13]
#305859 - 03/17/13 04:43 AM


> Ok...i run win7 64bit, maybe i have some stuff made for 32bit somwhere. The thing
> is...i didn't change anything, just made some changes to the source, and tried to
> recompile it again, and got this error.
> Thanx for the replys guys!

Do you think your changes might have had something to do with it?



zanyt13
MAME Fan
Reged: 06/19/12
Posts: 28
Send PM


Re: Compiling Mame 0.148 new [Re: Robbbert]
#305876 - 03/17/13 01:03 PM


No, i even tried the sourcecode without any changes. Same error.



zanyt13
MAME Fan
Reged: 06/19/12
Posts: 28
Send PM


Re: Compiling Mame 0.148 new [Re: zanyt13]
#305887 - 03/17/13 07:20 PM


Found the problem. The path was not correct in the *.bat file.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 250 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2145