| Summary: | Building tdelibs 14.0.3 with GCC 6 fails on Arch Linux | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Brenton Horne <brentonhorne77> |
| Component: | tdelibs | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | CC: | brentonhorne77, bugwatch, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.1.x [Trinity] | ||
| Hardware: | amd64 | ||
| OS: | Linux | ||
| URL: | https://github.com/michael-manley/Trinity_ArchLinux_PKGBUILD/issues/13 | ||
| Compiler Version: | GCC 6.2.1 | TDE Version String: | R14.0.3 |
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2575 | ||
This is already fixed for the upcoming R14.0.4 and also in master branch: http://mirror.git.trinitydesktop.org/cgit/tdelibs/commit/?h=r14.0.x&id=fe024a80 Because fixes related to GCC6 are in multiple modules, I recommend to use GIT branch r14.0.x (== upcoming R14.0.4) instead of R14.0.3. By the way, above mentioned problem in tdelibs not relates to GCC6 but CUPS 2.2 :) |
With GCC 6.2.1 tdelibs 14.0.3 fails to build on Arch Linux, giving the error: NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -o CMakeFiles/tdeprint_cups-module.dir/kpimagepage.cpp.o -c /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups/kpimagepage.cpp [ 58%] Building CXX object tdeprint/cups/CMakeFiles/tdeprint_cups-module.dir/kptextpage.cpp.o cd /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdeprint/cups && /usr/lib/hardening-wrapper/bin/c++ -DHAVE_CONFIG_H -D_TDEPRINT_COMPILE -Dtdeprint_cups_module_EXPORTS -I/opt/trinity/tqt3/include -I/usr/include/tqt -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdeprint/cups -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdecore -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/dcop -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdecore -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdecore/network -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeui -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio/tdeio -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio/tdefile -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/management -Wno-narrowing -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -I/opt/trinity/tqt3/include -I/usr/include/tqt -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -o CMakeFiles/tdeprint_cups-module.dir/kptextpage.cpp.o -c /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups/kptextpage.cpp [ 58%] Building CXX object tdeprint/cups/CMakeFiles/tdeprint_cups-module.dir/kphpgl2page.cpp.o cd /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdeprint/cups && /usr/lib/hardening-wrapper/bin/c++ -DHAVE_CONFIG_H -D_TDEPRINT_COMPILE -Dtdeprint_cups_module_EXPORTS -I/opt/trinity/tqt3/include -I/usr/include/tqt -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdeprint/cups -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdecore -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/dcop -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdecore -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdecore/network -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeui -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio/tdeio -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio/tdefile -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/management -Wno-narrowing -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -I/opt/trinity/tqt3/include -I/usr/include/tqt -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -o CMakeFiles/tdeprint_cups-module.dir/kphpgl2page.cpp.o -c /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups/kphpgl2page.cpp [ 58%] Building CXX object tdeprint/cups/CMakeFiles/tdeprint_cups-module.dir/cupsaddsmb2.cpp.o cd /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdeprint/cups && /usr/lib/hardening-wrapper/bin/c++ -DHAVE_CONFIG_H -D_TDEPRINT_COMPILE -Dtdeprint_cups_module_EXPORTS -I/opt/trinity/tqt3/include -I/usr/include/tqt -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdeprint/cups -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build/tdecore -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/dcop -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdecore -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdecore/network -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeui -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio/tdeio -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeio/tdefile -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint -I/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/management -Wno-narrowing -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -I/opt/trinity/tqt3/include -I/usr/include/tqt -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -o CMakeFiles/tdeprint_cups-module.dir/cupsaddsmb2.cpp.o -c /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups/cupsaddsmb2.cpp /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups/cupsaddsmb2.cpp: In member function ‘bool CupsAddSmb::doExport()’: /home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/tdelibs/tdeprint/cups/cupsaddsmb2.cpp:413:46: error: ‘cupsGetPPD’ was not declared in this scope if ((ppdfile = cupsGetPPD(m_dest.local8Bit())) == NULL) ^ make[2]: *** [tdeprint/cups/CMakeFiles/tdeprint_cups-module.dir/build.make:767: tdeprint/cups/CMakeFiles/tdeprint_cups-module.dir/cupsaddsmb2.cpp.o] Error 1 make[2]: Leaving directory '/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build' make[1]: *** [CMakeFiles/Makefile2:6246: tdeprint/cups/CMakeFiles/tdeprint_cups-module.dir/all] Error 2 make[1]: Leaving directory '/home/fusion809/GitHub/others/trinity/R14.0.3/tde-tdelibs/src/build' make: *** [Makefile:131: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... for further details please refer to https://github.com/michael-manley/Trinity_ArchLinux_PKGBUILD/issues/13. One day other major distributions will move to GCC 6, including Ubuntu, so this build error will need to be fixed sooner or later.