stealthdave
New member
Hello. I'm trying to compile mupen64 on Gentoo 2006.0 for AMD64, and I'm running into problems compiling the glN64 plugin. After a few minor changes, I was able to get everything else to compile. The changes I made were:
- patching source with the Archlinux patch found in the source code thread
- changing the CFLAGS line in Makefile, removing "-mcpu=athlon" and adding " -fPIC":
After that, things seem to go much more smoothly. Everything compiles nicely until I get to glN64 when I get the following warnings and error message:
Any thoughts as to how to procede from here would be appreciated.
- Stealth Dave
- patching source with the Archlinux patch found in the source code thread
- changing the CFLAGS line in Makefile, removing "-mcpu=athlon" and adding " -fPIC":
Code:
CFLAGS =-DX86 -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -ffast-math -fno-strict-aliasing -Wall -pipe -fPIC
After that, things seem to go much more smoothly. Everything compiles nicely until I get to glN64 when I get the following warnings and error message:
Code:
g++ -DX86 -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -ffast-math -fno-strict-aliasing -Wall -pipe -fPIC -D__LINUX__ -DX86_ASM `sdl-config --cflags` -c -o glN64/Textures.o glN64/Textures.cpp
In file included from glN64/Textures.h:5,
from glN64/FrameBuffer.h:5,
from glN64/gDP.h:5,
from glN64/gSP.h:6,
from glN64/OpenGL.h:22,
from glN64/Textures.cpp:13:
glN64/convert.h: In function `void UnswapCopy(void*, void*, u32)':
glN64/convert.h:422: warning: cast from pointer to integer of different size
glN64/convert.h:430: warning: cast from pointer to integer of different size
glN64/convert.h:430: warning: cast to pointer from integer of different size
glN64/convert.h:434: warning: cast from pointer to integer of different size
glN64/convert.h:434: warning: cast to pointer from integer of different size
glN64/convert.h:435: warning: cast from pointer to integer of different size
glN64/convert.h:435: warning: cast to pointer from integer of different size
glN64/convert.h:437: warning: cast from pointer to integer of different size
glN64/convert.h:437: warning: cast to pointer from integer of different size
glN64/convert.h:447: warning: cast from pointer to integer of different size
glN64/convert.h:447: warning: cast to pointer from integer of different size
glN64/convert.h:448: warning: cast from pointer to integer of different size
glN64/convert.h:448: warning: cast to pointer from integer of different size
glN64/convert.h:455: warning: cast from pointer to integer of different size
glN64/convert.h:455: warning: cast to pointer from integer of different size
glN64/convert.h:459: warning: cast from pointer to integer of different size
glN64/convert.h:459: warning: cast to pointer from integer of different size
glN64/convert.h:460: warning: cast from pointer to integer of different size
glN64/convert.h:460: warning: cast to pointer from integer of different size
glN64/convert.h: In function `void DWordInterleave(void*, u32)':
glN64/convert.h:507: warning: cast from pointer to integer of different size
glN64/convert.h:507: warning: cast to pointer from integer of different size
glN64/convert.h:508: warning: cast from pointer to integer of different size
glN64/convert.h:508: warning: cast to pointer from integer of different size
glN64/convert.h:508: warning: cast from pointer to integer of different size
glN64/convert.h:508: warning: cast to pointer from integer of different size
glN64/convert.h:509: warning: cast from pointer to integer of different size
glN64/convert.h:509: warning: cast to pointer from integer of different size
glN64/convert.h:511: warning: cast from pointer to integer of different size
glN64/convert.h:511: warning: cast to pointer from integer of different size
glN64/convert.h: In function `void QWordInterleave(void*, u32)':
glN64/convert.h:574: warning: cast from pointer to integer of different size
glN64/convert.h:574: warning: cast to pointer from integer of different size
glN64/convert.h:575: warning: cast from pointer to integer of different size
glN64/convert.h:575: warning: cast to pointer from integer of different size
glN64/convert.h:575: warning: cast from pointer to integer of different size
glN64/convert.h:575: warning: cast to pointer from integer of different size
glN64/convert.h:576: warning: cast from pointer to integer of different size
glN64/convert.h:576: warning: cast to pointer from integer of different size
glN64/convert.h:578: warning: cast from pointer to integer of different size
glN64/convert.h:578: warning: cast to pointer from integer of different size
glN64/convert.h:579: warning: cast from pointer to integer of different size
glN64/convert.h:579: warning: cast to pointer from integer of different size
glN64/convert.h:579: warning: cast from pointer to integer of different size
glN64/convert.h:579: warning: cast to pointer from integer of different size
glN64/convert.h:580: warning: cast from pointer to integer of different size
glN64/convert.h:580: warning: cast to pointer from integer of different size
glN64/convert.h:582: warning: cast from pointer to integer of different size
glN64/convert.h:582: warning: cast to pointer from integer of different size
{standard input}: Assembler messages:
{standard input}:1658: Error: Incorrect register `%rbx' used with `l' suffix
{standard input}:1690: Error: Incorrect register `%r13' used with `l' suffix
{standard input}:1702: Error: Incorrect register `%r15' used with `l' suffix
{standard input}:1714: Error: Incorrect register `%r11' used with `l' suffix
{standard input}:1726: Error: Incorrect register `%rbp' used with `l' suffix
{standard input}:1738: Error: Incorrect register `%r14' used with `l' suffix
{standard input}:1750: Error: Incorrect register `%rax' used with `l' suffix
{standard input}:1762: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:1776: Error: Incorrect register `%rbx' used with `l' suffix{standard input}:1786: Error: Incorrect register `%rax' used with `l' suffix
{standard input}:1796: Error: Incorrect register `%r14' used with `l' suffix
{standard input}:1806: Error: Incorrect register `%rsi' used with `l' suffix
{standard input}:1816: Error: Incorrect register `%r9' used with `l' suffix
{standard input}:1826: Error: Incorrect register `%rax' used with `l' suffix
{standard input}:1836: Error: Incorrect register `%r14' used with `l' suffix
{standard input}:1846: Error: Incorrect register `%rsi' used with `l' suffix
make: *** [glN64/Textures.o] Error 1
- Stealth Dave