Compilation error

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 253
Joined: Thu Jun 11 2020 12:18 pm

Compilation error

Post by seasoned_geek »

I just pulled I think, 9, commits (whatever happened over past couple of days) into my fork of CopperSpice to update RPM branch.

Code: Select all

[137/3819] Building CXX object src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o

FAILED: src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o 

/usr/bin/c++ @src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o.rsp -MD -MT src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o -MF src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o.d -o src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o -c /home/developer/github_projects/copperspice/src/core/kernel/qvariant.cpp

In file included from /home/developer/rpmbuild/BUILD/include/QtCore/regex/regex.h:43,

                 from /home/developer/rpmbuild/BUILD/include/QtCore/qregularexpression.h:27,

                 from /home/developer/rpmbuild/BUILD/include/QtCore/qstringparser.h:34,

                 from /home/developer/rpmbuild/BUILD/include/QtCore/qstring.h:2,

                 from /home/developer/github_projects/copperspice/src/core/io/qiodevice.h:28,

                 from /home/developer/github_projects/copperspice/src/core/io/qdatastream.h:29,

                 from /home/developer/github_projects/copperspice/src/core/tools/qpair.h:27,

                 from /home/developer/rpmbuild/BUILD/include/QtCore/qhashfunc.h:29,

                 from /home/developer/rpmbuild/BUILD/include/QtCore/qmultihash.h:31,

                 from /home/developer/github_projects/copperspice/src/core/kernel/qabstractitemmodel.h:29,

                 from /home/developer/github_projects/copperspice/src/core/kernel/qvariant.cpp:26:

/home/developer/rpmbuild/BUILD/include/QtCore/regex/regex_iterator.h:87:18: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]

   87 |    : public std::iterator <std::forward_iterator_tag, match_results<BidirectionalIterator>,

      |                  ^~~~~~~~

In file included from /usr/include/c++/12/bits/stl_algobase.h:65,

                 from /usr/include/c++/12/algorithm:60,

                 from /home/developer/rpmbuild/BUILD/include/QtCore/cs_signal.h:22,

                 from /home/developer/github_projects/copperspice/src/core/kernel/csobject_macro.h:27,

                 from /home/developer/github_projects/copperspice/src/core/kernel/qobject.h:27,

                 from /home/developer/github_projects/copperspice/src/core/kernel/qvariant.h:25,

                 from /home/developer/github_projects/copperspice/src/core/kernel/qvariant.cpp:24:

/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here

  127 |     struct _GLIBCXX17_DEPRECATED iterator

      |                                  ^~~~~~~~

In file included from /home/developer/rpmbuild/BUILD/include/QtCore/regex/regex.h:49:

/home/developer/rpmbuild/BUILD/include/QtCore/regex/regex_token_iterator.h:130:18: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]

  130 |    : public std::iterator <std::forward_iterator_tag, sub_match<BidirectionalIterator>,

      |                  ^~~~~~~~

/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here

  127 |     struct _GLIBCXX17_DEPRECATED iterator

      |                                  ^~~~~~~~

/home/developer/github_projects/copperspice/src/core/kernel/qvariant.cpp:4316:1: fatal error: opening dependency file src/core/CMakeFiles/CsCore.dir/kernel/qvariant.cpp.o.d: No such file or directory

 4316 | }

      | ^

compilation terminated.

ninja: build stopped: subcommand failed.

error: Bad exit status from /var/tmp/rpm-tmp.55bKYc (%build)



RPM build errors:

    Bad exit status from /var/tmp/rpm-tmp.55bKYc (%build)

[developer@fedora copperspice]$ 
This has not yet died on Ubuntu 18.04.

Only real difference is on Ubuntu 18.04 I fully removed CopperSpice prior to building and on Fedora I still have a -devel RPM installed because I'm testing some things.

Will nuke now to test if that clears the issue. If it does it is still an issue because the CMake process is picking up the include files (or something) from the installed version rather than focusing only on the local being built.
seasoned_geek
Posts: 253
Joined: Thu Jun 11 2020 12:18 pm

Re: Compilation error

Post by seasoned_geek »

Just a follow-up.

If you do not already have CopperSpice installed in a system directory, the current CMake process successfully builds. The files need to have the local directory tree in front when searching for includes though or corrupted builds due to header file changes will be an ongoing problem.
Post Reply