Error: attempt to compare iterators from different sequences
Scott Kostyshak
skostysh at lyx.org
Mon May 20 15:26:18 UTC 2024
On Mon, May 20, 2024 at 02:24:12PM GMT, Jean-Marc Lasgouttes wrote:
> Le 20/05/2024 à 03:45, Scott Kostyshak a écrit :
> > Great, thanks! I pulled in the fix, made a fresh build and I get another error along the same lines.
> >
> > Note my version shows I've pulled in Riki's fix:
> >
> > $ lyx --version
> > LyX 2.5.0~devel (2024-05-20)
> > Git commit hash 2d86b881
> >
> > I attach the backtrace.
>
> I cannot reproduce with --enable-stdlib-backtrace.
>
> What file do you use and what do you do with it? I would be interested to
> see your compilation flags too.
>
These are my flags to cmake:
cmake -Wno-dev -Wno-error=dev /path/to/lyx/repo/ -DCMAKE_INSTALL_PREFIX=/usr/local -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON -DLYX_PROGRAM_SUFFIX=OFF -DLYX_LOCALVERSIONING=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TBZ2:BOOL=OFF -DCPACK_SOURCE_TZ:BOOL=OFF -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF -DLYX_HUNSPELL=OFF -DLYX_EXTERNAL_HUNSPELL=OFF -DLYX_ENCHANT=ON -DLYX_EXTERNAL_Z=ON -DLYX_EXTERNAL_DTL=ON -DLYX_EXTERNAL_ICONV=ON -DLYX_NLS=ON -DLYX_ENABLE_URLTESTS=OFF -DLYX_ENABLE_EXPORT_TESTS=ON -DLYX_ENABLE_KEYTESTS=OFF -DLYX_PROFILE=ON -DLYX_USE_QT=QT6 -DLYX_CXX_FLAGS_EXTRA= -DLYX_STDLIB_DEBUG=ON -DLYX_DEBUG_GLIBC=ON -DLYX_DEBUG_GLIBC_PEDANTIC=ON
I don't recommend you look at it, but this is my build script that generates that cmake command (note that I only turn on some debug flags locally, not in the repo version):
https://gitlab.com/scottkosty/lyx-tester/-/blob/master/lyxbuild
I did a ps aux | grep clang to see what the actually clang command is when building and this is an example:
/usr/bin/clang++ -Wall -Wextra -Wno-deprecated-copy --std=c++20 -Wno-deprecated-register -fno-strict-aliasing -O0 -g3 -fPIC -std=c++20 -DBOOST_USER_CONFIG=<config.h> -DHUNSPELL_STATIC -DLYX_BUILD_QT_FRONTEND -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GENUINE_STR -DQT_GUI_LIB -DQT_SVGWIDGETS_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/home/scott/lyxbuilds/temp/CMakeBuild -I/home/scott/lyxbuilds/temp/repo/src -I/usr/include/enchant-2 -I/home/scott/lyxbuilds/temp/repo/3rdparty/hunspell/1.7.0/src/hunspell -I/home/scott/lyxbuilds/temp/repo/3rdparty/hunspell/1.7.0/src -I/home/scott/lyxbuilds/temp/repo/3rdparty/boost -I/home/scott/lyxbuilds/temp/repo/3rdparty/nod -I/home/scott/lyxbuilds/temp/repo/src/frontends -I/home/scott/lyxbuilds/temp/repo/src/frontends/qt -I/home/scott/lyxbuilds/temp/CMakeBuild/src/frontends/qt -I/usr/include/x86_64-linux-gnu/qt6/QtGui/6.4.2 -I/usr/include/x86_64-linux-gnu/qt6/QtGui/6.4.2/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtCore/6.4.2 -I/usr/include/x86_64-linux-gnu/qt6/QtCore/6.4.2/QtCore -I/usr/include/x86_64-linux-gnu/qt6/QtDBus/6.4.2 -I/usr/include/x86_64-linux-gnu/qt6/QtDBus/6.4.2/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore -isystem /usr/include/x86_64-linux-gnu/qt6 -isystem /usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt6/QtGui -isystem /usr/include/x86_64-linux-gnu/qt6/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt6/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt6/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt6/QtSvgWidgets -DENABLE_ASSERTIONS=1 -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_DEBUG -E -o /run/user/1000/ccache-tmp/cpp_stdout.tmp.ULw9zM.ii /home/scott/lyxbuilds/temp/repo/src/frontends/qt/GuiErrorList.cpp
Here is my clang version:
$ clang --version
Ubuntu clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$
To reproduce, I use that compiled binary to open es/UserGuide.lyx and then to compile to PDF by clicking on the eyes icon.
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240520/36165fe1/attachment.asc>
More information about the lyx-devel
mailing list