File: 0007-remove-h-option.patch

package info (click to toggle)
rocm-compilersupport 5.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,224 kB
  • sloc: cpp: 6,826; ansic: 3,464; asm: 1,144; lisp: 226; sh: 21; makefile: 12
file content (22 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: comgr-objdump.cpp causes crash if loaded alongside mesa
 When using both libamd_comgr.so and mesa with libvulkan_radeon, application
 crashes with:
 .
  mesa: CommandLine Error: Option 'h' registered more than once!
  LLVM ERROR: inconsistency in registered CommandLine options
  Abandon (core dumped)
Author: xytovl
Bug: https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/issues/52
Last-Update: 2023-01-08
--- ROCm-CompilerSupport-rocm-5.3.3.orig/lib/comgr/src/comgr-objdump.cpp
+++ ROCm-CompilerSupport-rocm-5.3.3/lib/comgr/src/comgr-objdump.cpp
@@ -175,9 +175,6 @@
 static cl::alias SectionHeadersShort("headers",
                                      cl::desc("Alias for --section-headers"),
                                      cl::aliasopt(SectionHeaders));
-static cl::alias SectionHeadersShorter("h",
-                                       cl::desc("Alias for --section-headers"),
-                                       cl::aliasopt(SectionHeaders));
 
 cl::list<std::string>
     FilterSections("section",