Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] unrecognized command line option '-fmacro-prefix-map=old=n

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Sat, 26 Jan 2019 18:19:32 +0100
Hi,

1. Remove the CmakeCache file and rerun cmake again, this should remove any detection ambiguities.
2. What you’ve shown is a text stage of CMake to find compiler options, these are not Wireshark build errors.

Thanks,
Jaap


> On 26 Jan 2019, at 02:40, jungle boogie <jungleboogie0@xxxxxxxxx> wrote:
> 
> 
> Hello,
> 
> Building wireshark from source, which I haven't done in a few weeks. Getting a build failure right away with it:
> 
> 
> 
>  $ tail ../CMakeFiles/CMakeError.log
> c++: error: unrecognized command line option '-fmacro-prefix-map=old=new'
> CMakeFiles/cmTC_2c3b5.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2c3b5.dir/src.cxx.o' failed
> make[2]: *** [CMakeFiles/cmTC_2c3b5.dir/src.cxx.o] Error 1
> make[2]: Leaving directory '/home/user/bin/wireshark/CMakeFiles/CMakeTmp'
> Makefile:126: recipe for target 'cmTC_2c3b5/fast' failed
> make[1]: *** [cmTC_2c3b5/fast] Error 2
> make[1]: Leaving directory '/home/user/bin/wireshark/CMakeFiles/CMakeTmp'
> 
> Source file was:
> int main() { return 0; }
> 
> 
> No cmake options are being passed.
> 
> 
> NAME="Ubuntu"
> VERSION="16.04.5 LTS (Xenial Xerus)"
> ID=ubuntu
> ID_LIKE=debian
> PRETTY_NAME="Ubuntu 16.04.5 LTS"
> VERSION_ID="16.04"
> 
> $ cmake --version
> cmake version 3.5.1
> 
> 
> What else can I provide to help sort this out?
> 
> 
> Thanks!