mingw64,
sdl compiled on it, its libs fed to makefile
makefile tweaking,
mmap() is replaced with #ifdefs similar to vm_x86.c
I've reached a point where
Program received signal SIGSEGV, Segmentation fault.
0x000000001cb801d0 in ?? ()
(gdb) bt
#0 0x000000001cb801d0 in ?? ()
#1 0x000000000052f5e5 in VM_CallCompiled (vm=0x2035560, args=0x22f850) at
code/qcommon/vm_x86_64.c:1054
#2 0x000000000047d34c in VM_Call (vm=0x2035560, callnum=0) at
code/qcommon/vm.c:790
#3 0x00000000004288ff in CL_InitUI () at code/client/cl_ui.c:1111
#4 0x000000000041faf8 in CL_StartHunkUsers (rendererOnly=qfalse) at
code/client/cl_main.c:2856
#5 0x0000000000441f80 in Com_Init (commandLine=0x22f9c0 "") at
code/qcommon/common.c:2786
(it loads up the window normally and is after for 5 seconds before it)
the warnings i get on vm_x86_64.c (the only warnings) are
code/qcommon/vm_x86_64.c: In function 'VM_Compile':
code/qcommon/vm_x86_64.c:545: warning: cast from pointer to integer of
different size
code/qcommon/vm_x86_64.c:545: warning: cast from pointer to integer of
different size
code/qcommon/vm_x86_64.c:572: warning: cast from pointer to integer of
different size
code/qcommon/vm_x86_64.c:620: warning: cast from pointer to integer of
different size
code/qcommon/vm_x86_64.c:620: warning: cast from pointer to integer of
different size
code/qcommon/vm_x86_64.c:756: warning: cast from pointer to integer of
different size
code/qcommon/vm_x86_64.c:923: warning: cast from pointer to integer of
different size
545: PREPARE_JMP(eax);
572: emit("movq $%lu, %%rax", (unsigned long)callAsmCall);
620: PREPARE_JMP(eax);
756: emit("movq $%lu, %%rax", (unsigned long)block_copy_vm);
923: emit("movq $%lu, %%rax", (unsigned long)eop);
PS. I may have not be extremely careful on everything up to that point;
though i suspect it's primarily something related to code in vm_x86_64.c
_______________________________________________
ioquake3 mailing list
[email protected]
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.