We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3715 - hg default now fails to compile on i386 with GCC 6.3
Summary: hg default now fails to compile on i386 with GCC 6.3
Status: RESOLVED DUPLICATE of bug 3689
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: HG 2.1
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-27 01:19 UTC by bluescreen_avenger
Modified: 2017-08-09 04:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bluescreen_avenger 2017-07-27 01:19:43 UTC
Hi

I think its commit 2ee7d2fa299b that caused the issue, the one before it allows it to compile

I am compiling it with
./configure --prefix=$INSTALLDIR --libdir=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) --enable-wayland-shared=no
(I might not need the --enable-wayland-shared=no anymore, seems the wayland backend has been working even with that)


It seems I get the below errors

  CC     build/SDL_render_gl.lo
  CC     build/SDL_shaders_gl.lo
/srcbuild/SDL/src/render/SDL_yuv_mmx.c: In function 'ColorRGBDitherYV12MMX1X':
/srcbuild/SDL/src/render/SDL_yuv_mmx.c:94:5: error: 'asm' operand has impossible constraints
     __asm__ __volatile__ (
     ^~~~~~~
Makefile:400: recipe for target 'build/SDL_yuv_mmx.lo' failed
make: *** [build/SDL_yuv_mmx.lo] Error 1
make: *** Waiting for unfinished jobs....
PackageCompileSource finished in 8 seconds


Thanks
Comment 1 Ryan C. Gordon 2017-08-08 22:33:00 UTC
We're working on the MMX assembly issue in Bug #3689.

--ryan.

*** This bug has been marked as a duplicate of bug 3689 ***
Comment 2 Sam Lantinga 2017-08-09 04:18:23 UTC
YUV MMX assembly is temporarily disabled until we figure this out for the various versions of GCC, or rewrite this using MMX intrinsics.

https://hg.libsdl.org/SDL/rev/0d399e95168b