Compiling Under FreeBSD

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

How do I feed the "./configure <your other parameters> --enable-debug" equivalent option when using cmake?
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Post by klauss »

"ccmake" shows a few options. In build type, you can type either RelWithDebInfo (which is release with debugging symbols, harder to debug but optimized and performant) or, preferrably, just Debug.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

alright it seems to just lock up whenever a crash occurs while debugging and I have to restart X. Not sure what to do about that.
I will keep fiddling with it and see if I can come up with some useful data.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Post by klauss »

You can't debug in full screen - just in case you're trying ;)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

Ahh good to know!
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

Aha I got it to crash in window mode.
Console output:

Code: Select all

*** still no contingency
import cargo_mission
temp=cargo_mission.cargo_mission('klkk', 0, 12, 2, 7280, 0, 0, 'Industrially_Manufactured_Goods/Agricultural', ['Crucible/Cephid_17', 'Crucible/Everett'], '')
temp=0
warning: Unknown tag: python
It wasnt found Hydroponics
Assumed exit on unit quadshield05(if not quitting, report error)
Assumed exit on unit quadshield10(if not quitting, report error)
Assumed exit on unit quadshield09(if not quitting, report error)
Assumed exit on unit quadshield08(if not quitting, report error)
Assumed exit on unit quadshield02(if not quitting, report error)
Assumed exit on unit quadshield09(if not quitting, report error)
Assumed exit on unit quadshield10(if not quitting, report error)
Assumed exit on unit quadshield05(if not quitting, report error)
Assumed exit on unit quadshield07(if not quitting, report error)
Assumed exit on unit quadshield05(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit stormfire(if not quitting, report error)
Assumed exit on unit razor_gun(if not quitting, report error)
Assumed exit on unit leech_gun(if not quitting, report error)
Assumed exit on unit Shield_Breaker(if not quitting, report error)
Assumed exit on unit tractor_heavy(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Unit file Basic Repair not found
Assumed exit on unit LOAD_FAILED(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 2b67e640 (LWP 100175)]
0x28cce545 in _alMixSources () from /usr/local/lib/libopenal.so.0
(gdb) 
Still got the gdb session open, let me know if you want something specific inspected.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Post by klauss »

"bt" or "where" shows you a backtrace telling you specifically where the error happened.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

Code: Select all

#0  0x28cce545 in _alMixSources () from /usr/local/lib/libopenal.so.0
#1  0x0000401c in ?? ()
#2  0x2b67e640 in ?? ()
#3  0xbf9fefe8 in ?? ()
#4  0x28d6937e in pthread_mutex_lock () from /lib/libthr.so.3
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Post by klauss »

That's not very useful :(

Is it happening perhaps in OpenAL?

Why don't you try disabling all sound and music?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

Also realized that my xscreensaver seemed to be causing crashes perhaps (it was set to kick on after just 1min) and when it tried to take over the screen VS would fight it.
Disabled sound as perscribed as well.

So far so good. Can't seem to get it to crash any longer.
Will keep trying :wink:
segfault
Merchant
Merchant
Posts: 39
Joined: Tue Aug 17, 2010 3:50 am
Location: Ottawa, Canada

Re: FreeBSD and expat

Post by segfault »

Have not been able to cause a crash for over a week now. I think the remaining issue (regarding sound) can be differed to another thread to come.
Can this thread be renamed? i am wondering if it would better serve the community if it was named something more generic like "Issues compiling under FreeBSD".

Thanks again for the help.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Post by klauss »

I believe you can rename it (just edit your opening post)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply