解决archlinux下vitis_hls无法启动gui

通过命令行启动定位为java兼容性问题

/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/bin/vitis_hls -showguiout

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
****** Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2022.2 (64-bit)
**** SW Build 3670227 on Oct 13 2022
**** IP Build 3669848 on Fri Oct 14 08:30:02 MDT 2022
** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.

source /home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/scripts/vitis_hls/hls.tcl -notrace
INFO: [HLS 200-10] Running '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/bin/unwrapped/lnx64.o/vitis_hls'
INFO: [HLS 200-10] For user 'dnsnat' on host 'dnsnat-T61p' (Linux_x86_64 version 6.6.63-1-MANJARO) on Wed Dec 04 10:43:19 CST 2024
INFO: [HLS 200-10] On os "Manjaro Linux"
INFO: [HLS 200-10] In directory '/home/dnsnat'
INFO: [HLS 200-10] Bringing up Vitis HLS GUI ...
HLS_GUI_DEBUG_INFO: Start loading HLS Swig Library: xv_hls_main
HLS_GUI_DEBUG_INFO: Finish loading HLS Swig Library: xv_hls_main
HLS_GUI_DEBUG_INFO: Running GuiDriver.tclInitFromJava, tclIsRunning=false
INFO: [HLS 200-10] Running '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/tps/lnx64/jre11.0.11_9/bin/java'
INFO: [HLS 200-10] For user 'dnsnat' on host 'dnsnat-T61p' (Linux_x86_64 version 6.6.63-1-MANJARO) on Wed Dec 04 10:43:22 CST 2024
INFO: [HLS 200-10] On os "Manjaro Linux"
INFO: [HLS 200-10] In directory '/home/dnsnat'
HLS_GUI_DEBUG_INFO: TCL was started from GUI
HLS_GUI_DEBUG_INFO: Start initializing Parts data
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.autoesl.autopilot.ui.platform.util.AutoPilotTemplateUtil$1
An error has occurred. See the log file
/home/dnsnat/.Xilinx/vitis_hls/2022.2/workspace1/.metadata/.log.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f399517b199, pid=7943, tid=7994
#
# JRE version: OpenJDK Runtime Environment 18.9 (11.0.11+9) (build 11.0.11+9)
# Java VM: OpenJDK 64-Bit Server VM 18.9 (11.0.11+9, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libc.so.6+0x16c199]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/dnsnat/core.7943)
#
# An error report file with more information is saved as:
# /home/dnsnat/hs_err_pid7943.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
INFO: [HLS 200-112] Total CPU user time: 7.64 seconds. Total CPU system time: 1.04 seconds. Total elapsed time: 6.62 seconds; peak allocated memory: 98.914 MB.
INFO: [Common 17-206] Exiting vitis_hls at Wed Dec 4 10:43:26 2024...

安装对应版本java

1
sudo pacman -S jre11-openjdk

备份vitis_hls java环境替换为系统安装的

1
2
3
cd /home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/tps/lnx64
mv jre11.0.11_9 jre11.0.11_9_bak
ln -s /usr/lib/jvm/java-11-openjdk jre11.0.11_9

出现libstdc++.so.6 不兼容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/bin/vitis_hls -showguiout                                      ✔ 

****** Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2022.2 (64-bit)
**** SW Build 3670227 on Oct 13 2022
**** IP Build 3669848 on Fri Oct 14 08:30:02 MDT 2022
** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.

source /home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/scripts/vitis_hls/hls.tcl -notrace
INFO: [HLS 200-10] Running '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/bin/unwrapped/lnx64.o/vitis_hls'
INFO: [HLS 200-10] For user 'dnsnat' on host 'dnsnat-T61p' (Linux_x86_64 version 6.6.63-1-MANJARO) on Wed Dec 04 11:19:35 CST 2024
INFO: [HLS 200-10] On os "Manjaro Linux"
INFO: [HLS 200-10] In directory '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/tps/lnx64'
INFO: [HLS 200-10] Bringing up Vitis HLS GUI ...
Error: dl failure on line 606
Error: failed /usr/lib/jvm/java-11-openjdk/lib/server/libjvm.so, because /home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/lib/lnx64.o/Default/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /usr/lib/jvm/java-11-openjdk/lib/server/libjvm.so)
INFO: [HLS 200-112] Total CPU user time: 0.41 seconds. Total CPU system time: 0.06 seconds. Total elapsed time: 0.34 seconds; peak allocated memory: 98.914 MB.
INFO: [Common 17-206] Exiting vitis_hls at Wed Dec 4 11:19:35 2024...

