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).

Re: FreeBSD and expat

Postby segfault » Tue Aug 24, 2010 3:41 pm

How do I feed the "./configure <your other parameters> --enable-debug" equivalent option when using cmake?
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: FreeBSD and expat

Postby klauss » Tue Aug 24, 2010 8:19 pm

"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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Postby segfault » Wed Aug 25, 2010 5:24 pm

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.
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Re: FreeBSD and expat

Postby klauss » Wed Aug 25, 2010 5:29 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Postby segfault » Wed Aug 25, 2010 7:10 pm

Ahh good to know!
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Re: FreeBSD and expat

Postby segfault » Wed Aug 25, 2010 7:42 pm

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.
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Re: FreeBSD and expat

Postby klauss » Wed Aug 25, 2010 7:52 pm

"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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Postby segfault » Wed Aug 25, 2010 7:59 pm

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
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Re: FreeBSD and expat

Postby klauss » Wed Aug 25, 2010 8:24 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: FreeBSD and expat

Postby segfault » Wed Aug 25, 2010 9:34 pm

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:
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Re: FreeBSD and expat

Postby segfault » Fri Sep 03, 2010 12:07 pm

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.
User avatar
segfault
Merchant
Merchant
 
Posts: 39
Topics: 2
Joined: Mon Aug 16, 2010 8:50 pm
Location: Ottawa, Canada

Re: FreeBSD and expat

Postby klauss » Fri Sep 03, 2010 12:22 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina


Previous

Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 1 guest