[RTEMS Project] #4908: Unable to build with LLVM 16
RTEMS trac
trac at rtems.org
Fri May 19 04:21:00 UTC 2023
#4908: Unable to build with LLVM 16
--------------------------------+---------------------
Reporter: Jeffrey H. Johnson | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: tool | Version:
Severity: normal | Resolution:
Keywords: LLVM, | Blocked By:
Blocking: |
--------------------------------+---------------------
Comment (by Jeffrey H. Johnson):
diff --git a/rtems/config/tools/rtems-tools-common-1.cfg
b/rtems/config/tools/rtems-tools-common-1.cfg
index c15f514..2233eeb 100644
--- a/rtems/config/tools/rtems-tools-common-1.cfg
+++ b/rtems/config/tools/rtems-tools-common-1.cfg
@@ -50,6 +50,7 @@ License: BSD-2-Clause + GPL-2.0
cd ${source_dir_rtems_tools}
./waf distclean configure ${RT_HOST} --prefix=%{_prefix}
+ sed -i 's/define HAVE_LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H 1/undef
HAVE_LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H/' build/trace/config.h || true
./waf
cd ${build_top}
diff --git a/rtems/config/tools/rtems-tools-git-1.cfg b/rtems/config/tools
/rtems-tools-git-1.cfg
index ec44132..7ad6873 100644
--- a/rtems/config/tools/rtems-tools-git-1.cfg
+++ b/rtems/config/tools/rtems-tools-git-1.cfg
@@ -39,6 +39,7 @@ URL: http://www.rtems.org/
cd ${source_dir_rtems_tools}
./waf configure ${RT_HOST} --prefix=%{_prefix}
+ sed -i 's/define HAVE_LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H 1/undef
HAVE_LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H/' build/trace/config.h || true
./waf
cd ${build_top}
--------
This dirty hack works to let me build RTEMS. I'm doing it only because I
don't know a more proper way to fix the underlying problem, having never
really looked at LLVM under the hood.
If you need any more information, let me know.
--
Ticket URL: <http://devel.rtems.org/ticket/4908#comment:5>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list