Menu

#2 FTB on latest CVS

open
nobody
None
5
2004-11-25
2004-11-25
No

Build fails with error:
"""
if gcc-3.4 -DHAVE_CONFIG_H -I. -I. -I. -O3
-mcpu=athlon -mtune=athlon -DNO_HACK_ALIGN
-DY_TARGET=12 -DY_AVAL=4 -DY_MEM_THRESHOLD=8192
-DY_BLOCKSIZE=128 -DY_SHIFT=6 -DY_PADDING_LEVEL=3
-DY_CACHE_LINE=8 -MT iteration.o -MD -MP -MF
".deps/iteration.Tpo" -c -o iteration.o iteration.c; \
then mv -f ".deps/iteration.Tpo" ".deps/iteration.Po";
else rm -f ".deps/iteration.Tpo"; exit 1; fi
iteration.c: In function `lucas_square':
iteration.c:89: error: `smode' undeclared (first use in
this function)
iteration.c:89: error: (Each undeclared identifier is
reported only once
iteration.c:89: error: for each function it appears in.)
make[1]: *** [iteration.o] Error 1
"""

The problem is
"""
case 2:
/*Save. Save a residue an do a normal iteration.*/
y_fftb_pass1_lucas_last (x, N);
last_normalize (x, N << 1, error_log);

if(write_check_point (q, N << 1, iter, Err, x,
smode) <= 0) return -1;
res64 (x, q, N << 1, bits);
"""
smode is indeed unknown at that point.
I just added an 'extern UL smode' and it compiles happily.

Phil Carmody

Discussion


Log in to post a comment.

MongoDB Logo MongoDB