oneapi-src / oneapi-src/oneAPI-samples
fpga_sim Quartus path issue
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C++
- Star
- 1.2k
- Fork
- 745
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hello, I am working on compiling the Loop Unroll sample.
Both Compiling for emulation & Generating the optimization report work well.
I am trying to Compile for simulation.
I have installed intel Quartus Prime Pro, and entered set QUARTUS_ROOTDIR_OVERRIDE="C:\intelFPGA_pro\24.2\quartus" on commands.
After I entered "nmake fpga_sim", I see the error below.
Any assistance in configuring Quartus's path issue would be appreciated.
I am using VS studio with Windows 11.
PS C:\Users\Kiju\Documents\intel\loop_unrolling_ex\loop_unroll\Tutorials\Features\loop_unroll\build> nmake fpga_sim
Microsoft (R) Program Maintenance Utility Version 14.40.33812.0
Copyright (C) Microsoft Corporation. All rights reserved.
[ 33%]
To compile manually:
C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/icx-cl.exe -I../../../../include -fintelfpga -Wall /EHsc -Qactypes -Xssimulation -DFPGA_SIMULATOR -c ../src/loop_unroll.cpp -o CMakeFiles/fpga_sim.dir/src/loop_unroll.cpp.obj
To link manually:
C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/icx-cl.exe -fintelfpga -Qactypes -Xssimulation -Xsghdl -Xstarget=Stratix10 -reuse-exe=C:/Users/Kiju/Documents/intel/loop_unrolling_ex/loop_unroll/Tutorials/Features/loop_unroll/build/loop_unroll.fpga_sim.exe -o loop_unroll.fpga_sim.exe CMakeFiles/fpga_sim.dir/src/loop_unroll.cpp.obj
[ 33%] Built target displaySimulationCompileCommands
[ 66%] Linking CXX executable loop_unroll.fpga_sim.exe
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.2.0 Build 20240602
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.
icx-cl: warning: unknown argument ignored in clang-cl: '-lkernel32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-luser32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-lgdi32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-lwinspool' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-lshell32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-lole32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-loleaut32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-luuid' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-lcomdlg32' [-Wunknown-argument]
icx-cl: warning: unknown argument ignored in clang-cl: '-ladvapi32' [-Wunknown-argument]
warning: -reuse-exe file 'C:/Users/Kiju/Documents/intel/loop_unrolling_ex/loop_unroll/Tutorials/Features/loop_unroll/build/loop_unroll.fpga_sim.exe' not found; ignored
'quartus_sh' is not recognized as an internal or external command,
operable program or batch file.
aoc: This compilation stage requires an installation of Intel(R) Quartus(R) Prime software!
aoc: However Quartus was not found on the PATH or passed in using QUARTUS_ROOTDIR_OVERRIDE.
aoc: If you have a valid installation, please pass it in using QUARTUS_ROOTDIR_OVERRIDE or add it to the PATH.
aoc: Otherwise, consider downloading Quartus from here: https://www.intel.com/content/www/us/en/software-kit/819138/intel-quartus-prime-pro-edition-design-software-version-24-1-b115-for-windows.html
llvm-foreach:
icx-cl: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
NMAKE : fatal error U1077: 'C:\PROGRA~2\Intel\oneAPI\compiler\latest\bin\icx-cl.exe "CMakeFiles\fpga_sim.dir\src\loop_unroll.cpp.obj" -o loop_unroll.fpga_sim.exe -fintelfpga -Qactypes -Xssimulation -Xsghdl -Xstarget=Stratix10 -reuse-exe=C:/Users/Kiju/Documents/intel/loop_unrolling_ex/loop_unroll/Tutorials/Features/loop_unroll/build/loop_unroll.fpga_sim.exe -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\nmake.exe" -s -f CMakeFiles\fpga_sim.dir\build.make /nologo -SL CMakeFiles\fpga_sim.dir\build' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -SL CMakeFiles\fpga_sim.dir\all' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -S fpga_sim' : return code '0x2'
Stop.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với điểm vào nmake fpga_sim của mẫu Loop Unroll và kiểm tra cách quá trình build truyền QUARTUS_ROOTDIR_OVERRIDE hoặc PATH cho quartus_sh. Chạy lại lệnh trên Windows 11 với bản cài đặt Quartus được báo cáo, sau đó xác minh rằng quá trình biên dịch mô phỏng FPGA hoàn tất mà không có lỗi Quartus was not found.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- build-system, embedded-iot
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100