1

Topic: can't compie 0.4.3, bam says Segmentation fault on arm-debian

(First I must say: I can compile teeworlds-0.4.3 on sources with Ubuntu 8.04 and gcc 4.2.3.)

Then I tried to compile it on my arm-debian with gcc 4.3.2.
(both systems has Python 2.5.2 installed)

I got bam compiled and when I try to execute it in wrong directory it says "bam: no project named 'default.bam'", so bam compilation is success.


But in teeworlds-0.4.3-src bam only says "Segmentation fault"
I tested with and without parameters to bam. Also server_release segfaults immediatly.


btw: When teeworlds will use Makefile, so it can be easy compiled more exotic platforms (Now I do not even adventure cross-compiling it)

2

Re: can't compie 0.4.3, bam says Segmentation fault on arm-debian

Bug in bam then. Can you run bam trough gdb and give me a backtrace of the crash so I can fix it?

Example:

# gdb bam
*legal text*
(gdb) r
*CRASH*
(gdb) bt
*backtrace comes here*
(gdb) q

Btw, I think the 0.4.x code base isn't endian clean so I don't think it will run.

Teeworlds will never use makefiles. I hate them to the very core of my heart smile

3

Re: can't compie 0.4.3, bam says Segmentation fault on arm-debian

I back to this issue, now with teeworlds-0.5.1.
Again, I can compile it on sources with Ubuntu 8.04 and gcc 4.2.4.

But in arm-debian (with gcc 4.3.3):
Now it doesn't segfault, but it says:
./bam-0.2.0/src/bam release
--- Auto Configuration ---
compiler: gcc
stackprotector: yes
zlib: not found (optional)
sdl: using sdl-config
saving configuration to 'config.bam'
---
add_dep: couldn't find node with name 'src/game/generated/gc_data.cpp'
stack traceback:
  default.bam(69): ContentCompile global
    action = 'client_content_source'
    output = 'src/game/generated/gc_data.cpp'
  default.bam(79): (null)
bam: error during build

4

Re: can't compie 0.4.3, bam says Segmentation fault on arm-debian

Seems like the file isn't generated as it should by the python script. Use the -v flag and see what command it uses for generating it.

5

Re: can't compie 0.4.3, bam says Segmentation fault on arm-debian

../bam-0.2.0/src/bam -v release
bam: reading internal file 'src/base.bam'
bam: reading internal file 'src/driver_gcc.bam'
bam: reading internal file 'src/driver_cl.bam'
bam: reading script from 'default.bam'
--- Auto Configuration ---
compiler: gcc
stackprotector: yes
zlib: not found (optional)
sdl: using sdl-config
saving configuration to 'config.bam'
---
add_dep: couldn't find node with name 'src/game/generated/gc_data.cpp'
stack traceback:
  default.bam(69): ContentCompile global
    action = 'client_content_source'
    output = 'src/game/generated/gc_data.cpp'
  default.bam(79): (null)
bam: error during build

6

Re: can't compie 0.4.3, bam says Segmentation fault on arm-debian

This issue is not solved yet. What else I can try?
Is this related to bam or teeworlds?