Repository: rust
Issue: Build breaks on armv7-unknown-freebsd: undefined symbol: _Unwind_SjLj_Register
Labels: A-linkage,T-compiler,O-freebsd,C-bug

Project: https://github.com/xrelkd/clipcat

```
error: linking with `/usr/local/llvm15/bin/clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/local/lib/rustlib/armv7-unknown-freebsd/bin:/wrkdirs/usr/ports/x11/clipcat/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin" VSLANG="1033" "/usr/local/llvm15/bin/clang" "/wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/symbols.o" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/deps/clipcatd-70cf93cdc1c549d8.clipcatd.d2b53676f4881284-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/deps" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/release/deps" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/build/librocksdb-sys-9ad688ed6c65687c/out" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/build/librocksdb-sys-9ad688ed6c65687c/out" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/build/librocksdb-sys-9ad688ed6c65687c/out" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/build/librocksdb-sys-9ad688ed6c65687c/out" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/build/librocksdb-sys-9ad688ed6c65687c/out" "-L" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/build/librocksdb-sys-9ad688ed6c65687c/out" "-L" "/usr/local/lib/rustlib/armv7-unknown-freebsd/lib" "-Wl,-Bstatic" "/wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib" "/usr/local/lib/rustlib/armv7-unknown-freebsd/lib/libcompiler_builtins-cd975d8c7430482e.rlib" "-Wl,-Bdynamic" "-lc++" "-lxcb" "-lxcb-render" "-lxcb-shape" "-lxcb-xfixes" "-lrt" "-lutil" "-lexecinfo" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lmemstat" "-lkvm" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/local/lib/rustlib/armv7-unknown-freebsd/lib" "-o" "/wrkdirs/usr/ports/x11/clipcat/work/target/armv7-unknown-freebsd/release/deps/clipcatd-70cf93cdc1c549d8" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-fstack-protector-strong" "-L/usr/local/lib"
  = note: ld: error: undefined symbol: _Unwind_SjLj_Register
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_open) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_put) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_delete) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced 1619 more times
          
          ld: error: undefined symbol: _Unwind_SjLj_Unregister
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_open) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_put) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_delete) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced 1705 more times
          
          ld: error: undefined symbol: _Unwind_SjLj_Resume
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_open) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_put) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_delete) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced 1439 more times
          
          ld: error: undefined symbol: __gxx_personality_sj0
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_open) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_put) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced by c.cc
          >>>               c.o:(rocksdb_delete) in archive /wrkdirs/usr/ports/x11/clipcat/work/rustcYgK3iQ/liblibrocksdb_sys-73ba87875bfba1e4.rlib
          >>> referenced 1619 more times
          clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `clipcat` (bin "clipcatd") due to previous error
```

See the [log](https://pkg-status.freebsd.org/ampere1/data/140releng-armv7-quarterly/7ccf22b5d173/logs/clipcat-0.5.0_7.log).