Bug 272285 - net-im/libquotient: fails to build on current -- clang crash
Summary: net-im/libquotient: fails to build on current -- clang crash
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-29 17:32 UTC by Tobias C. Berner
Modified: 2023-07-17 17:14 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias C. Berner freebsd_committer freebsd_triage 2023-06-29 17:32:57 UTC
Moin moin 

net-im/libquotient fails to build on current with:


c++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/connection-ea8363.cpp
c++: note: diagnostic msg: /tmp/connection-ea8363.sh
c++: note: diagnostic msg: 

********************

A log of the build can be found here:
https://people.freebsd.org/~tcberner/patches/libquotient-0.7.1.log


mfg Tobias
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-06-29 18:05:18 UTC
Can you fish out the connection-ea8363.cpp and connection-ea8363.sh files? :)
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2023-06-29 18:24:35 UTC
(In reply to Dimitry Andric from comment #1)

Trying to do so made it crash in an other file, here are the files for that

https://people.freebsd.org/~tcberner/patches/room-2b4a12.cpp
https://people.freebsd.org/~tcberner/patches/room-2b4a12.sh

mfg Tobias
Comment 3 Dimitry Andric freebsd_committer freebsd_triage 2023-06-29 18:46:21 UTC
This appears to be https://github.com/llvm/llvm-project/issues/62110 (of which there are several duplicates). No solution yet...
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-06-30 15:18:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8687670ef234f40edfa6fe8709bbd8c133dbc866

commit 8687670ef234f40edfa6fe8709bbd8c133dbc866
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2023-06-30 13:14:28 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2023-06-30 15:15:45 +0000

    net-im/libquotient: work around compiler bug present on current

    PR:             272285

 net-im/libquotient/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-06-30 17:05:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=420005fac48c3dddc7807674a5276a75d4bead77

commit 420005fac48c3dddc7807674a5276a75d4bead77
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2023-06-30 17:04:02 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2023-06-30 17:04:26 +0000

    net-im/neochat: work around compiler bug present on current

    PR:             272285

 net-im/neochat/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 6 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-07-01 04:05:22 UTC
(In reply to commit-hook from comment #4)

After this commit `make describe` emits warning messages as following.

yasu@rolling-vm-freebsd2[1087]% pwd
/usr/ports/net-im/libquotient
yasu@rolling-vm-freebsd2[1088]% make describe
sh: /bin/clang: not found
make: "/usr/ports/Mk/Uses/compiler.mk" line 80: warning: "/bin/clang --version" returned non-zero status
make: "/usr/ports/Mk/Uses/compiler.mk" line 128: warning: "/bin/clang++ -### /dev/null 2>&1" returned non-zero status
libquotient-0.7.1|/usr/ports/net-im/libquotient|/usr/local|Matrix IM support library using Qt technologies|/usr/ports/net-im/libquotient/pkg-descr|adridg@FreeBSD.org|net-im||||/usr/ports/devel/cmake-core /usr/ports/devel/llvm15 /usr/ports/devel/ninja /usr/ports/devel/qt5-buildtools /usr/ports/devel/qt5-concurrent /usr/ports/devel/qt5-core /usr/ports/devel/qt5-qmake /usr/ports/devel/qt5-testlib /usr/ports/multimedia/qt5-multimedia /usr/ports/net/qt5-network /usr/ports/security/qtkeychain /usr/ports/x11-toolkits/qt5-gui|/usr/ports/devel/qt5-concurrent /usr/ports/devel/qt5-core /usr/ports/multimedia/qt5-multimedia /usr/ports/net/qt5-network /usr/ports/security/qtkeychain /usr/ports/x11-toolkits/qt5-gui|https://github.com/quotient-im/libQuotient
yasu@rolling-vm-freebsd2[1089]%
Comment 7 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-07-01 04:13:25 UTC
This commit also causes similar warning messages as following.

yasu@rolling-vm-freebsd2[1100]% pwd
/usr/ports/net-im/neochat
yasu@rolling-vm-freebsd2[1100]% make describe
sh: /bin/clang: not found
make: "/usr/ports/Mk/Uses/compiler.mk" line 80: warning: "/bin/clang --version" returned non-zero status
make: "/usr/ports/Mk/Uses/compiler.mk" line 128: warning: "/bin/clang++ -### /dev/null 2>&1" returned non-zero status
neochat-23.04.2|/usr/ports/net-im/neochat|/usr/local|Glossy Matrix IM client based on KDE technologies|/usr/ports/net-im/neochat/pkg-descr|kde@FreeBSD.org|net-im deskutils kde kde-applications||||/usr/ports/devel/cmake-core /usr/ports/devel/desktop-file-utils /usr/ports/devel/kf5-extra-cmake-modules /usr/ports/devel/kf5-kauth /usr/ports/devel/kf5-kconfig /usr/ports/devel/kf5-kcoreaddons /usr/ports/devel/kf5-kdbusaddons /usr/ports/devel/kf5-ki18n /usr/ports/devel/kf5-kio /usr/ports/devel/kf5-kitemmodels /usr/ports/devel/kf5-knotifications /usr/ports/devel/kf5-kservice /usr/ports/devel/kf5-solid /usr/ports/devel/llvm15 /usr/ports/devel/ninja /usr/ports/devel/pkgconf /usr/ports/devel/qcoro /usr/ports/devel/qt5-buildtools /usr/ports/devel/qt5-concurrent /usr/ports/devel/qt5-core /usr/ports/devel/qt5-dbus /usr/ports/devel/qt5-linguist /usr/ports/devel/qt5-qmake /usr/ports/graphics/kquickimageeditor /usr/ports/graphics/libglvnd /usr/ports/graphics/qt5-graphicaleffects /usr/ports/graphics/qt5-imageformats /usr/ports/graphics/qt5-svg /usr/ports/multimedia/qt5-multimedia /usr/ports/net-im/libquotient /usr/ports/net/qt5-network /usr/ports/security/qtkeychain /usr/ports/textproc/cmark /usr/ports/textproc/kf5-kcodecs /usr/ports/textproc/kf5-sonnet /usr/ports/textproc/kf5-syntax-highlighting /usr/ports/textproc/qt5-xml /usr/ports/x11-themes/kf5-qqc2-desktop-style /usr/ports/x11-toolkits/kf5-kcompletion /usr/ports/x11-toolkits/kf5-kconfigwidgets /usr/ports/x11-toolkits/kf5-kirigami2 /usr/ports/x11-toolkits/kf5-kjobwidgets /usr/ports/x11-toolkits/kf5-kwidgetsaddons /usr/ports/x11-toolkits/kirigami-addons /usr/ports/x11-toolkits/qt5-declarative /usr/ports/x11-toolkits/qt5-gui /usr/ports/x11-toolkits/qt5-quickcontrols /usr/ports/x11-toolkits/qt5-quickcontrols2 /usr/ports/x11-toolkits/qt5-widgets /usr/ports/x11/kf5-kwindowsystem /usr/ports/x11/libX11 /usr/ports/x11/xorgproto|/usr/ports/devel/desktop-file-utils /usr/ports/devel/kf5-kauth /usr/ports/devel/kf5-kconfig /usr/ports/devel/kf5-kcoreaddons /usr/ports/devel/kf5-kdbusaddons /usr/ports/devel/kf5-ki18n /usr/ports/devel/kf5-kio /usr/ports/devel/kf5-kitemmodels /usr/ports/devel/kf5-knotifications /usr/ports/devel/kf5-kservice /usr/ports/devel/kf5-solid /usr/ports/devel/qt5-concurrent /usr/ports/devel/qt5-core /usr/ports/devel/qt5-dbus /usr/ports/graphics/kquickimageeditor /usr/ports/graphics/libglvnd /usr/ports/graphics/qt5-graphicaleffects /usr/ports/graphics/qt5-imageformats /usr/ports/graphics/qt5-svg /usr/ports/multimedia/qt5-multimedia /usr/ports/net/qt5-network /usr/ports/security/qtkeychain /usr/ports/textproc/cmark /usr/ports/textproc/kf5-kcodecs /usr/ports/textproc/kf5-sonnet /usr/ports/textproc/kf5-syntax-highlighting /usr/ports/textproc/qt5-xml /usr/ports/x11-themes/kf5-qqc2-desktop-style /usr/ports/x11-toolkits/kf5-kcompletion /usr/ports/x11-toolkits/kf5-kconfigwidgets /usr/ports/x11-toolkits/kf5-kirigami2 /usr/ports/x11-toolkits/kf5-kjobwidgets /usr/ports/x11-toolkits/kf5-kwidgetsaddons /usr/ports/x11-toolkits/kirigami-addons /usr/ports/x11-toolkits/qt5-declarative /usr/ports/x11-toolkits/qt5-gui /usr/ports/x11-toolkits/qt5-quickcontrols /usr/ports/x11-toolkits/qt5-quickcontrols2 /usr/ports/x11-toolkits/qt5-widgets /usr/ports/x11/kf5-kwindowsystem /usr/ports/x11/libX11|https://invent.kde.org/network/neochat
yasu@rolling-vm-freebsd2[1101]%
Comment 8 commit-hook freebsd_committer freebsd_triage 2023-07-11 06:29:45 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d015f73c8b6d61ff32adf0d9d8d5d5b83231c7b0

commit d015f73c8b6d61ff32adf0d9d8d5d5b83231c7b0
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2023-07-01 19:36:05 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2023-07-11 06:25:57 +0000

    net-im/libquotient: fix USES

    (cherry picked from commit 04384b7a5a0ba844eded369f6b03215b100da56f)

    Cherry-picked to to fix `make index`.

    --- describe.net-im ---
    sh: /bin/clang: not found
    make[4]: "/usr/ports/Mk/Uses/compiler.mk" line 80: warning: "/bin/clang --version" returned non-zero status
    make[4]: "/usr/ports/Mk/Uses/compiler.mk" line 128: warning: "/bin/clang++ -### /dev/null 2>&1" returned non-zero status
    sh: /bin/clang: not found
    make[4]: "/usr/ports/Mk/Uses/compiler.mk" line 80: warning: "/bin/clang --version" returned non-zero status
    make[4]: "/usr/ports/Mk/Uses/compiler.mk" line 128: warning: "/bin/clang++ -### /dev/null 2>&1" returned non-zero status
    --- describe.net-mgmt ---

    PR:             272285
    Reported by:    yasu@

 net-im/libquotient/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 9 Koichiro Iwao freebsd_committer freebsd_triage 2023-07-11 06:30:25 UTC
The issue yasu reported is fixed at: https://cgit.freebsd.org/ports/commit/?id=04384b7a5a0ba844eded369f6b03215b100da56f

Cherry-picked to quarterly.
Comment 10 commit-hook freebsd_committer freebsd_triage 2023-07-11 06:46:50 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b9afe0cae36693331719db58be571e5d32938781

commit b9afe0cae36693331719db58be571e5d32938781
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2023-07-01 19:35:22 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2023-07-11 06:44:39 +0000

    net-im/neochat: fix USES

    (cherry picked from commit 724762a465c73fad284818b00ef244737beffc1d)

    PR:             272285
    Reported by:    yasu@

 net-im/neochat/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 11 Raphael Kubo da Costa freebsd_committer freebsd_triage 2023-07-17 17:14:05 UTC
For the record, the fixes for the `make describe' issues were a stop-gap measure. https://reviews.freebsd.org/D41045 and https://reviews.freebsd.org/D41046 fixed them correctly, and were included in https://reviews.freebsd.org/R11:921530884fe6339528837c7e60a312fc5d9e1804 and https://reviews.freebsd.org/R11:ca8a8ebe109035902fcfc3c842a77b581fc4e4f5