Wireshark-dev: Re: [Wireshark-dev] RPM generation
From: Peter Wu <peter@xxxxxxxxxxxxx>
Date: Thu, 19 Apr 2018 18:44:39 +0200
On Thu, Apr 19, 2018 at 03:12:33PM +0000, Anders Broman wrote:
> Hi,
> I’m struggling with my local build now which is a SVN checkout. I have managed to get the tarball built and the build continues from there but stops with:
> 
> -- Found Subversion: /usr/bin/svn (found version "1.8.19")
> -- Configuring incomplete, errors occurred!
> See also "/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeOutput.log".
> See also "/home/ericsson/build-one/packaging/rpm/BUILD/wireshark-2.9-ESVN-4119/build/CMakeFiles/CMakeError.log".
> error: Bad exit status from /var/tmp/rpm-tmp.RQPfyB (%prep)
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.RQPfyB (%prep)
> CMakeFiles/rpm-package.dir/build.make:57: recipe for target 'CMakeFiles/rpm-package' failed
> make[3]: *** [CMakeFiles/rpm-package] Error 1
> CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/rpm-package.dir/all' failed
> make[2]: *** [CMakeFiles/rpm-package.dir/all] Error 2
> CMakeFiles/Makefile2:175: recipe for target 'CMakeFiles/rpm-package.dir/rule' failed
> make[1]: *** [CMakeFiles/rpm-package.dir/rule] Error 2
> Makefile:201: recipe for target 'rpm-package' failed
> make: *** [rpm-package] Error 2
> 
> I don’t find anything obviously wrong in those log files, any tips what to look for?
> In the error log there is:
> cc: error: unrecognized command line option '-Wheader-guard'

CMake is testing this option (like any other), if it only shows up in
the CMake logs, but not at compile time (make or ninja), it is harmless.

If it is not too large, can you provide the full cmake output?

Look for errors early in the process. For instance, without gcc-c++
installed on CentOS, I would get a very cryptic error down the road.
-- 
Kind regards,
Peter Wu
https://lekensteyn.nl