Pages: [1]
  Print  
Author Topic: Segmentation Faults on x86_64 Linux  (Read 9089 times)
Tido
Nub


Cakes 0
Posts: 3


« on: August 14, 2007, 08:05:26 PM »

First off, thanks for making a cool *open* game!  I'd enjoy it more except the game will crash after playing for a few minutes and the only error (when run from console) given is "Segementation Fault".  The crashes happen completely at random and I can't find anything in particular that triggers them.  I'm using OA 0.71.  My OS is Arch Linux x64 (kernel 2.6.22).  My DE is KDE 3.5.7.

Any ideas? It's so frustrating!
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #1 on: August 14, 2007, 08:42:29 PM »

try recompiling the binary
Logged

Tido
Nub


Cakes 0
Posts: 3


« Reply #2 on: August 15, 2007, 12:44:44 AM »

Are there any instructions for compiling?
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #3 on: August 15, 2007, 01:26:21 AM »

download the source, make sure you have the dependencies:
Code:
ldd ioquake3.x86_64
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00002b3955612000)
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x00002b39557c7000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00002b39558cf000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x00002b39559fa000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b3955aff000)
        libm.so.6 => /lib/libm.so.6 (0x00002b3955c03000)
        libc.so.6 => /lib/libc.so.6 (0x00002b3955d85000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x00002b3955fc2000)
        libdirectfb-0.9.so.25 => /usr/lib/libdirectfb-0.9.so.25 (0x00002b395619c000)
        libfusion-0.9.so.25 => /usr/lib/libfusion-0.9.so.25 (0x00002b39562fa000)
        libdirect-0.9.so.25 => /usr/lib/libdirect-0.9.so.25 (0x00002b3956400000)
        libvga.so.1 => /usr/lib/libvga.so.1 (0x00002b3956511000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002b3956678000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b39554fa000)

then issue a make command.
Logged

Tido
Nub


Cakes 0
Posts: 3


« Reply #4 on: August 15, 2007, 03:07:34 AM »

Code:
In file included from code/cgame/cg_consolecmds.c:27:
code/cgame/../ui/ui_shared.h:30:30: error: ../../ui/menudef.h: No such file or directory
make[1]: *** [build/release-linux-x86_64/baseq3/cgame/cg_consolecmds.o] Error 1
make[1]: Leaving directory `/home/todd/oa_code/source'
make: *** [build_release] Error 2

Sad
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #5 on: August 15, 2007, 03:28:40 AM »

You are missing the ui folder and its contents available in the svn http://openarena.ws/svn/source/ui/

those files belong in /ui which should be in the same directory as /code
Logged

amdfanatyk
Nub


Cakes 0
Posts: 19



WWW
« Reply #6 on: August 22, 2007, 11:14:07 AM »

It's still compiled with -O3 by default. Recompile with -O2 and correct -march.
Logged

Occupation:
programmer

Fluent in:
Polish, Assembler, C/C++, Java, bash/awk
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #7 on: August 22, 2007, 12:46:11 PM »

correct -march.

Every try to run a binary compiled for an AMD processor on an intel chip?  If you don't like the binary recompile.
Logged

Pages: [1]
  Print  
 
Jump to: