comparing the build options of QTMPipeLink.cpp with gnu tools and with Cmake the compiler command line with gnu tools (bug occuring) is : (newlines added and options reordered, for clarity) g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/History -IData/Observers -IData/Document -IData/String -IData/Tmfs -IData/Tree -IData/Parser -IScheme -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IGraphics/Handwriting -IGraphics/Types -IGraphics/Pictures -IGraphics/Spacial -IGraphics/Colors -IPlugins -IPlugins/Unix -ITexmacs -ITexmacs/Data -IEdit -ITypeset -I/usr/include -I/usr/include/guile -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -include config.h -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -pipe -O2 -Wall -Wextra -fPIC -std=c++11 -D_REENTRANT -DQTTEXMACS -Wall -Wno-return-type -O3 -fexpensive-optimizations -fno-rtti -fno-rtti -c ./Plugins/Qt/QTMPipeLink.cpp -o Objects/QTMPipeLink.o the ./src/System/config.h file: /* src/System/config.h. Generated from config.in by configure. */ /* src/System/config.in. Generated from configure.in by autoheader. */ /* The normal alignment of `void *', in bytes. */ #define ALIGNOF_VOID_P 8 /* Enable experimental Cocoa port */ /* #undef AQUATEXMACS */ /* embedded aspell location */ /* #undef ASPELL */ /* If there is a static plugin Cocoa */ /* #undef CocoaPlugin */ /* check assertions in code */ #define DEBUG_ASSERT 1 /* debugging built */ /* #undef DEBUG_ON */ /* Defined if ...-style argument passing works */ /* #undef DOTS_OK */ /* Enable experimental style rewriting code */ /* #undef EXPERIMENTAL */ /* gs path relative to TEXMACS_PATH */ /* #undef GS_EXE */ /* gs fonts relative to TEXMACS_PATH */ /* #undef GS_FONTS */ /* gs lib path relative to TEXMACS_PATH */ /* #undef GS_LIB */ /* Guile version */ /* #undef GUILE_A */ /* Guile version */ /* #undef GUILE_B */ /* Guile version */ #define GUILE_C 1 /* Guile version */ /* #undef GUILE_D */ /* Guile 1.6 header */ /* #undef GUILE_HEADER_16 */ /* Guile 1.8 header */ /* #undef GUILE_HEADER_18 */ /* Guile version */ #define GUILE_VERSION 1.8 /* Define to 1 if the system has the type `FILE'. */ #define HAVE_FILE 1 /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 /* Define to 1 if the system has the type `intptr_t'. */ #define HAVE_INTPTR_T 1 /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_PTY_H 1 /* Define if the Qt framework is available. */ #define HAVE_QT 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDIO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if the system has the type `time_t'. */ #define HAVE_TIME_T 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_UTIL_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_X11_XLIB_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_X11_XUTIL_H */ /* Link axel library with TeXmacs */ /* #undef LINKED_AXEL */ /* Link cairo library with TeXmacs */ /* #undef LINKED_CAIRO */ /* Freetype library available */ #define LINKED_FREETYPE 1 /* Link imlib2 library with TeXmacs */ /* #undef LINKED_IMLIB2 */ /* Link sqlite3 library with TeXmacs */ /* #undef LINKED_SQLITE3 */ /* Enabling Mac OSX extensions */ /* #undef MACOSX_EXTENSIONS */ /* Max fast alloc // WORD_LENGTH more than power of 2 */ #define MAX_FAST 264 /* Disable fast memory allocator */ /* #undef NO_FAST_ALLOC */ /* Use g++ strictly prior to g++ 3.0 */ /* #undef OLD_GNU_COMPILER */ /* OS type */ /* #undef OS_CYGWIN */ /* OS type */ /* #undef OS_DARWIN */ /* OS type */ /* #undef OS_FREEBSD */ /* OS type */ #define OS_GNU_LINUX 1 /* OS type */ /* #undef OS_HAIKU */ /* OS type */ /* #undef OS_IRIX */ /* OS type */ /* #undef OS_MACOS */ /* OS type */ /* #undef OS_MINGW */ /* OS type */ /* #undef OS_POWERPC_GNU_LINUX */ /* OS type */ /* #undef OS_SOLARIS */ /* OS type */ /* #undef OS_SUN */ /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" /* Define to the full name of this package. */ #define PACKAGE_NAME "" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "" /* Define to the home page for this package. */ #define PACKAGE_URL "" /* Define to the version of this package. */ #define PACKAGE_VERSION "" /* Disable DCT */ #define PDFHUMMUS_NO_DCT 1 /* Disable Tiff Format */ #define PDFHUMMUS_NO_TIFF 1 /* Enabling native PDF renderer */ #define PDF_RENDERER 1 /* Enabling Qt pipes */ #define QTPIPES 1 /* Enable experimental Qt port */ #define QTTEXMACS 1 /* Enable checks style rewriting code */ /* #undef SANITY_CHECKS */ /* The size of `void *', as computed by sizeof. */ #define SIZEOF_VOID_P 8 /* If not set during link */ #define STACK_SIZE 0x1000000 /* Define to 1 if all of the C90 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #define STDC_HEADERS 1 /* Svn build revision */ #define TEXMACS_REVISION "Custom Unversioned directory" /* Dynamic linking function name */ #define TM_DYNAMIC_LINKING dlopen /* Use axel library */ /* #undef USE_AXEL */ /* Use cairo library */ /* #undef USE_CAIRO */ /* Use freetype library */ #define USE_FREETYPE 3 /* Use ghostscript */ #define USE_GS 1 /* Use iconv library */ #define USE_ICONV 1 /* Use imlib2 library */ /* #undef USE_IMLIB2 */ /* Use Sparkle framework */ /* #undef USE_SPARKLE */ /* Use sqlite3 library */ /* #undef USE_SQLITE3 */ /* Use C++ stack backtraces */ #define USE_STACK_TRACE 1 /* Pointer size */ #define WORD_LENGTH 8 /* Pointer increment */ #define WORD_LENGTH_INC 7 /* Word Mask */ #define WORD_MASK 0xfffffffffffffff8 /* Use standard X11 port */ /* #undef X11TEXMACS */ /* Define to 1 if the X Window System is missing or not being used. */ /* #undef X_DISPLAY_MISSING */ /* Guile string size type */ #define guile_str_size_t size_t /* If there is a static plugin qgif */ /* #undef qt_static_plugin_qgif */ /* If there is a static plugin qico */ /* #undef qt_static_plugin_qico */ /* If there is a static plugin qjpeg */ /* #undef qt_static_plugin_qjpeg */ /* If there is a static plugin qsvg */ /* #undef qt_static_plugin_qsvg */ the compiler command line with CMake (no bug) is: (newlines added and options reordered, for clarity): /usr/bin/c++ -I/media/Nserver/TeXmacs-git-svn/build/src -I/media/Nserver/TeXmacs-git-svn/src -I/media/Nserver/TeXmacs-git-svn/build/src/texmacs_body_autogen/include -I/media/Nserver/TeXmacs-git-svn/src/Data/Convert -I/media/Nserver/TeXmacs-git-svn/src/Data/Document -I/media/Nserver/TeXmacs-git-svn/src/Data/Drd -I/media/Nserver/TeXmacs-git-svn/src/Data/History -I/media/Nserver/TeXmacs-git-svn/src/Data/Observers -I/media/Nserver/TeXmacs-git-svn/src/Data/Parser -I/media/Nserver/TeXmacs-git-svn/src/Data/String -I/media/Nserver/TeXmacs-git-svn/src/Data/Tree -I/media/Nserver/TeXmacs-git-svn/src/Edit -I/media/Nserver/TeXmacs-git-svn/src/Edit/Editor -I/media/Nserver/TeXmacs-git-svn/src/Edit/Interface -I/media/Nserver/TeXmacs-git-svn/src/Edit/Modify -I/media/Nserver/TeXmacs-git-svn/src/Edit/Process -I/media/Nserver/TeXmacs-git-svn/src/Edit/Replace -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Bitmap_fonts -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Colors -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Fonts -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Gui -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Handwriting -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Mathematics -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Pictures -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Renderer -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Spacial -I/media/Nserver/TeXmacs-git-svn/src/Graphics/Types -I/media/Nserver/TeXmacs-git-svn/src/Kernel/Abstractions -I/media/Nserver/TeXmacs-git-svn/src/Kernel/Containers -I/media/Nserver/TeXmacs-git-svn/src/Kernel/Types -I/media/Nserver/TeXmacs-git-svn/src/Plugins -I/media/Nserver/TeXmacs-git-svn/src/Plugins/Pdf/LibAesgm -I/media/Nserver/TeXmacs-git-svn/src/Scheme -I/media/Nserver/TeXmacs-git-svn/src/Scheme/Guile -I/media/Nserver/TeXmacs-git-svn/src/Scheme/Scheme -I/media/Nserver/TeXmacs-git-svn/src/Style/Environment -I/media/Nserver/TeXmacs-git-svn/src/Style/Evaluate -I/media/Nserver/TeXmacs-git-svn/src/Style/Memorizer -I/media/Nserver/TeXmacs-git-svn/src/System -I/media/Nserver/TeXmacs-git-svn/src/System/Boot -I/media/Nserver/TeXmacs-git-svn/src/System/Classes -I/media/Nserver/TeXmacs-git-svn/src/System/Files -I/media/Nserver/TeXmacs-git-svn/src/System/Language -I/media/Nserver/TeXmacs-git-svn/src/System/Link -I/media/Nserver/TeXmacs-git-svn/src/System/Misc -I/media/Nserver/TeXmacs-git-svn/src/Texmacs -I/media/Nserver/TeXmacs-git-svn/src/Texmacs/Data -I/media/Nserver/TeXmacs-git-svn/src/Typeset -I/media/Nserver/TeXmacs-git-svn/src/Typeset/Bridge -I/media/Nserver/TeXmacs-git-svn/src/Typeset/Concat -I/media/Nserver/TeXmacs-git-svn/src/Typeset/Page -I/media/Nserver/TeXmacs-git-svn/TeXmacs/include -I/media/Nserver/TeXmacs-git-svn/build/src/System -I/usr/include/freetype2 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -include /media/Nserver/TeXmacs-git-svn/build/src/System/config.h -g -fPIC -std=gnu++11 -DQTTEXMACS -MD -MT src/CMakeFiles/texmacs_body.dir/Plugins/Qt/QTMPipeLink.cpp.o -MF CMakeFiles/texmacs_body.dir/Plugins/Qt/QTMPipeLink.cpp.o.d -o CMakeFiles/texmacs_body.dir/Plugins/Qt/QTMPipeLink.cpp.o -c /media/Nserver/TeXmacs-git-svn/src/Plugins/Qt/QTMPipeLink.cpp and the ./build/src/System/config.h file /* src/System/config.h.cmake */ /* check assertions in code */ #define DEBUG_ASSERT 1 /* Defined if ...-style argument passing works */ /* #undef DOTS_OK */ /* Enable experimental style rewriting code */ /* #undef EXPERIMENTAL */ /* gs path relative to TEXMACS_PATH */ #define GS_EXE "/usr/bin/gs" /* gs fonts */ #define GS_FONTS "../share/ghostscript/fonts:/usr/share/fonts:" /* gs lib */ #define GS_LIB "../share/ghostscript/9.06/lib:" /* Guile version */ /* #undef GUILE_A */ /* Guile version */ /* #undef GUILE_B */ /* Guile version */ #define GUILE_C 1 /* Guile version */ /* #undef GUILE_D */ #define GUILE_NUM 0 /* Define to 1 if the system has the type `FILE'. */ /* #undef HAVE_FILE */ /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 /* Define to 1 if the system has the type `intptr_t'. */ #define HAVE_INTPTR_T 1 /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the header file. */ #define HAVE_PTY_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if the system has the type `time_t'. */ #define HAVE_TIME_T 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_UTIL_H */ #define HAVE_X11_XLIB_H 1 #define HAVE_X11_XUTIL_H 1 /* Link axel library with TeXmacs */ /* #undef LINKED_AXEL */ /* Link cairo library with TeXmacs */ /* #undef LINKED_CAIRO */ /* Link freetype library with TeXmacs */ #define LINKED_FREETYPE 1 /* Link imlib2 library with TeXmacs */ /* #undef LINKED_IMLIB2 */ #define LINKED_SQLITE3 1 /* #undef MACOSX_EXTENSIONS */ /* #undef OS_MACOS */ /* #undef MACOS_QT_MENU */ /* #undef OS_MINGW */ #define PDFHUMMUS_NO_TIFF 1 /* Disable fast memory allocator */ /* #undef NO_FAST_ALLOC */ /* Use g++ strictly prior to g++ 3.0 */ /* #undef OLD_GNU_COMPILER */ /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" /* Define to the full name of this package. */ #define PACKAGE_NAME "" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "" #define PACKAGE_URL "" /* Define to the version of this package. */ #define PACKAGE_VERSION "" #define PDF_RENDERER 1 /* #undef QTTEXMACS */ #define QTPIPES 1 #define SIZEOF_VOID_P 8 /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 #define TEXMACS_REVISION "2.1.2" /* #undef TM_DYNAMIC_LINKING */ /* Use axel library */ /* #undef USE_AXEL */ /* Use cairo library */ /* #undef USE_CAIRO */ /* Use freetype library */ #define USE_FREETYPE 1 #define USE_GS 1 /* Use iconv library */ /* #undef USE_ICONV */ /* Use imlib2 library */ /* #undef USE_IMLIB2 */ /* #undef USE_SPARKLE */ #define USE_SQLITE3 1 #define USE_STACK_TRACE 1 /* Define to 1 if the X Window System is missing or not being used. */ /* #undef X_DISPLAY_MISSING */ /* Guile string size type */ #define guile_str_size_t size_t