Spike ToHost and FromHost error

I want to simulate vector instructions on spike, I configired my gnu toolchain with rv32gcv and same for spike. Toolchain successfully generated my ELF file but when I am trying to generate my log file on spike it shows a warning when I run the following command:
spike -m0x10000:0x50000 --varch=vlen:128,elen:32 --isa=rv32gcv add2vector logfile.log -l

the warning generated is:
warning: tohost and fromhost symbols not in ELF; can’t communicate with target

Note: This is a warning but it gets spike stuck and I have to kill the process eventually.