Public bug reported:

LLVM is currently FTBFS due to swig 4.5 in proposed. I'm not exactly
sure what changed there, but some code generated during the LLVM build
is now generating try/catch blocks while we generally build with -fno-
exceptions, which is an error.

.../LLDBWrapPython.cpp:3665:7: error: cannot use 'throw' with exceptions 
disabled
 3665 | throw std::invalid_argument("operation not supported");
.../LLDBWrapPython.cpp:6447:3: error: cannot use 'try' with exceptions disabled

For this particular case, the simplest solution is probably to just
build the file / TU with exceptions. The risk of doing this is only if
exception unwinding tries to traverse a no-EH frame, but everything here
catches.

We could use LLVM_REQUIRES_EH for the whole target, but doing it for
only the TU is a smaller change with fewer risks.

** Affects: llvm-toolchain-19 (Ubuntu)
     Importance: Medium
     Assignee: Karl Smeltzer (karljs)
         Status: In Progress

** Changed in: llvm-toolchain-19 (Ubuntu)
       Status: New => In Progress

** Changed in: llvm-toolchain-19 (Ubuntu)
   Importance: Undecided => Medium

** Changed in: llvm-toolchain-19 (Ubuntu)
     Assignee: (unassigned) => Karl Smeltzer (karljs)

** Summary changed:

- llvm-toolchain-19: ftbfs due to swig injecting exceptions Edit
+ llvm-toolchain-19: ftbfs due to swig injecting exceptions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163517

Title:
  llvm-toolchain-19: ftbfs due to swig injecting exceptions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-19/+bug/2163517/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to