Compiling Under FreeBSD
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
How do I feed the "./configure <your other parameters> --enable-debug" equivalent option when using cmake?
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: FreeBSD and expat
"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.
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
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.
I will keep fiddling with it and see if I can come up with some useful data.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: FreeBSD and expat
You can't debug in full screen - just in case you're trying
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
Ahh good to know!
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
Aha I got it to crash in window mode.
Console output:
Still got the gdb session open, let me know if you want something specific inspected.
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)
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: FreeBSD and expat
"bt" or "where" shows you a backtrace telling you specifically where the error happened.
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
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
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: FreeBSD and expat
That's not very useful
Is it happening perhaps in OpenAL?
Why don't you try disabling all sound and music?
Is it happening perhaps in OpenAL?
Why don't you try disabling all sound and music?
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
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
Disabled sound as perscribed as well.
So far so good. Can't seem to get it to crash any longer.
Will keep trying
-
- Merchant
- Posts: 39
- Joined: Tue Aug 17, 2010 3:50 am
- Location: Ottawa, Canada
Re: FreeBSD and expat
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.
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.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: FreeBSD and expat
I believe you can rename it (just edit your opening post)