Hello +Guys,
I have this very strange error in C. I need a very large array to store items from file so as to mine, while generating a large tree and do some data mining. I'm working on some Association rule mining algorithms(The FP Growth Algorithm). Here is the error:
Code:
[localhost@localhost apriori_1]$ make
gcc -g -o fptree fpmain.c fptree.c
/tmp/ccl29X0b.o: In function `main':
/home/localhost/Documents/Code/apriori_1/fpmain.c:14:(.text+0x12): relocation truncated to fit: R_X86_64_PC32 against symbol `num_updates' defined in COMMON section in /tmp/ccl29X0b.o
/home/localhost/Documents/Code/apriori_1/fpmain.c:14:(.text+0x1c): relocation truncated to fit: R_X86_64_PC32 against symbol `num_oflines' defined in COMMON section in /tmp/ccl29X0b.o
/home/localhost/Documents/Code/apriori_1/fpmain.c:14:(.text+0x26): relocation truncated to fit: R_X86_64_PC32 against symbol `num_oflines' defined in COMMON section in /tmp/ccl29X0b.o
/tmp/cc9G8ONd.o: In function `create_fptree':
/home/localhost/Documents/Code/apriori_1/fptree.c:63:(.text+0x1f6): relocation truncated to fit: R_X86_64_PC32 against symbol `num_oflines' defined in COMMON section in /tmp/ccl29X0b.o
/tmp/cc9G8ONd.o: In function `add_to_fptree1':
/home/localhost/Documents/Code/apriori_1/fptree.c:81:(.text+0x2e9): relocation truncated to fit: R_X86_64_PC32 against symbol `num_updates' defined in COMMON section in /tmp/ccl29X0b.o
/home/localhost/Documents/Code/apriori_1/fptree.c:81:(.text+0x2f4): relocation truncated to fit: R_X86_64_PC32 against symbol `num_updates' defined in COMMON section in /tmp/ccl29X0b.o
/tmp/cc9G8ONd.o: In function `gensup_headtable':
/home/localhost/Documents/Code/apriori_1/fptree.c:184:(.text+0x7e6): relocation truncated to fit: R_X86_64_PC32 against symbol `num_updates' defined in COMMON section in /tmp/ccl29X0b.o
/home/localhost/Documents/Code/apriori_1/fptree.c:184:(.text+0x7f1): relocation truncated to fit: R_X86_64_PC32 against symbol `num_updates' defined in COMMON section in /tmp/ccl29X0b.o
/tmp/cc9G8ONd.o: In function `get_ancestor':
/home/localhost/Documents/Code/apriori_1/fptree.c:212:(.text+0x89f): relocation truncated to fit: R_X86_64_32S against symbol `itemset' defined in COMMON section in /tmp/ccl29X0b.o
/tmp/cc9G8ONd.o: In function `count_fpgsingles':
/home/localhost/Documents/Code/apriori_1/fptree.c:257:(.text+0xa6f): relocation truncated to fit: R_X86_64_PC32 against symbol `num_updates' defined in COMMON section in /tmp/ccl29X0b.o
/home/localhost/Documents/Code/apriori_1/fptree.c:257:(.text+0xa7a): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
makefile:5: recipe for target 'all' failed
make: *** [all] Error 1
[localhost@localhost apriori_1]$
Any ideas on how to fix this? I don't seem to find much on stackoverflow.
Cheers!