Page 1 of 1

Error when compiling "Make" in /root/RedPitaya-master/scpi-server/src

Posted: Fri Oct 16, 2020 2:46 pm
by asw
Hello community,

I am on the device using a SSH connection (PuttY)
When I compile the scpi-server using Makefile in the folder /root/RedPitaya-master/scpi-server/src I receive following error:

scpi-commands.c:236:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
.registers = scpi_regs,
scpi-commands.c:236:18: note: (near initialization for ‘scpi_context.registers[0]’)
scpi-commands.c:236:18: error: initializer element is not computable at load time
scpi-commands.c:236:18: note: (near initialization for ‘scpi_context.registers[0]’)
scpi-commands.c:238:12: warning: missing braces around initializer [-Wmissing-braces]
.idn = {"REDPITAYA", "INSTR2020", NULL, "01-02"},
scpi-commands.c:238:12: note: (near initialization for ‘scpi_context.idn’)
scpi-commands.c:229:23: warning: missing braces around initializer [-Wmissing-braces]
scpi_t scpi_context = {
scpi-commands.c:229:23: note: (near initialization for ‘scpi_context’)
Makefile:77: recipe for target '../obj/scpi-commands.o' failed
make[1]: *** [../obj/scpi-commands.o] Error 1
make[1]: Leaving directory '/root/RedPitaya-master/scpi-server/src'
Makefile:25: recipe for target 'scpi-server' failed
make: *** [scpi-server] Error 2