mame 0.174 problems with input on Big Endian

Bug #1598371 reported by luigiburdo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mame (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Hi Cesare,
please update the mame 0.174 because the first release had issues with input on big endian, now fixed by mame devs.
Thanks
Luigi

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Does mame 0.175-1 fix this issue?

https://launchpad.net/ubuntu/+source/mame/0.175-1

Changed in mame (Ubuntu):
status: New → Incomplete
Revision history for this message
luigiburdo (intermediadc) wrote :

Hi Jeremy,
no look like the lastest have again the sdl bigendian input bug,
im building last git and check if the bug come again if yes i have again the ask the mame dev to fix it. it was fixed on .174 lastest
if on lastest git will work i will report or better will report in any case.

Revision history for this message
luigiburdo (intermediadc) wrote :

Build from sources and working.

just sharing the makefile option i use to build
note only this because ubuntu ppc is only 32bit on 64bit hardware too

TARGET = mame
BIGENDIAN = 1
TARGETOS = linux

luigi

Revision history for this message
Jeremy Bícha (jbicha) wrote :

For powerpc, those should already be set:

https://anonscm.debian.org/cgit/pkg-games/mame.git/tree/debian/rules#n86

line 34 is TARGETOS = linux
around line 86 is BIGENDIAN=1

I haven't tried, but I am guessing that if BIGENDIAN were set wrong, the code wouldn't even compile.

Revision history for this message
luigiburdo (intermediadc) wrote :

yes if not set the biendian it will not build .
but i have the feeling the issue is here
ifeq ($(DEB_HOST_ARCH),ppc64)
PTR64=1

i didnt set it because ubuntu on ppc is 32bit, kernels only are 64bit.
and this make issue on libsdl too.
 we are waiting the 64bit migration like is on fedora an suse that are full 64bit (kernel and os)

I suggest to set PTR64=0 on ppc64 too like on powerpc

I forget to mention before, my machine is a ppc64 e5500 P5020

Luigi

Revision history for this message
Jeremy Bícha (jbicha) wrote :

That part of the code is Debian-only since Debian supports a separate ppc64 architecture (64-bit big-endian) in addition to the powerpc (32-bit big-endian) and ppc64el (64-bit little-endian) architectures that Ubuntu supports.

You can see the supported builds for the most recent version at

https://launchpad.net/ubuntu/+source/mame/0.175-1

Under Builds, you can click 'powerpc' and then click buildlog.

Revision history for this message
luigiburdo (intermediadc) wrote :

I dont know Jeremy,
i dont understand why repo build gave the issue on input and github not .
I can ask other guys on ubuntuforums to check if they have my same issue.

Luigi

Revision history for this message
Cesare Falco (c.falco) wrote :

> ifeq ($(DEB_HOST_ARCH),ppc64)
> PTR64=1

> i didnt set it because ubuntu on ppc is 32bit, kernels only are 64bit.
> and this make issue on libsdl too.

Please note architecture size is a different matter from pointer size.
You're right for the former, whilst pointer size on ppc64 is 8 byte:
http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html

So setting PTR64=1 is right.

Revision history for this message
luigiburdo (intermediadc) wrote :

Hi Cesare,
the best that i can do is try to build with PTR64=1 too and check if i have the input issue or not and report.
For sure i know the input issue was fixed by Brad Hug
https://github.com/mamedev/mame/issues/963
what i dont understand is why 0.175 from ppa gave me the input issue and my self build not.

Revision history for this message
luigiburdo (intermediadc) wrote :

hi guys i add the PTR64=1 my usual configuration this is the result
was pretty sure about

Linking mame64...
/usr/bin/ld: skipping incompatible /usr/local/lib/libSDL2.so when searching for -lSDL2
/usr/bin/ld: skipping incompatible /usr/local/lib/libSDL2.a when searching for -lSDL2
/usr/bin/ld: skipping incompatible //usr/lib/powerpc-linux-gnu/libSDL2.so when searching for -lSDL2
/usr/bin/ld: skipping incompatible //usr/lib/powerpc-linux-gnu/libSDL2.a when searching for -lSDL2
/usr/bin/ld: skipping incompatible //usr/local/lib/libSDL2.so when searching for -lSDL2
/usr/bin/ld: skipping incompatible //usr/local/lib/libSDL2.a when searching for -lSDL2
/usr/bin/ld: cannot find -lSDL2
collect2: error: ld returned 1 exit status
mame.make:238: recipe for target '../../../../../mame64' failed
make[2]: *** [../../../../../mame64] Error 1
Makefile:943: recipe for target 'mame' failed
make[1]: *** [mame] Error 2
makefile:1194: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.