[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] build problem
From: |
LRK |
Subject: |
[Discuss-gnuradio] build problem |
Date: |
Mon, 21 Nov 2005 14:43:34 -0600 |
User-agent: |
Mutt/1.4.2.1i |
Seems like every time I upgrade something, something breaks. I'm not
sure what causes this but building from CVS gives me a "segmentation
fault" during "make check" in gnuradio-core.
I tracked it down to large blocks being allocated in two of the tests.
This is being compiled with gcc 3.4.2 under FreeBSD 5.4.
This is a fix but I'm not sure it is the right fix:
--- gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc.orig Mon Nov 21
12:27:57 2005
+++ gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc Mon Nov 21 13:31:39 2005
@@ -82,8 +82,8 @@
{
gr_nco<float,float> ref_nco;
gr_fxpt_nco new_nco;
- gr_complex ref_block[SIN_COS_BLOCK_SIZE];
- gr_complex new_block[SIN_COS_BLOCK_SIZE];
+ static gr_complex ref_block[SIN_COS_BLOCK_SIZE];
+ static gr_complex new_block[SIN_COS_BLOCK_SIZE];
double max_error = 0;
ref_nco.set_freq ((float)(2 * M_PI / SIN_COS_FREQ));
--- gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc.orig Mon Nov 21
12:29:51 2005
+++ gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc Mon Nov 21 13:34:25 2005
@@ -76,9 +76,9 @@
{
gr_vco<float,float> ref_vco;
gr_fxpt_vco new_vco;
- float ref_block[SIN_COS_BLOCK_SIZE];
- float new_block[SIN_COS_BLOCK_SIZE];
- float input[SIN_COS_BLOCK_SIZE];
+ static float ref_block[SIN_COS_BLOCK_SIZE];
+ static float new_block[SIN_COS_BLOCK_SIZE];
+ static float input[SIN_COS_BLOCK_SIZE];
double max_error = 0;
for (int i = 0; i < SIN_COS_BLOCK_SIZE; i++){
--
LRK
address@hidden
- [Discuss-gnuradio] build problem,
LRK <=