Altera_Forum
Honored Contributor
8 years agoCompile error with alteracl.lib using mingw-w64 on Windows 10
Hello! I am trying to compile an open-source project with the Intel OpenCL FPGA SDK 17.0 and an Arria 10 board on Windows 10 using mingw-w64. I got an error when the makefile run a command looks like:
g++ ./host/main.o ../common/ocl_util.o ../common/timer.o -o run.exe -LC:/intelFPGA_pro/17.0/hld/board/a10_ref/windows64/lib -LC:/intelFPGA_pro/17.0/hld/host/windows64/lib -laltera_a10_ref_mmd -lalteracl -lacl_emulator_kernel_rt -lpkg_editor -llibelf -lacl_hostxml and I got an error saying like: C:/intelFPGA_pro/17.0/hld/host/windows64/lib/alteracl.lib(d:/SJ/nightly/17.0/290/w64/acds/hld/obj/windows64/acl/acl_program.obj):(.text[l_build_from_source_in_dir]+0xa2): undefined reference to `__imp__wassert' C:/intelFPGA_pro/17.0/hld/host/windows64/lib/alteracl.lib(d:/SJ/nightly/17.0/290/w64/acds/hld/obj/windows64/acl/acl_program.obj):(.text[l_load_binary_pkg]+0xb36): undefined reference to `__security_check_cookie' C:/intelFPGA_pro/17.0/hld/host/windows64/lib/alteracl.lib(d:/SJ/nightly/17.0/290/w64/acds/hld/obj/windows64/acl/acl_program.obj):(.xdata[$unwind$l_compute_hash]+0x10): undefined reference to `__GSHandlerCheck' (too long and get truncated; only repeating these 3 errors.) I google these errors and they turn out to be related to some MS Visual C++ libraries. I wonder if Visual Studio is the only way to go (can I still use mingw-w64?)? If mingw is OK, how can I fix these bugs? The link to the open-source project is posted here for your reference: https://github.com/doonny/pipecnn. Thanks in advance!!