Summary: | libsdl-1.2.8-r1 emerge compilation failure | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nir Dremer <mailing> |
Component: | New packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | chtitux, gentoo, kryptonite418787, lastlee.com, latexer, x |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nir Dremer
2005-04-19 01:47:45 UTC
After several retries, disabled the following lines inside the ebuild solved the problem: epatch "${FILESDIR}"/${PV}-gcc2.patch #75392 epatch "${FILESDIR}"/${P}-gcc2.patch.bz2 #86481 Me too with ~x86 now ist stable and still not working.... Builds fine for me. Try it with CFLAGS="-pipe" and see if that works. i HAVE pipe Same problem here - I can confirm comment #1 suggestion fixed it. Cheers, Alan. Michael: He meant *only* pipe reopen after trying that please. In case anybody cares: I'm having the same problem, so tried to run the failing compiler call without the ">/dev/null 2>&1" redirection that prevents the compiler from giving a reasonable error message. The result is: 0 rumo:/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src/video# i686-pc-linux- gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACK AGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\" -DVERSION=\"1.2.8\" - DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAV E_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STD INT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DH AVE_LIBASOUND=1 -I. -I. -O2 -march=pentium3 -msse2 -fomit-frame-pointer -Wall -D ENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../. ./src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.2 -DUSE_DL VSYM -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DESD_SUPPORT -DESD _DYNAMIC=libesd.so.0 -DENABLE_X11 -DXTHREADS -I./include -I./src/video -DXFREE86 _VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -Isrc/v ideo -DENABLE_DGA -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREA DS -DHAVE_SIGACTION -I../../include -I../../include/SDL -I../../src -I../../src/ main/linux -I../../src/audio -I../../src/video -I../../src/video/XFree86/extensi ons -I../../src/events -I../../src/joystick -I../../src/cdrom -I../../src/thread -I../../src/timer -I../../src/endian -I../../src/file -I../../src/thread -c SDL _yuv_mmx.c -o SDL_yuv_mmx.o >/dev/null SDL_yuv_mmx.c: In function `ColorRGBDitherYV12MMX1X': SDL_yuv_mmx.c:113: error: can't find a register in class `GENERAL_REGS' while re loading `asm' SDL_yuv_mmx.c: At top level: SDL_yuv_mmx.c:59: warning: `MMX_Ugrn555' defined but not used SDL_yuv_mmx.c:60: warning: `MMX_Vgrn555' defined but not used SDL_yuv_mmx.c:64: warning: `MMX_red555' defined but not used SDL_yuv_mmx.c:66: warning: `MMX_grn555' defined but not used SDL_yuv_mmx.c:68: warning: `MMX_blu5x5' defined but not used So, there's some problem with the assembler part starting at line 113. The file looks different and compiles cleanly in the original SDL distribution. for me, CFLAGS="-pipe" made it emerge. but I got the same error with my normal CFALGS, which is: -march=pentium3 -pipe -O3 -fomit-frame-pointer -frename-registers -fprefetch-loop-arrays -falign-functions -mmmx -msse2 -msse which is quite annoying, as I'd expect msse, msse2 and other optimazation especially from libSDL... Add back your CFLAGS until it breaks. Same here. I disabled -msse -fomit-frame-pointer and had success. I guess it's the -msse switch! Confirmed. Removing the -msse2 option from above-mentioned compiler call (see comment #9) makes it work fine. *** Bug 95873 has been marked as a duplicate of this bug. *** Reopened to fix this properly... it's already been taken care of *** Bug 96857 has been marked as a duplicate of this bug. *** *** Bug 100971 has been marked as a duplicate of this bug. *** *** Bug 104770 has been marked as a duplicate of this bug. *** *** Bug 107404 has been marked as a duplicate of this bug. *** |