(lldb) target create "./awesome" Current executable set to '/wrkdirs/usr/ports/x11-wm/awesome/work/.build/awesome' (x86_64). (lldb) b main Breakpoint 1: where = awesome`main + 45 at awesome.c:572:13, address = 0x00000000002191ad (lldb) r Process 86160 launched: '/wrkdirs/usr/ports/x11-wm/awesome/work/.build/awesome' (x86_64) Process 86160 stopped * thread #1, name = 'awesome', stop reason = signal SIGSEGV: invalid address (fault address: 0x0) frame #0: 0x0000000000000000 error: memory read failed for 0x0 Using clang13 or gcc11 solves the issue.
Found the error message. ld: warning: cannot find entry symbol xport-dynamic; not setting start address
clang-13: error: unsupported option '--export-dynamic' from ld: --export-dynamic, -E Put symbols in the dynamic symbol table @${REINPLACE_CMD} -e "s/-export-dynamic/\"-Xlinker -E\"/" \ ${WRKSRC}/CMakeLists.txt The above line solve the issue. Sorry for not providing a patch. I already patched with a non-existent port bug #267105
Created attachment 237378 [details] Fix linker flags -export-dynamic clang-13: error: unsupported option '--export-dynamic' from ld(1) --export-dynamic, -E Put symbols in the dynamic symbol table. proposed fix: + @${REINPLACE_CMD} -e "s/-export-dynamic/\"-Xlinker -E\"/" \ + ${WRKSRC}/CMakeLists.txt
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=18d2762dc269d461fb51ee0235b8b8b1c212190b commit 18d2762dc269d461fb51ee0235b8b8b1c212190b Author: Alexandre C. Guimarães <rigoletto@FreeBSD.org> AuthorDate: 2022-10-22 19:12:24 +0000 Commit: Alexandre C. Guimarães <rigoletto@FreeBSD.org> CommitDate: 2022-10-22 19:12:24 +0000 x11-wm/awesome: Fix build with clang14 (CURRENT) PR: 267119 Reported by: Jonathan Reynolds <jreynolds1729@gmail.com> x11-wm/awesome/Makefile | 4 ++++ 1 file changed, 4 insertions(+)
Thank you! :-)
(In reply to Alexandre C. Guimarães from comment #5) My pleasure.