Not able to compile in Red Hat 9.2 Plow in setup 5
fpga_load is not compiling in setup 5 under Red Hat Enterprise Linux 9.2 (Plow). It fails in the last step linking the executable. Compiling with make V=1
:
Linking ../..//fpga_load
gcc -g -lm -static _amd_stub.o _amd_sw_stub.o _amd_smb_stub.o _amd_smb_sw_stub.o _istrata_stub.o _istrata_sw_stub.o _istrata_mmod_stub.o _istrata_mmod_sw_stub.o fpga_load.o flash_com.o hw_acc_io.o _st_stub.o _st_sw_stub.o /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libusr_oss.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libusr_utl.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libchameleon_usr.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libchameleon_usr_io.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libchameleon_usr_sw.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libchameleon_usr_io_sw.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/liboss_usr.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libdbg_usr.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libvme4l_api.a /opt/menlinux/LIBSRC/pciutils/lib/libpci.a /home/dua/jensen/13MD05-90/MDISforLinux/TOOLS/FPGA_LOAD/LIB/libcJSON.a -o ../..//fpga_load -lm
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [/opt/menlinux/BUILD/MDIS/TPL/usrprog_static.mak:183: ../..//fpga_load] Error 1
make[1]: *** [/opt/menlinux/BUILD/MDIS/TPL/usrprog_static.mak:158: buildinobjdir] Error 2
make: *** [rules_fpga_load.mak:156: FPGA_LOAD/program.mak] Error 2