project-navigation
Personal tools

Author Topic: Optimization of RC3 linux bin from SF...  (Read 3455 times)

Offline APL

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Optimization of RC3 linux bin from SF...
« on: August 16, 2006, 05:38:04 pm »
Hi.

I just got RC3 from SourceForge. Tried to run it but the game was killed with SIGILL. :-(

IMHO you should use generic i686 optimalization for official builds.

$ gdb ./ufo
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /home/aszojda/Gry/ufoai/ufo
[Thread debugging using libthread_db enabled]
[New Thread -1484642624 (LWP 31963)]
Adding game dir: ./base
using /home/aszojda/.ufoai/base for writing
Adding game dir: /home/aszojda/.ufoai/base
execing default.cfg
couldn't exec config.cfg
execing keys.cfg
Console initialized.

------- sound initialization -------

Program received signal SIGILL, Illegal instruction.
[Switching to Thread -1484642624 (LWP 31963)]
0x080a6cd8 in SNDDMA_Init (s=0x19d17e00) at linux/snd_linux.c:44
44      linux/snd_linux.c: No such file or directory.
        in linux/snd_linux.c
(gdb)

The offending instruction is movss:

0x080a6cd8 <SNDDMA_Init+56>:    movss  0x14(%eax),%xmm0

This is SSE instruction. I'm on ancient Athlon1200 without SSE support... :-(

$ cat /proc/cpuinfo  | grep ^flags
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow up

Is there somewhere source package of RC3 so I can build it for this CPU? Or should I wait for RC4?

A.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Optimization of RC3 linux bin from SF...
« Reply #1 on: August 16, 2006, 06:03:18 pm »
of course there is a sourcepackage of rc3 but i suggest you should test current revision (near rc4) from svn. if you don't want that you can grab the sourcecode from svn for rc3 (see wiki for more infos)

Offline APL

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Optimization of RC3 linux bin from SF...
« Reply #2 on: August 16, 2006, 06:45:43 pm »
Quote from: "Mattn"
of course there is a sourcepackage of rc3


:) I know there is. I was asking for .tar.bz2 with sources.  

But OK. I'll wait for RC4. Will the official build also be SSE-optimized? :)

Hmm... But maybe I should ask if it will build and run on pure 64 bit environment as I plan to upgrade do Athlon64 soon anyway...

A.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Optimization of RC3 linux bin from SF...
« Reply #3 on: August 16, 2006, 07:04:46 pm »
there is currently no tar.bz of the source - 2.0 final will have all this.

i hope i didn't forget to deactivate the optimization flags :-)

well - i'm using an amd64 - and it runs well

winterheart

  • Guest
Optimization of RC3 linux bin from SF...
« Reply #4 on: August 17, 2006, 01:42:50 pm »
for Linux source code of rc4 would be prefered, than binaries...

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
Optimization of RC3 linux bin from SF...
« Reply #5 on: August 17, 2006, 04:22:41 pm »
You can easily get it via SVN. See the relevant wiki page.