直接删除vitis_hls 自带libstdc++.so.6库

1
2
cd /home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/lib/lnx64.o/Default/
mv libstdc++.so.6 libstdc++.so.6_bak

再次启动vitis_hls成功

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/bin/vitis_hls -showguiout                            ✔ 

****** Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2022.2 (64-bit)
**** SW Build 3670227 on Oct 13 2022
**** IP Build 3669848 on Fri Oct 14 08:30:02 MDT 2022
** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.

source /home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/scripts/vitis_hls/hls.tcl -notrace
INFO: [HLS 200-10] Running '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/bin/unwrapped/lnx64.o/vitis_hls'
INFO: [HLS 200-10] For user 'dnsnat' on host 'dnsnat-T61p' (Linux_x86_64 version 6.6.63-1-MANJARO) on Wed Dec 04 11:21:05 CST 2024
INFO: [HLS 200-10] On os "Manjaro Linux"
INFO: [HLS 200-10] In directory '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/lib/lnx64.o/Default'
INFO: [HLS 200-10] Bringing up Vitis HLS GUI ...
HLS_GUI_DEBUG_INFO: Start loading HLS Swig Library: xv_hls_main
HLS_GUI_DEBUG_INFO: Finish loading HLS Swig Library: xv_hls_main
HLS_GUI_DEBUG_INFO: Running GuiDriver.tclInitFromJava, tclIsRunning=false
INFO: [HLS 200-10] Running '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/tps/lnx64/jre11.0.11_9/bin/java'
INFO: [HLS 200-10] For user 'dnsnat' on host 'dnsnat-T61p' (Linux_x86_64 version 6.6.63-1-MANJARO) on Wed Dec 04 11:21:07 CST 2024
INFO: [HLS 200-10] On os "Manjaro Linux"
INFO: [HLS 200-10] In directory '/home/dnsnat/workspace/Xilinx/Vitis_HLS/2022.2/lib/lnx64.o/Default'
HLS_GUI_DEBUG_INFO: TCL was started from GUI
HLS_GUI_DEBUG_INFO: Start initializing Parts data
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
HLS_GUI_DEBUG_INFO: Start initializing Boards data
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.autoesl.autopilot.ui.platform.util.AutoPilotTemplateUtil$1
INFO: [HLS 200-112] Total CPU user time: 23.01 seconds. Total CPU system time: 0.91 seconds. Total elapsed time: 9.58 seconds; peak allocated memory: 98.902 MB.
INFO: [Common 17-206] Exiting vitis_hls at Wed Dec 4 11:21:14 2024...

编译出现ld执行错误

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling ../../../src/breath_led_tb.cpp in debug mode
Compiling ../../../src/breath_led.cpp in debug mode
Generating csim.exe
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: /usr/lib/libm.so.6: unknown type [0x13] section `.relr.dyn'
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: skipping incompatible /usr/lib/libm.so.6 when searching for /usr/lib/libm.so.6
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: cannot find /usr/lib/libm.so.6
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: /usr/lib/libm.so.6: unknown type [0x13] section `.relr.dyn'
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: skipping incompatible /usr/lib/libm.so.6 when searching for /usr/lib/libm.so.6
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: /usr/lib/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: skipping incompatible /usr/lib/libmvec.so.1 when searching for /usr/lib/libmvec.so.1
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: cannot find /usr/lib/libmvec.so.1
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: /usr/lib/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
/home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld: skipping incompatible /usr/lib/libmvec.so.1 when searching for /usr/lib/libmvec.so.1
collect2: error: ld returned 1 exit status
make: *** [Makefile.rules:323: csim.exe] Error 1
ERR: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

把ld也删除了,改为使用系统ld

1
mv /home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld /home/dnsnat/workspace/Xilinx/Vivado/2022.2/tps/lnx64/binutils-2.37/bin/ld_bak

完成编译


解决archlinux下vitis_hls无法启动gui
http://witbit.cn/EMBEDDED/解决archlinux下vitis_hls无法启动gui.html
作者
朝彻
发布于
2025年2月13日
许可协议