Re: git: b1db946f50b4 - main - Qt: Update Qt6 to 6.4.0

From: Tobias C. Berner <tcberner_at_freebsd.org>
Date: Sun, 02 Oct 2022 09:47:22 UTC
I see, there is a version check
#if (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(10,0,0))
in the code and the #else caes uses the Q_UNUSED you hit.

So  I guess it is something that happens on older FreeBSD versions
with older clangs -- I'll take a look at a fix (i.E including the
appropriate header for Q_UNUSED).


mfg Tobias

On Sun, 2 Oct 2022 at 11:40, Tobias C. Berner <tcberner@freebsd.org> wrote:
>
> Moin moin
>
> What version of FreeBSD are you experiencing the problem on?
>
>
> mfg Tobias
>
> On Sun, 2 Oct 2022 at 09:18, Tomoaki AOKI <junchoon@dec.sakura.ne.jp> wrote:
> >
> > devel/qt6-tools fails to build, even if previous version is deinstalled.
> >
> > Error part with "MAKE_JOBS_UNSAFE=yes" build is as below.
> >
> > [ 38% 266/688] /usr/bin/c++ -DLUPDATE_CLANG_VERSION_MAJOR=9
> > -DLUPDATE_CLANG_VERSION_MINOR=0 -DLUPDATE_CLANG_VERSION_PATCH=1
> > -DLUPDATE_CLANG_VERSION_STR=\"\"9.0.1\"\" -DQT_CORE_LIB
> > -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
> > -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS
> > -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB
> > -DQT_QML_LIB -DQT_TOOLS_LIB -DQT_USE_QSTRINGBUILDER
> > -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> > -I/usr/ports/devel/qt6-tools/work/.build/src/linguist/lupdate/lupdate_autogen/include
> > -I/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate
> > -I/usr/ports/devel/qt6-tools/work/.build/src/linguist/lupdate
> > -I/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate/../shared
> > -I/usr/ports/devel/qt6-tools/work/.build/include
> > -I/usr/ports/devel/qt6-tools/work/.build/include/QtTools
> > -I/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/global
> > -I/usr/ports/devel/qt6-tools/work/.build/src/global
> > -I/usr/ports/devel/qt6-tools/work/.build/include/QtTools/6.4.0
> > -I/usr/ports/devel/qt6-tools/work/.build/include/QtTools/6.4.0/QtTools
> > -isystem /usr/local/include/qt6/QtCore -isystem /usr/local/include/qt6
> > -isystem /usr/local/lib/qt6/mkspecs/freebsd-clang
> > -isystem /usr/local/include/qt6/QtCore/6.4.0
> > -isystem /usr/local/include/qt6/QtCore/6.4.0/QtCore
> > -isystem /usr/local/include/qt6/QtQml/6.4.0
> > -isystem /usr/local/include/qt6/QtQml/6.4.0/QtQml
> > -isystem /usr/local/include/qt6/QtQml
> > -isystem /usr/local/include/qt6/QtQmlIntegration
> > -isystem /usr/local/include/qt6/QtNetwork
> > -isystem /usr/local/llvm90/include -O2 -pipe -march=haswell
> > -fstack-protector-strong -fno-strict-aliasing -pipe -march=haswell
> > -fstack-protector-strong -fno-strict-aliasing -O2 -fPIE
> > -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra
> > -fno-exceptions -fPIC -pthread -std=c++17 -MD -MT
> > src/linguist/lupdate/CMakeFiles/lupdate.dir/clangtoolastreader.cpp.o
> > -MF
> > src/linguist/lupdate/CMakeFiles/lupdate.dir/clangtoolastreader.cpp.o.d
> > -o src/linguist/lupdate/CMakeFiles/lupdate.dir/clangtoolastreader.cpp.o
> > -c /usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate/clangtoolastreader.cpp
> > samu: job failed: /usr/bin/c++ -DLUPDATE_CLANG_VERSION_MAJOR=9
> > -DLUPDATE_CLANG_VERSION_MINOR=0 -DLUPDATE_CLANG_VERSION_PATCH=1
> > -DLUPDATE_CLANG_VERSION_STR=\"\"9.0.1\"\" -DQT_CORE_LIB
> > -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
> > -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS
> > -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB
> > -DQT_QML_LIB -DQT_TOOLS_LIB -DQT_USE_QSTRINGBUILDER
> > -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> > -I/usr/ports/devel/qt6-tools/work/.build/src/linguist/lupdate/lupdate_autogen/include
> > -I/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate
> > -I/usr/ports/devel/qt6-tools/work/.build/src/linguist/lupdate
> > -I/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate/../shared
> > -I/usr/ports/devel/qt6-tools/work/.build/include
> > -I/usr/ports/devel/qt6-tools/work/.build/include/QtTools
> > -I/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/global
> > -I/usr/ports/devel/qt6-tools/work/.build/src/global
> > -I/usr/ports/devel/qt6-tools/work/.build/include/QtTools/6.4.0
> > -I/usr/ports/devel/qt6-tools/work/.build/include/QtTools/6.4.0/QtTools
> > -isystem /usr/local/include/qt6/QtCore -isystem /usr/local/include/qt6
> > -isystem /usr/local/lib/qt6/mkspecs/freebsd-clang
> > -isystem /usr/local/include/qt6/QtCore/6.4.0
> > -isystem /usr/local/include/qt6/QtCore/6.4.0/QtCore
> > -isystem /usr/local/include/qt6/QtQml/6.4.0
> > -isystem /usr/local/include/qt6/QtQml/6.4.0/QtQml
> > -isystem /usr/local/include/qt6/QtQml
> > -isystem /usr/local/include/qt6/QtQmlIntegration
> > -isystem /usr/local/include/qt6/QtNetwork
> > -isystem /usr/local/llvm90/include -O2 -pipe -march=haswell
> > -fstack-protector-strong -fno-strict-aliasing -pipe -march=haswell
> > -fstack-protector-strong -fno-strict-aliasing -O2 -fPIE
> > -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra
> > -fno-exceptions -fPIC -pthread -std=c++17 -MD -MT
> > src/linguist/lupdate/CMakeFiles/lupdate.dir/clangtoolastreader.cpp.o
> > -MF
> > src/linguist/lupdate/CMakeFiles/lupdate.dir/clangtoolastreader.cpp.o.d
> > -o src/linguist/lupdate/CMakeFiles/lupdate.dir/clangtoolastreader.cpp.o
> > -c /usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate/clangtoolastreader.cpp
> > /usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate/clangtoolastreader.cpp:
> > 440:5: error: use of undeclared identifier 'Q_UNSED'
> >     Q_UNSED(file)
> >     ^
> > /usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.4.0/src/linguist/lupdate/clangtoolastreader.cpp:440:18: error: expected ';' after expression
> >     Q_UNSED(file)
> >                  ^
> >                  ;
> > 2 errors generated.
> > samu: subcommand failed
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/devel/qt6-tools
> > ** Command failed (exit code 1): env MAKE_JOBS_NUMBER_LIMIT=12 make
> > DISABLE_VULNERABILITIES=yes MAKE_JOBS_UNSAFE=yes ** Fix the problem and
> > try again.
> >
> >
> > > The branch main has been updated by tcberner:
> > >
> > > URL:
> > https://cgit.FreeBSD.org/ports/commit/?id=b1db946f50b434fd1792f75ee6dc491a87065e35
> > >
> > > commit b1db946f50b434fd1792f75ee6dc491a87065e35
> > > Author:     Tobias C. Berner <tcberner@FreeBSD.org>
> > > AuthorDate: 2022-09-30 16:35:26 +0000
> > > Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
> > > CommitDate: 2022-10-01 13:55:15 +0000
> > >
> > >     Qt: Update Qt6 to 6.4.0
> > >
> > >     Relase Notes: https://www.qt.io/blog/qt-6.4-released
> > > ---
> >
> >      (snip)
> >
> > --
> > Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>